[meta-xilinx] [PATCH] device-tree: Populate the built device tree blobs into the sysroot

Nathan Rossi nathan at nathanrossi.com
Tue Nov 7 08:38:59 PST 2017


On 8 November 2017 at 02:19, Manjukumar Harthikote Matha
<MANJUKUM at xilinx.com> wrote:
> Hi Nathan,
>
>> -----Original Message-----
>> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
>> bounces at yoctoproject.org] On Behalf Of Nathan Rossi
>> Sent: Tuesday, November 07, 2017 5:43 AM
>> To: meta-xilinx at yoctoproject.org
>> Subject: [meta-xilinx] [PATCH] device-tree: Populate the built device tree blobs into
>> the sysroot
>>
>> Populate any built dtb's into the sysroot so that other recipes can use the output
>> products.
>>
>
> Can you provide more reasoning as why this is required? Which use-case is prompting this change?

This is to enable access for a couple of specific use cases, as well
as generally.

* In order to pass the dtb for use with e.g. kernel-fitImage (or some
other fitImage recipe/class)
* Pass the dtb to U-Boot for use with EXT_DTB (e.g.
https://github.com/nathanrossi/meta-xilinx/commit/2ef84e2408696dbd4272177aa94ef73370df8133)

Relying on providing the dtb via the deploy directory is problematic
for at least two reasons. It might not be there (deploy directory
wiped), or there may be conflicting files.

Regards,
Nathan

>
> Thanks,
> Manju
>
>> Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
>> ---
>>  recipes-bsp/device-tree/device-tree.bb | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/recipes-bsp/device-tree/device-tree.bb b/recipes-bsp/device-tree/device-
>> tree.bb
>> index ff9b6a0201..8aa03f6ecf 100644
>> --- a/recipes-bsp/device-tree/device-tree.bb
>> +++ b/recipes-bsp/device-tree/device-tree.bb
>> @@ -23,6 +23,8 @@ FILES_${PN} = "/boot/devicetree/*.dtb
>> /boot/devicetree/*.dtbo"
>>  S = "${WORKDIR}"
>>  B = "${WORKDIR}/build"
>>
>> +SYSROOT_DIRS += "/boot/devicetree"
>> +
>>  # By default provide the current kernel arch's boot/dts and boot/dts/include.
>>  KERNEL_DTS_INCLUDE ??= " \
>>               ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts \
>> --
>> 2.14.2
>>
>>
>> --
>> _______________________________________________
>> meta-xilinx mailing list
>> meta-xilinx at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list