]> code.ossystems Code Review - openembedded-core.git/commit
linux-dtb: Use kernel build system to generate the dtb files
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 13 Aug 2013 13:52:35 +0000 (10:52 -0300)
committerSaul Wold <sgw@linux.intel.com>
Thu, 15 Aug 2013 05:41:36 +0000 (22:41 -0700)
commit72980d5bb465f0640ed451d1ebb9c5d2a210ad0c
tree42292ffc5f135a913e6d2359c051acc5bc56e58d
parent0308bf2619734f07814f55c0adae17937f77afbd
linux-dtb: Use kernel build system to generate the dtb files

As the Linux kernel, unconditionally, builds the dtc application and
it is the compatible version with the DeviceTree files shipped within
the kernel it is better to use it and the kernel build system to
generate the dtb files.

Some DeviceTree files rely on CPP and kernel headers to be able to
generate the dtb binary contents and it is harder to replicate it
outside of Linux kernel build system so we /use/ it.

To comply with these assumptions we need to use the dtb file when
calling 'make' instead of pointing to the DeviceTree source file; the
code has been made backward compatible but it is advised to move to
the new definition to avoid warnings as:

,----[ Original definition ]
| KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx6q-sabresd.dts"
`----

Becomes:

,----[ New definition ]
| KERNEL_DEVICETREE = "imx6q-sabresd.dtb"
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-kernel/linux/linux-dtb.inc