[PATCH] PowerPC: Move Freescale device tree files into fsl folder
scottwood at freescale.com
Fri Sep 18 14:48:19 AEST 2015
On Fri, 2015-09-18 at 12:00 +0800, Jia Hongtao wrote:
> It makes no sense that some Freescale device tree files are in fsl
> directory while some others not. This patch move Freescale device tree
> files into fsl folder. To do that the following two steps are made:
> - Move Freescale device tree files into fsl folder.
> - Update the include path in these files from "fsl/*.dtsi" to "*.dtsi".
> Please add "fsl/" prefix when you make dtb using Makefile.
The existing arrangement is indeed a bit odd, but the real reason for this is
the interaction with the preprocessor. If a dtsi uses preprocessor
directives, it needs to be included with #include rather than /include/, or
else the dtsi won't be preprocessed. However, if a dtsi is included with
#include, and that dtsi is in fsl/ but the including dts isn't, any
/include/s within the dtsi will not search that fsl/ because dtc doesn't
realize that's the directory the content came from.
There was a desire to include <dt-bindings/thermal/thermal.h> from
fsl/t1040si-post.dtsi. In order to make everything work, we need to either
move all relevant files to the same directory, or convert all /include/s in
affected files to #include.
More information about the Linuxppc-dev