From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 2/3] ARM: use cmd_dtc_cpp for compilation of *.dts-cpp to *.dtb
Date: Thu, 27 Sep 2012 09:40:20 -0600 [thread overview]
Message-ID: <50647364.7090501@wwwdotorg.org> (raw)
In-Reply-To: <20120927054700.GN17667@game.jcrosoft.org>
On 09/26/2012 11:47 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 13:06 Tue 25 Sep , Stephen Warren wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> This allows DT source files to use the C pre-processor. A new file
>> extension is introduced for this purpose, since use of the pre-processor
>> must be optional; any property or node name that starts with "#" must be
>> escaped to prevent the pre-processor attempting to interpret it as a
>> directive. For this reason, skeleton.dtsi-cpp is introduced for *.dts-cpp
>> to include.
>>
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>> arch/arm/boot/Makefile | 3 +++
>> arch/arm/boot/dts/skeleton.dtsi-cpp | 13 +++++++++++++
>> 2 files changed, 16 insertions(+), 0 deletions(-)
>> create mode 100644 arch/arm/boot/dts/skeleton.dtsi-cpp
>>
>> diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
>> index 3fdab01..c5d7fca 100644
>> --- a/arch/arm/boot/Makefile
>> +++ b/arch/arm/boot/Makefile
>> @@ -65,6 +65,9 @@ targets += $(dtb-y)
>> $(obj)/%.dtb: $(src)/dts/%.dts FORCE
>> $(call if_changed_dep,dtc)
>>
>> +$(obj)/%.dtb: $(src)/dts/%.dts-cpp FORCE
>> + $(call if_changed_dep,dtc_cpp)
>> +
>
> move this to Makefile.build so we wan use it acroos arch
That would be an unrelated cleanup patch; the existing *.dts->*.dtb rule
is not there.
WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Jean-Christophe PLAGNIOL-VILLARD
<plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [RFC PATCH 2/3] ARM: use cmd_dtc_cpp for compilation of *.dts-cpp to *.dtb
Date: Thu, 27 Sep 2012 09:40:20 -0600 [thread overview]
Message-ID: <50647364.7090501@wwwdotorg.org> (raw)
In-Reply-To: <20120927054700.GN17667-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
On 09/26/2012 11:47 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 13:06 Tue 25 Sep , Stephen Warren wrote:
>> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>
>> This allows DT source files to use the C pre-processor. A new file
>> extension is introduced for this purpose, since use of the pre-processor
>> must be optional; any property or node name that starts with "#" must be
>> escaped to prevent the pre-processor attempting to interpret it as a
>> directive. For this reason, skeleton.dtsi-cpp is introduced for *.dts-cpp
>> to include.
>>
>> Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>> ---
>> arch/arm/boot/Makefile | 3 +++
>> arch/arm/boot/dts/skeleton.dtsi-cpp | 13 +++++++++++++
>> 2 files changed, 16 insertions(+), 0 deletions(-)
>> create mode 100644 arch/arm/boot/dts/skeleton.dtsi-cpp
>>
>> diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
>> index 3fdab01..c5d7fca 100644
>> --- a/arch/arm/boot/Makefile
>> +++ b/arch/arm/boot/Makefile
>> @@ -65,6 +65,9 @@ targets += $(dtb-y)
>> $(obj)/%.dtb: $(src)/dts/%.dts FORCE
>> $(call if_changed_dep,dtc)
>>
>> +$(obj)/%.dtb: $(src)/dts/%.dts-cpp FORCE
>> + $(call if_changed_dep,dtc_cpp)
>> +
>
> move this to Makefile.build so we wan use it acroos arch
That would be an unrelated cleanup patch; the existing *.dts->*.dtb rule
is not there.
next prev parent reply other threads:[~2012-09-27 15:40 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 19:06 [RFC PATCH 0/3] ARM: use C pre-processor with dtc Stephen Warren
2012-09-25 19:06 ` Stephen Warren
2012-09-25 19:06 ` [RFC PATCH 1/3] kbuild: introduce cmd_dtc_cpp Stephen Warren
2012-09-25 19:06 ` Stephen Warren
2012-09-27 5:44 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 5:44 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 15:39 ` Stephen Warren
2012-09-27 15:39 ` Stephen Warren
2012-09-27 17:40 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 17:40 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-25 19:06 ` [RFC PATCH 2/3] ARM: use cmd_dtc_cpp for compilation of *.dts-cpp to *.dtb Stephen Warren
2012-09-25 19:06 ` Stephen Warren
2012-09-27 5:47 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 5:47 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 15:40 ` Stephen Warren [this message]
2012-09-27 15:40 ` Stephen Warren
2012-09-25 19:06 ` [RFC PATCH 3/3] ARM: tegra: compile all DT files with cpp Stephen Warren
2012-09-25 19:06 ` Stephen Warren
2012-09-25 19:35 ` [RFC PATCH 0/3] ARM: use C pre-processor with dtc Scott Wood
2012-09-25 19:35 ` Scott Wood
2012-09-25 19:51 ` Mark Brown
2012-09-25 19:51 ` Mark Brown
2012-09-25 19:59 ` Scott Wood
2012-09-25 19:59 ` Scott Wood
2012-09-25 20:05 ` Stephen Warren
2012-09-25 20:05 ` Stephen Warren
2012-09-25 20:05 ` Mark Brown
2012-09-25 20:05 ` Mark Brown
2012-09-25 19:51 ` Stephen Warren
2012-09-25 19:51 ` Stephen Warren
2012-09-25 23:46 ` Tony Lindgren
2012-09-25 23:46 ` Tony Lindgren
2012-09-27 5:40 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 5:40 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 15:38 ` Stephen Warren
2012-09-27 15:38 ` Stephen Warren
2012-09-27 17:27 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-27 17:27 ` Jean-Christophe PLAGNIOL-VILLARD
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=50647364.7090501@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.