From patchwork Mon Feb 19 17:09:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 128834 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3733414ljc; Mon, 19 Feb 2018 09:10:50 -0800 (PST) X-Google-Smtp-Source: AH8x227/cC/enjlYw0BlMWWDtE9jgbZXkd2VxWgH7qlDzrmyaNpWKfufIWgUnZYS/leekqnjUqDt X-Received: by 2002:a17:902:7e0d:: with SMTP id b13-v6mr14704126plm.97.1519060250667; Mon, 19 Feb 2018 09:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519060250; cv=none; d=google.com; s=arc-20160816; b=t6h9zd998lhNLWj9aPIkCU/4jlU6CBMqYgLk3KQQOk2qz3BvW8FLs4dZSjYh0dBKA1 UE9GPjamJ414JvLPbb5MAd9CeeOvDG1Hz1bkkxfOiafqt+q1KMEu3Wx+XanUe12/xova hUtTiYYt65ZXDTZ1LyRuuM59cMuueOB43VlFRNanP8LUp0JiN9WCQb4sEN57AwAXa084 yddlAYYxGnMO/YPUn2YSA52ZBZMpTScIuDnqbz9jCKIpBzFUAyvW2nRU9Cnta/I3YtYR JV1L/HPDioLsSD85nKX6jpeHsiC4SJgtaQ9B9wtvdkxXT/OPmE7LkfyzPkenzXE87tJs 8kLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=NTv3K+3Cq+Uo+LZVLZs0YHgi1/ioyNT1uG6sdqosNM4=; b=EB/h0w4OhsPU8/99I4TdDIQO2wWIT4S3Da2/pyrIkqnHru1LnhIECYmmMiQ7PoYbwi tkXkvvZCXVBgrfnDm2dCiHogL80bJYxs6Nj8BYKBWPXWr9ZCf3j6bPLZ/5YuCPWPrH7W Sk+7ovrhylB+Da3uuFxq4Zuvc9k4dY+REA7b0PCI15JBI8qsxMF7Q303Caho78bPPo6y nIOAHm/rFtzd8w3uX0NofPInOY6WRdacUlChwK34MHOgjdrA98+Re/LJEyPE4xnkG3ko 2KcchNc7jXRKmeig9K7NH+q0Zl7CSFnkLXq56MMEr+jgCzDkDMahSU8xKrQQoKSmH42s C6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=oC3GfzT4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10-v6si6096572plk.255.2018.02.19.09.10.50; Mon, 19 Feb 2018 09:10:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=oC3GfzT4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753186AbeBSRKt (ORCPT + 6 others); Mon, 19 Feb 2018 12:10:49 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:52477 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753184AbeBSRKs (ORCPT ); Mon, 19 Feb 2018 12:10:48 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-10.nifty.com with ESMTP id w1JHA09L014311; Tue, 20 Feb 2018 02:10:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w1JHA09L014311 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519060201; bh=jJOSxrU62HJ1p4vgjuD0Gk6HdcPSQMUo4GxO5/hYbzY=; h=From:To:Cc:Subject:Date:From; b=oC3GfzT4FonL6oZDMHIflB83ju9+H6a1NnBgaduzl/QV4+xEnPmcgKjellxd9K+aS xde/P6KxAh13QIPNKVdDm83BVaePBT1ZvLn0DSKn50ey5WKMpSpPbHdwI34M4X61J1 1VaF86AvwEWq2zTsqERD+wRJIyBrr2pyyXti46Zc9pzKfdSFzF6lEintDMxZ+uxJk2 0JI6E1Isdvgm3QrVbOx9sQgLQ6L6qagMFP2NEA1HP5rldXC33uGB1nh/wkjsD5RjZK pPFZ64EZsZmUVg64X1xRopwQacxJTFMAU4y/pLx4WLU6dWIp2dr/3vHOQFl14rCdSN 0nfWGvkj1MvdA== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Nicholas Piggin , Masahiro Yamada , devicetree@vger.kernel.org, linux-sh@vger.kernel.org, Yoshinori Sato , linux-kernel@vger.kernel.org, Rob Herring , Rich Felker , Mark Rutland Subject: [PATCH] sh: fix build error for empty CONFIG_BUILTIN_DTB_SOURCE Date: Tue, 20 Feb 2018 02:09:42 +0900 Message-Id: <1519060182-1746-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org If CONFIG_USE_BUILTIN_DTB is enabled, but CONFIG_BUILTIN_DTB_SOURCE is empty (for example, allmodconfig), a build error occurs. Surround obj-y with ifneq ... endif. I replaced $(CONFIG_USE_BUILTIN_DTB) with 'y' since this is always the case from the following code from arch/sh/Makefile: core-$(CONFIG_USE_BUILTIN_DTB) += arch/sh/boot/dts/ Signed-off-by: Masahiro Yamada --- arch/sh/boot/dts/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile index 715def0..01d0f7f 100644 --- a/arch/sh/boot/dts/Makefile +++ b/arch/sh/boot/dts/Makefile @@ -1 +1,3 @@ -obj-$(CONFIG_USE_BUILTIN_DTB) += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o +ifneq ($(CONFIG_BUILTIN_DTB_SOURCE),"") +obj-y += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o +endif