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 <[email protected]>: > Hi, > > you still haven't answered my questions: > > On Mon, Dec 7, 2015 at 4:07 PM, Nikolay Martynov <[email protected]> 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: [email protected] _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
