From patchwork Wed Dec 18 11:46:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 11300411 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B33813A4 for ; Wed, 18 Dec 2019 11:55:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 330D7206EC for ; Wed, 18 Dec 2019 11:55:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbfLRLzR (ORCPT ); Wed, 18 Dec 2019 06:55:17 -0500 Received: from mxwww.masterlogin.de ([95.129.51.220]:42554 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfLRLzR (ORCPT ); Wed, 18 Dec 2019 06:55:17 -0500 X-Greylist: delayed 509 seconds by postgrey-1.27 at vger.kernel.org; Wed, 18 Dec 2019 06:55:16 EST Received: from mxout1.routing.net (unknown [192.168.10.81]) by new.mxwww.masterlogin.de (Postfix) with ESMTPS id 51E8196385; Wed, 18 Dec 2019 11:46:44 +0000 (UTC) Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout1.routing.net (Postfix) with ESMTP id B137E3FC84; Wed, 18 Dec 2019 11:46:44 +0000 (UTC) Received: from localhost.localdomain (fttx-pool-185.76.99.135.bambit.de [185.76.99.135]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id 21E728099B; Wed, 18 Dec 2019 11:46:44 +0000 (UTC) From: Frank Wunderlich To: linux-kbuild@vger.kernel.org Cc: Frank Wunderlich , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: Add DTC_CPP_FLAGS Date: Wed, 18 Dec 2019 12:46:25 +0100 Message-Id: <20191218114625.28438-1-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org With this Patch we are able to change cpp-preprocessor options (e.g. -D...) for using conditions (#ifdef) in devicetree files and dynamically add include searchpaths Signed-off-by: Frank Wunderlich --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3fa32f83b2d7..c722a6c7786a 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -177,7 +177,7 @@ DTC_INCLUDE := $(srctree)/scripts/dtc/include-prefixes dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ $(addprefix -I,$(DTC_INCLUDE)) \ - -undef -D__DTS__ + -undef -D__DTS__ $(DTC_CPP_FLAGS) # Useful for describing the dependency of composite objects # Usage: