diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2025-08-29 14:42:05 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2025-08-31 16:42:09 +0800 |
| commit | efcd5041f81710af25713f30afbdd92879990d0e (patch) | |
| tree | bbe308b3a0d4bdca7ad5149e19c9efc24f75a849 | |
| parent | 1cf0dc9bc7051a1547e944299d4a338f831b2f04 (diff) | |
| download | meta-freescale-efcd5041f81710af25713f30afbdd92879990d0e.tar.gz | |
u-boot-qoriq: Upgrade to v2025.04
Update from LF6.12.20-2.0.0
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-qoriq_2025.04.bb (renamed from recipes-bsp/u-boot/u-boot-qoriq_2021.04.bb) | 60 |
1 files changed, 51 insertions, 9 deletions
diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2021.04.bb b/recipes-bsp/u-boot/u-boot-qoriq_2025.04.bb index c765cd2d7..7fb10ad3b 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2021.04.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2025.04.bb | |||
| @@ -10,19 +10,23 @@ LIC_FILES_CHKSUM = " \ | |||
| 10 | file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 10 | file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 11 | file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ | 11 | file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ |
| 12 | file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ | 12 | file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ |
| 13 | file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | 13 | file://Licenses/lgpl-2.0.txt;md5=4cf66a4984120007c9881cc871cf49db \ |
| 14 | file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ | 14 | file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ |
| 15 | " | 15 | " |
| 16 | 16 | ||
| 17 | SRC_URI = "git://github.com/nxp-qoriq/u-boot;protocol=https;nobranch=1" | 17 | PV:append = "+${SRCPV}" |
| 18 | SRCREV = "1c0116f3da250c5a52858c53efb8b38c0963f477" | ||
| 19 | 18 | ||
| 20 | B = "${WORKDIR}/build" | 19 | UBOOT_BRANCH ?= "lf_v2025.04" |
| 20 | UBOOT_SRC ?= "git://github.com/nxp-qoriq/u-boot.git;protocol=https" | ||
| 21 | SRC_URI = "${UBOOT_SRC};branch=${UBOOT_BRANCH}" | ||
| 22 | SRCREV = "9383f8387dc76524524da69992db96c22195a57c" | ||
| 23 | |||
| 24 | B = "${UNPACKDIR}/build" | ||
| 21 | PV:append = "+fslgit" | 25 | PV:append = "+fslgit" |
| 22 | LOCALVERSION = "+fsl" | 26 | LOCALVERSION = "+fsl" |
| 23 | 27 | ||
| 24 | INHIBIT_DEFAULT_DEPS = "1" | 28 | INHIBIT_DEFAULT_DEPS = "1" |
| 25 | DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native python3-setuptools-native" | 29 | DEPENDS = "libgcc virtual/cross-cc bison-native bc-native gnutls-native swig-native python3-native" |
| 26 | DEPENDS:append:qoriq-arm64 = " dtc-native" | 30 | DEPENDS:append:qoriq-arm64 = " dtc-native" |
| 27 | DEPENDS:append:qoriq-arm = " dtc-native" | 31 | DEPENDS:append:qoriq-arm = " dtc-native" |
| 28 | DEPENDS:append:qoriq-ppc = " boot-format-native" | 32 | DEPENDS:append:qoriq-ppc = " boot-format-native" |
| @@ -39,7 +43,7 @@ python () { | |||
| 39 | raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") | 43 | raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") |
| 40 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' | 44 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' |
| 41 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | 45 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') |
| 42 | workdir = d.getVar('WORKDIR') | 46 | workdir = d.getVar('UNPACKDIR') |
| 43 | d.setVar('DEPENDS:append', ' lib32-gcc-cross-powerpc lib32-libgcc') | 47 | d.setVar('DEPENDS:append', ' lib32-gcc-cross-powerpc lib32-libgcc') |
| 44 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) | 48 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) |
| 45 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') | 49 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') |
| @@ -49,7 +53,7 @@ python () { | |||
| 49 | raise bb.parse.SkipRecipe("Building the u-boot for this arch requires multilib to be enabled") | 53 | raise bb.parse.SkipRecipe("Building the u-boot for this arch requires multilib to be enabled") |
| 50 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' | 54 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' |
| 51 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | 55 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') |
| 52 | workdir = d.getVar('WORKDIR') | 56 | workdir = d.getVar('UNPACKDIR') |
| 53 | d.setVar('DEPENDS:append', ' lib64-gcc-cross-aarch64 lib64-libgcc') | 57 | d.setVar('DEPENDS:append', ' lib64-gcc-cross-aarch64 lib64-libgcc') |
| 54 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) | 58 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) |
| 55 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') | 59 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') |
| @@ -79,8 +83,6 @@ do_compile:append:qoriq() { | |||
| 79 | boot_format ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ | 83 | boot_format ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ |
| 80 | ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi ${config}/u-boot.format.bin | 84 | ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi ${config}/u-boot.format.bin |
| 81 | cp ${config}/u-boot.format.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX} | 85 | cp ${config}/u-boot.format.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX} |
| 82 | elif [ "qspi" = "${type}" ];then | ||
| 83 | cp ${config}/${binary} ${config}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} | ||
| 84 | fi | 86 | fi |
| 85 | fi | 87 | fi |
| 86 | done | 88 | done |
| @@ -91,6 +93,46 @@ do_compile:append:qoriq() { | |||
| 91 | unset i | 93 | unset i |
| 92 | } | 94 | } |
| 93 | 95 | ||
| 96 | do_deploy:append:lx2162a () { | ||
| 97 | if [ -n "${UBOOT_CONFIG}" ] | ||
| 98 | then | ||
| 99 | for config in ${UBOOT_MACHINE}; do | ||
| 100 | i=$(expr $i + 1); | ||
| 101 | for type in ${UBOOT_CONFIG}; do | ||
| 102 | j=$(expr $j + 1); | ||
| 103 | if [ $j -eq $i ] | ||
| 104 | then | ||
| 105 | if [ "tfa-verified-boot" = "${type}" ];then | ||
| 106 | install -m 644 ${B}/${config}/u-boot.dtb ${DEPLOYDIR}/u-boot.dtb | ||
| 107 | fi | ||
| 108 | fi | ||
| 109 | done | ||
| 110 | unset j | ||
| 111 | done | ||
| 112 | unset i | ||
| 113 | fi | ||
| 114 | } | ||
| 115 | |||
| 116 | do_deploy:append:ls102xa () { | ||
| 117 | if [ -n "${UBOOT_CONFIG}" ] | ||
| 118 | then | ||
| 119 | for config in ${UBOOT_MACHINE}; do | ||
| 120 | i=$(expr $i + 1); | ||
| 121 | for type in ${UBOOT_CONFIG}; do | ||
| 122 | j=$(expr $j + 1); | ||
| 123 | if [ $j -eq $i ] | ||
| 124 | then | ||
| 125 | if expr "$type" : sdcard;then | ||
| 126 | install -m 644 ${B}/${config}/u-boot-dtb.bin ${DEPLOYDIR}/u-boot-dtb.${UBOOT_SUFFIX}-${type} | ||
| 127 | install -m 644 ${B}/${config}/spl/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl.${UBOOT_SUFFIX}-${type} | ||
| 128 | fi | ||
| 129 | fi | ||
| 130 | done | ||
| 131 | unset j | ||
| 132 | done | ||
| 133 | unset i | ||
| 134 | fi | ||
| 135 | } | ||
| 94 | 136 | ||
| 95 | PACKAGES += "${PN}-images" | 137 | PACKAGES += "${PN}-images" |
| 96 | FILES:${PN}-images += "/boot" | 138 | FILES:${PN}-images += "/boot" |
