Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3229843imc; Wed, 13 Mar 2019 12:11:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbQ2KET4Th5Z3rrd4RnloBkaeNprxGxf9Bw6YpWNTYvjnyi/GzVZCbWr7WgbpAXBX5BHOx X-Received: by 2002:a62:e904:: with SMTP id j4mr2305197pfh.174.1552504301435; Wed, 13 Mar 2019 12:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552504301; cv=none; d=google.com; s=arc-20160816; b=Np65yl7w3zGe0gDDm6e6tKM03QMK/vJq3LthCSeXtF7v+EixnYsnXJk2NvSuqzVsq2 XZKoQ4r1X4hxKR1Jm9scGnuvgjJTGBMZA4uCy96NTaGQhd2H7lgZDbmzausdRLdKp9MY 6qt5qsDMz8watoDXO1C7l2ifyddF3PsHgb77lnk+EhqvRN2wG/WPb3HZD7YzFnI9HBo3 0qHuwZhYEA76CYVDQ7CHpBPO0ZWDwQ0FaSd4jiLHEk3/+yK82HS82/35qevje+A7ToXz MUfv3gp+ngrWhWdWDR7WjjjQzYm4ZGMfjJt/rYiIhcI9cgKv5YEdwHtTleBUibYteyR4 4DrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yp1qRJBItHZWScsnElfM3rZMJHhoq/tk2QkVBvBBFAo=; b=Chvso77cOraa9VbPc38gTMf9v54Bo7RCmuK6maeThWoZX5jZ8sbSYBnBGnjJk9M9ZZ o+ly+2VZNJNvthr6LVywpSxKicLCgH69v7rfbqUrrnhVlIauKoh8HbnotNMJAAZAklnN X8UUiAUwhIL3I/yf7Wn8h2yT2EVpONiFIlPCxNJfuVcEc3Dm6DsQR/KuevhquNtlmhRk MWUGBc62Q11bXJGBkC5nMDYKUsECmyPMSbEED/1xTdSzlxiyAeB2FcpxEfpx4+xkQEsR VU/zR5io4O94lZxvS9UEj6Jk5cTtNIVUbqsszV6AhuWpKGeU8xmvXqzesH6e9o9v7ptI bGMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QJEbKmRs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si10711793pgh.221.2019.03.13.12.11.25; Wed, 13 Mar 2019 12:11:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QJEbKmRs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbfCMTKu (ORCPT + 99 others); Wed, 13 Mar 2019 15:10:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:41340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbfCMTKo (ORCPT ); Wed, 13 Mar 2019 15:10:44 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2107C2173C; Wed, 13 Mar 2019 19:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552504243; bh=FAh9FTW39BvyGUxUJ2rnEWSoxjdHdfKlx6XFqU0GV3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QJEbKmRsP8qXg3pHoQxAY0b7lB2KiYEzNVgD7nyUd2yqZemNbn0FWrGQu2QpNZNrB m3ut4Yg97A52+acGnjVKvMiqYpoXzZotHp+4v0roT67NlVJKVnnwdychBZsQ1eD1fU HR8nMv65f9jACiPS8PK22N5653oHjku6gjAiopZA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Sasha Levin Subject: [PATCH AUTOSEL 4.20 11/60] sh: fix build error for invisible CONFIG_BUILTIN_DTB_SOURCE Date: Wed, 13 Mar 2019 15:09:32 -0400 Message-Id: <20190313191021.158171-11-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190313191021.158171-1-sashal@kernel.org> References: <20190313191021.158171-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit 207a369e3c085799e7836221f64e7a7329985fb6 ] I fixed a similar build error in commit 1b1e4ee86e00 ("sh: fix build error for empty CONFIG_BUILTIN_DTB_SOURCE"), but it came back again. Since commit 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules"), the combination of CONFIG_OF_EARLY_FLATTREE=y and CONFIG_USE_BUILTIN_DTB=n results in the following build error: make[1]: *** No rule to make target 'arch/sh/boot/dts/.dtb.o', needed by 'arch/sh/boot/dts/built-in.a'. Stop. Prior to that commit, there was only one path to descend into arch/sh/boot/dts/, and arch/sh/Makefile correctly guards it with CONFIG_USE_BUILTIN_DTB: core-$(CONFIG_USE_BUILTIN_DTB) += arch/sh/boot/dts/ Now, there is another path to descend there from the top Makefile when CONFIG_OF_EARLY_FLATTREE=y. If CONFIG_USE_BUILTIN_DTB is disabled, CONFIG_BUILTIN_DTB_SOURCE is invisible instead of defined as "". Add obj-$(CONFIG_USE_BUILTIN_DTB) guard to avoid the attempt to build the non-existing file. Fixes: 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules") Reported-by: kbuild test robot Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- arch/sh/boot/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile index 01d0f7fb14cc..2563d1e532e2 100644 --- a/arch/sh/boot/dts/Makefile +++ b/arch/sh/boot/dts/Makefile @@ -1,3 +1,3 @@ ifneq ($(CONFIG_BUILTIN_DTB_SOURCE),"") -obj-y += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o +obj-$(CONFIG_USE_BUILTIN_DTB) += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o endif -- 2.19.1