mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
kernel-fitimage: Handle overlays in EXTERNAL_KERNEL_DEVICETREE
When using EXTERNAL_KERNEL_DEVICETREE, collect DTB overlays too (*.dtbo) as well as iterating down into sub-directories so using the behaviour for naming which matches KERNEL_DEVICETREE. (From OE-Core rev: 169ebd59f11845a3a5a7157719217ccf0844e448) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ba27990093
commit
c9ab7b0d22
@@ -391,11 +391,10 @@ fitimage_assemble() {
|
||||
|
||||
if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then
|
||||
dtbcount=1
|
||||
for DTBFILE in ${EXTERNAL_KERNEL_DEVICETREE}/*.dtb; do
|
||||
DTB=`basename ${DTBFILE}`
|
||||
for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' -o -name '*.dtbo' \) -printf '%P\n'); do
|
||||
DTB=$(echo "${DTB}" | tr '/' '_')
|
||||
DTBS="${DTBS} ${DTB}"
|
||||
fitimage_emit_section_dtb ${1} ${DTB} ${DTBFILE}
|
||||
fitimage_emit_section_dtb ${1} ${DTB} "${EXTERNAL_KERNEL_DEVICETREE}/${DTB}"
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user