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: 10228429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9335060392 for ; Mon, 19 Feb 2018 17:14:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8051E28A9A for ; Mon, 19 Feb 2018 17:14:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 746FD28B17; Mon, 19 Feb 2018 17:14:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D742C28A9A for ; Mon, 19 Feb 2018 17:14:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753510AbeBSROV (ORCPT ); Mon, 19 Feb 2018 12:14:21 -0500 Received: from condef-07.nifty.com ([202.248.20.72]:53196 "EHLO condef-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753635AbeBSROT (ORCPT ); Mon, 19 Feb 2018 12:14:19 -0500 Received: from conuserg-10.nifty.com ([10.126.8.73])by condef-07.nifty.com with ESMTP id w1JHAn9c008470 for ; Tue, 20 Feb 2018 02:10:49 +0900 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: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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