[OE-core] [PATCH v2] linux-dtb: Use kernel build system to generate the dtb files

Otavio Salvador otavio at ossystems.com.br
Thu Aug 15 02:39:26 UTC 2013


On Wed, Aug 14, 2013 at 11:17 AM, Mike Looijmans
<mike.looijmans at topic.nl> wrote:
>
> On 08/13/2013 03:52 PM, Otavio Salvador wrote:
>>
>> 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"
>> `----
>
>
> I currently have a "bbappend" that adds a DTB file from outside the kernel
> (listing driver configuration that is implemented in the FPGA part of the
> SOC). The DTB file /include/s files from the kernel (that is, it gets
> everything from the standard files and adds a single device).
>
> How would I go about adding this after this change?

Apply a patch?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list