[OpenWrt-Devel] [PATCH v3] Add support for C-style in dtsi files
mar.kolya at gmail.com
Mon Dec 7 11:19:08 EST 2015
2015-12-07 11:16 GMT-05:00 Nikolay Martynov <mar.kolya at gmail.com>:
> Sorry, I've missed those questions. Let me try answering them.
> Now also including the list.
> 2015-12-07 10:39 GMT-05:00 Jonas Gorski <jogo at openwrt.org>:
>> you still haven't answered my questions:
>> On Mon, Dec 7, 2015 at 4:07 PM, Nikolay Martynov <mar.kolya at gmail.com> wrote:
>>> Current way of compuling dts files involves calling C preprocessor on
>>> main dts file only. This means that dtsi includes cannot have C-style includes.
>> Why not? Shouldn't they get processed as well as long as they are
>> included with #include, not /include/? Can you give an example that
>> doesn't work?
> You are right and this will work.
> That being said, in my very humble opinion this seems somewhat odd to
> do this not in a way kernel does it. I.e. it is kind of confusing to
> introduce include syntax that is different from one used dts.
> Approach I'm suggesting covers all cases currently used in OpenWrt
> dts files and doesn't force one to use '#include' for dtsi.
One semi-minor inconvenience caused by '#include' style for dtsi's
is that one needs to update all dts files using given dtsi if he wants
to introduce include inside dtsi - since majority of OpwnWrt tree uses
>>> This patch addresses this problem. It uses approach similar to one
>>> use in linux kernel: it preprocesses all dtsi's in current dir into
>>> tmp dir and then uses that tmp dir as include dir for main dts compilation.
>> I can't find this code in the kernel at all. Can you please point that out?
> It's in scripts/Makefile.lib, look for cmd_dtc.
> Martynov Nikolay.
> Email: mar.kolya at gmail.com
Email: mar.kolya at gmail.com
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel