[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNARWYE4-4Qp-YfTrrt1YCZ68b28FDoE45cDJkZTqUyXNUw@mail.gmail.com>
Date: Wed, 18 Dec 2019 22:31:53 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Frank Wunderlich <frank-w@...lic-files.de>
Cc: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
DTML <devicetree@...r.kernel.org>
Subject: Re: [PATCH] kbuild: Add DTC_CPP_FLAGS
(+CC: DT maintainers)
On Wed, Dec 18, 2019 at 8:55 PM Frank Wunderlich
<frank-w@...lic-files.de> wrote:
>
> 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
I think this is questionable
since DT is supposed to describe hardware.
Does it depends on #ifdef or some external defines?
If you want to add variations,
you can add a new DTS which includes other DTS(I) files.
>
> Signed-off-by: Frank Wunderlich <frank-w@...lic-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
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists