summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaewon Lee <jaewon.lee@xilinx.com>2021-05-11 15:15:27 -0700
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-07-14 14:58:54 -0700
commit54b203acdd8ddc97b9b6257776a9f6ce9b4d2a82 (patch)
treeca4f1c35f0497fbe667bad8ec33ee29972d479e2
parent3d8c8dd4ee133ebae2b0704df12554e260410072 (diff)
downloadmeta-xilinx-54b203acdd8ddc97b9b6257776a9f6ce9b4d2a82.tar.gz
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 <jaewon.lee@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb6
1 files changed, 5 insertions, 1 deletions
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() {
10 kernelcount=1 10 kernelcount=1
11 dtbcount="" 11 dtbcount=""
12 DTBS="" 12 DTBS=""
13 DT_SEARCH_ARG=""
13 ramdiskcount=${3} 14 ramdiskcount=${3}
14 setupcount="" 15 setupcount=""
15 rm -f ${1} arch/${ARCH}/boot/${2} 16 rm -f ${1} arch/${ARCH}/boot/${2}
@@ -47,8 +48,11 @@ fitimage_assemble() {
47 fi 48 fi
48 49
49 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then 50 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then
51 if [ -z "${DT_SEARCH_ARG}" ]; then
52 DT_SEARCH_ARG="-name *.dtb -o -name *.dtbo"
53 fi
50 dtbcount=1 54 dtbcount=1
51 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' -o -name '*.dtbo' \) -printf '%P\n' | sort); do 55 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( ${DT_SEARCH_ARG} \) -printf '%P\n' | sort); do
52 DTB=$(echo "${DTB}" | tr '/' '_') 56 DTB=$(echo "${DTB}" | tr '/' '_')
53 DTBS="${DTBS} ${DTB}" 57 DTBS="${DTBS} ${DTB}"
54 fitimage_emit_section_dtb ${1} ${DTB} "${EXTERNAL_KERNEL_DEVICETREE}/${DTB}" 58 fitimage_emit_section_dtb ${1} ${DTB} "${EXTERNAL_KERNEL_DEVICETREE}/${DTB}"