From: Frank Wunderlich <frank-w@public-files.de>
To: linux-kbuild@vger.kernel.org
Cc: Frank Wunderlich <frank-w@public-files.de>,
Masahiro Yamada <masahiroy@kernel.org>,
Michal Marek <michal.lkml@markovi.net>,
linux-kernel@vger.kernel.org
Subject: [PATCH] kbuild: Add DTC_CPP_FLAGS
Date: Wed, 18 Dec 2019 12:46:25 +0100 [thread overview]
Message-ID: <20191218114625.28438-1-frank-w@public-files.de> (raw)
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 <frank-w@public-files.de>
---
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:
--
2.17.1
next reply other threads:[~2019-12-18 11:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-18 11:46 Frank Wunderlich [this message]
2019-12-18 13:31 ` [PATCH] kbuild: Add DTC_CPP_FLAGS Masahiro Yamada
2019-12-18 13:51 ` Rob Herring
2019-12-19 12:05 ` Aw: " Frank Wunderlich
2019-12-19 17:02 ` Rob Herring
2019-12-18 13:54 ` Aw: " Frank Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191218114625.28438-1-frank-w@public-files.de \
--to=frank-w@public-files.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=michal.lkml@markovi.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).