From 54b203acdd8ddc97b9b6257776a9f6ce9b4d2a82 Mon Sep 17 00:00:00 2001 From: Jaewon Lee Date: Tue, 11 May 2021 15:15:27 -0700 Subject: linux-xlnx_2021.1.bb: Add flag to parametrize dt file extensions Adding flag DT_SEARCH_ARG to be able to customize which file extensions in EXTERNAL_KERNEL_DEVICETREE are processed into the fitimage Signed-off-by: Jaewon Lee --- meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb index 798b3a4c..40fcd0e6 100644 --- a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb @@ -10,6 +10,7 @@ fitimage_assemble() { kernelcount=1 dtbcount="" DTBS="" + DT_SEARCH_ARG="" ramdiskcount=${3} setupcount="" rm -f ${1} arch/${ARCH}/boot/${2} @@ -47,8 +48,11 @@ fitimage_assemble() { fi if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then + if [ -z "${DT_SEARCH_ARG}" ]; then + DT_SEARCH_ARG="-name *.dtb -o -name *.dtbo" + fi dtbcount=1 - for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' -o -name '*.dtbo' \) -printf '%P\n' | sort); do + for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( ${DT_SEARCH_ARG} \) -printf '%P\n' | sort); do DTB=$(echo "${DTB}" | tr '/' '_') DTBS="${DTBS} ${DTB}" fitimage_emit_section_dtb ${1} ${DTB} "${EXTERNAL_KERNEL_DEVICETREE}/${DTB}" -- cgit v1.2.3-54-g00ecf