diff options
| -rw-r--r-- | meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb | 6 |
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}" |
