diff options
Diffstat (limited to 'recipes-bsp/u-boot')
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2025.04.bb | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/recipes-bsp/u-boot/u-boot-imx_2025.04.bb b/recipes-bsp/u-boot/u-boot-imx_2025.04.bb index 27c3555f4..a27291460 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2025.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2025.04.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
| 2 | # Copyright 2018 (C) O.S. Systems Software LTDA. | 2 | # Copyright 2018 (C) O.S. Systems Software LTDA. |
| 3 | # Copyright 2017-2024 NXP | 3 | # Copyright 2017-2026 NXP |
| 4 | 4 | ||
| 5 | require recipes-bsp/u-boot/u-boot.inc | 5 | require recipes-bsp/u-boot/u-boot.inc |
| 6 | require u-boot-imx-common_${PV}.inc | 6 | require u-boot-imx-common_${PV}.inc |
| @@ -34,19 +34,31 @@ do_deploy:append:mx8m-generic-bsp() { | |||
| 34 | for key_value in ${UBOOT_DTB_NAME_FLAGS}; do | 34 | for key_value in ${UBOOT_DTB_NAME_FLAGS}; do |
| 35 | local type_key="${key_value%%:*}" | 35 | local type_key="${key_value%%:*}" |
| 36 | local dtb_name="${key_value#*:}" | 36 | local dtb_name="${key_value#*:}" |
| 37 | local dtb_path="" | ||
| 37 | if [ "$type_key" = "$type" ] | 38 | if [ "$type_key" = "$type" ] |
| 38 | then | 39 | then |
| 39 | bbnote "UBOOT_CONFIG = $type, UBOOT_DTB_NAME = $dtb_name" | 40 | bbnote "UBOOT_CONFIG = $type, UBOOT_DTB_NAME = $dtb_name" |
| 40 | # There is only one ${dtb_name}, the first one. All the other are with the type appended | 41 | # There is only one ${dtb_name}, the first one. All the other are with the type appended |
| 41 | if [ ! -f "${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}" ]; then | 42 | if [ ! -f "${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}" ]; then |
| 42 | install -m 0644 ${B}/${builddir}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name} | 43 | if [ -f "${B}/${builddir}/arch/arm/dts/${dtb_name}" ]; then |
| 44 | dtb_path="arch/arm/dts" | ||
| 45 | elif [ -f "${B}/${builddir}/dts/upstream/src/arm64/freescale/${dtb_name}" ]; then | ||
| 46 | dtb_path="dts/upstream/src/arm64/freescale" | ||
| 47 | else | ||
| 48 | bbfatal "DTB '${dtb_name}' not found in expected locations" | ||
| 49 | fi | ||
| 50 | bbnote "DTB found at ${B}/${builddir}/${dtb_path}/${dtb_name}" | ||
| 51 | install -m 0644 ${B}/${builddir}/${dtb_path}/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name} | ||
| 43 | else | 52 | else |
| 44 | bbwarn "Use custom wks.in for $dtb_name = $type" | 53 | bbwarn "Use custom wks.in for $dtb_name = $type" |
| 45 | fi | 54 | fi |
| 46 | install -m 0644 ${B}/${builddir}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}-${type} | 55 | if [ -f "${B}/${builddir}/${dtb_path}/${dtb_name}" ]; then |
| 56 | install -m 0644 ${B}/${builddir}/${dtb_path}/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}-${type} | ||
| 57 | fi | ||
| 47 | fi | 58 | fi |
| 48 | unset type_key | 59 | unset type_key |
| 49 | unset dtb_name | 60 | unset dtb_name |
| 61 | unset dtb_path | ||
| 50 | done | 62 | done |
| 51 | 63 | ||
| 52 | unset UBOOT_DTB_NAME_FLAGS | 64 | unset UBOOT_DTB_NAME_FLAGS |
| @@ -66,5 +78,10 @@ do_deploy:append:mx93-generic-bsp() { | |||
| 66 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} | 78 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} |
| 67 | } | 79 | } |
| 68 | 80 | ||
| 81 | do_deploy:append:mx95-generic-bsp() { | ||
| 82 | # Deploy CRT.* from u-boot for stmm | ||
| 83 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} | ||
| 84 | } | ||
| 85 | |||
| 69 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 86 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 70 | COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)" | 87 | COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)" |
