diff options
| author | Vagner Nörnberg <vagner.nornberg@ossystems.com.br> | 2026-02-18 09:23:24 -0300 |
|---|---|---|
| committer | Vagner Nörnberg <vagner.nornberg@ossystems.com.br> | 2026-02-18 09:55:40 -0300 |
| commit | 4035faefed3235cd23c5235b3481bf2fa4d33d01 (patch) | |
| tree | 8eb7a594d59de686c36a03f6f234dd3211de3270 /recipes-bsp/u-boot/u-boot-imx_2025.04.bb | |
| parent | 493241103c2500536650e3307a491c090f10aa35 (diff) | |
| download | meta-freescale-4035faefed3235cd23c5235b3481bf2fa4d33d01.tar.gz | |
u-boot-imx: Update revisions in metadata recipe files
Signed-off-by: Vagner Nörnberg <vagner.nornberg@ossystems.com.br>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-imx_2025.04.bb')
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2025.04.bb | 70 |
1 files changed, 70 insertions, 0 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 new file mode 100644 index 000000000..27c3555f4 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx_2025.04.bb | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | # Copyright (C) 2013-2016 Freescale Semiconductor | ||
| 2 | # Copyright 2018 (C) O.S. Systems Software LTDA. | ||
| 3 | # Copyright 2017-2024 NXP | ||
| 4 | |||
| 5 | require recipes-bsp/u-boot/u-boot.inc | ||
| 6 | require u-boot-imx-common_${PV}.inc | ||
| 7 | |||
| 8 | PROVIDES += "u-boot u-boot-mfgtool" | ||
| 9 | |||
| 10 | inherit uuu_bootloader_tag | ||
| 11 | |||
| 12 | # The UUU tag goes on the boot partition. For 8+, the boot partition image | ||
| 13 | # is imx-boot, so disable UUU-tagging here | ||
| 14 | UUU_BOOTLOADER:mx8-generic-bsp = "" | ||
| 15 | UUU_BOOTLOADER:mx9-generic-bsp = "" | ||
| 16 | |||
| 17 | TOOLCHAIN_OPTIONS:append = " -Wno-error=implicit-function-declaration" | ||
| 18 | |||
| 19 | do_deploy:append:mx8m-generic-bsp() { | ||
| 20 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | ||
| 21 | if [ -n "${UBOOT_CONFIG}" ] | ||
| 22 | then | ||
| 23 | for config in ${UBOOT_MACHINE}; do | ||
| 24 | i=$(expr $i + 1); | ||
| 25 | for type in ${UBOOT_CONFIG}; do | ||
| 26 | builddir="${config}-${type}" | ||
| 27 | j=$(expr $j + 1); | ||
| 28 | if [ $j -eq $i ] | ||
| 29 | then | ||
| 30 | builddir="${config}-${type}" | ||
| 31 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 32 | install -m 0644 ${B}/${builddir}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} | ||
| 33 | UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}" | ||
| 34 | for key_value in ${UBOOT_DTB_NAME_FLAGS}; do | ||
| 35 | local type_key="${key_value%%:*}" | ||
| 36 | local dtb_name="${key_value#*:}" | ||
| 37 | if [ "$type_key" = "$type" ] | ||
| 38 | then | ||
| 39 | 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 | 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 | else | ||
| 44 | bbwarn "Use custom wks.in for $dtb_name = $type" | ||
| 45 | fi | ||
| 46 | install -m 0644 ${B}/${builddir}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}-${type} | ||
| 47 | fi | ||
| 48 | unset type_key | ||
| 49 | unset dtb_name | ||
| 50 | done | ||
| 51 | |||
| 52 | unset UBOOT_DTB_NAME_FLAGS | ||
| 53 | fi | ||
| 54 | done | ||
| 55 | unset j | ||
| 56 | done | ||
| 57 | unset i | ||
| 58 | fi | ||
| 59 | |||
| 60 | # Deploy CRT.* from u-boot for stmm | ||
| 61 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} | ||
| 62 | } | ||
| 63 | |||
| 64 | do_deploy:append:mx93-generic-bsp() { | ||
| 65 | # Deploy CRT.* from u-boot for stmm | ||
| 66 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} | ||
| 67 | } | ||
| 68 | |||
| 69 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 70 | COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)" | ||
