[OpenWrt-Devel] [PATCH v3] Add support for C-style in dtsi files
Nikolay Martynov
mar.kolya at gmail.com
Mon Dec 7 11:16:59 EST 2015
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>:
> Hi,
>
> 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.
>
>> 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
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list