diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2024-09-11 09:46:22 -0700 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-09-17 11:01:37 +0000 |
commit | c30f12b809a8cf36043b42c67dd8a11f69d9cf77 (patch) | |
tree | 634b88b4faba11f9fd5265576642fc69b52ef62c | |
parent | 53fbb80832d04a449cd4242d9339e8c0e88feb1a (diff) | |
download | meta-freescale-c30f12b809a8cf36043b42c67dd8a11f69d9cf77.tar.gz |
imx-boot: Drop un-necessary variable BOOT_NAME
The variable suggests the ability to override when there is no reason
to override.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 0e3a84c9d46abfd62143887ada7a58b8127ff747)
-rw-r--r-- | recipes-bsp/imx-mkimage/imx-boot_1.0.bb | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb index d258c112..abde8ef5 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb | |||
@@ -19,14 +19,12 @@ DEPENDS += " \ | |||
19 | DEPENDS += "xxd-native" | 19 | DEPENDS += "xxd-native" |
20 | DEPENDS:append:mx8m-generic-bsp = " u-boot-mkimage-native dtc-native" | 20 | DEPENDS:append:mx8m-generic-bsp = " u-boot-mkimage-native dtc-native" |
21 | DEPENDS:append:mx93-generic-bsp = " u-boot-mkimage-native dtc-native" | 21 | DEPENDS:append:mx93-generic-bsp = " u-boot-mkimage-native dtc-native" |
22 | BOOT_NAME = "imx-boot" | ||
23 | PROVIDES = "${BOOT_NAME}" | ||
24 | 22 | ||
25 | inherit deploy uuu_bootloader_tag | 23 | inherit deploy uuu_bootloader_tag |
26 | 24 | ||
27 | UUU_BOOTLOADER = "${BOOT_NAME}" | 25 | UUU_BOOTLOADER = "imx-boot" |
28 | UUU_BOOTLOADER_TAGGED = "${BOOT_NAME}-tagged" | 26 | UUU_BOOTLOADER_TAGGED = "imx-boot-tagged" |
29 | UUU_BOOTLOADER_UNTAGGED = "${BOOT_NAME}-untagged" | 27 | UUU_BOOTLOADER_UNTAGGED = "imx-boot-untagged" |
30 | 28 | ||
31 | # Add CFLAGS with native INCDIR & LIBDIR for imx-mkimage build | 29 | # Add CFLAGS with native INCDIR & LIBDIR for imx-mkimage build |
32 | CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}" | 30 | CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}" |
@@ -223,7 +221,7 @@ do_compile() { | |||
223 | UBOOT_DTB_NAME_EXTRA="${dtb_name}" | 221 | UBOOT_DTB_NAME_EXTRA="${dtb_name}" |
224 | fi | 222 | fi |
225 | UBOOT_NAME_EXTRA="u-boot-${MACHINE}.bin-${UBOOT_CONFIG_EXTRA}" | 223 | UBOOT_NAME_EXTRA="u-boot-${MACHINE}.bin-${UBOOT_CONFIG_EXTRA}" |
226 | BOOT_CONFIG_MACHINE_EXTRA="${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG_EXTRA}.bin" | 224 | BOOT_CONFIG_MACHINE_EXTRA="imx-boot-${MACHINE}-${UBOOT_CONFIG_EXTRA}.bin" |
227 | 225 | ||
228 | for target in ${IMXBOOT_TARGETS}; do | 226 | for target in ${IMXBOOT_TARGETS}; do |
229 | compile_${SOC_FAMILY} | 227 | compile_${SOC_FAMILY} |
@@ -274,7 +272,7 @@ do_install () { | |||
274 | bbnote "UBOOT_CONFIG = $type" | 272 | bbnote "UBOOT_CONFIG = $type" |
275 | 273 | ||
276 | UBOOT_CONFIG_EXTRA="$type" | 274 | UBOOT_CONFIG_EXTRA="$type" |
277 | BOOT_CONFIG_MACHINE_EXTRA="${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG_EXTRA}.bin" | 275 | BOOT_CONFIG_MACHINE_EXTRA="imx-boot-${MACHINE}-${UBOOT_CONFIG_EXTRA}.bin" |
278 | 276 | ||
279 | for target in ${IMXBOOT_TARGETS}; do | 277 | for target in ${IMXBOOT_TARGETS}; do |
280 | install -m 0644 ${S}/${BOOT_CONFIG_MACHINE_EXTRA}-${target} ${D}/boot/ | 278 | install -m 0644 ${S}/${BOOT_CONFIG_MACHINE_EXTRA}-${target} ${D}/boot/ |
@@ -381,7 +379,7 @@ do_deploy() { | |||
381 | for type in ${UBOOT_CONFIG}; do | 379 | for type in ${UBOOT_CONFIG}; do |
382 | UBOOT_CONFIG_EXTRA="$type" | 380 | UBOOT_CONFIG_EXTRA="$type" |
383 | UBOOT_NAME_EXTRA="u-boot-${MACHINE}.bin-${UBOOT_CONFIG_EXTRA}" | 381 | UBOOT_NAME_EXTRA="u-boot-${MACHINE}.bin-${UBOOT_CONFIG_EXTRA}" |
384 | BOOT_CONFIG_MACHINE_EXTRA="${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG_EXTRA}.bin" | 382 | BOOT_CONFIG_MACHINE_EXTRA="imx-boot-${MACHINE}-${UBOOT_CONFIG_EXTRA}.bin" |
385 | 383 | ||
386 | if [ -e ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG_EXTRA} ] ; then | 384 | if [ -e ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG_EXTRA} ] ; then |
387 | install -m 0644 ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG_EXTRA} \ | 385 | install -m 0644 ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG_EXTRA} \ |
@@ -400,9 +398,9 @@ do_deploy() { | |||
400 | install -m 0644 ${S}/${BOOT_CONFIG_MACHINE_EXTRA}-${target} ${DEPLOYDIR} | 398 | install -m 0644 ${S}/${BOOT_CONFIG_MACHINE_EXTRA}-${target} ${DEPLOYDIR} |
401 | done | 399 | done |
402 | 400 | ||
403 | # The first UBOOT_CONFIG listed will be the ${BOOT_NAME} binary | 401 | # The first UBOOT_CONFIG listed will be the imx-boot binary |
404 | if [ ! -f "${DEPLOYDIR}/${UUU_BOOTLOADER}" ]; then | 402 | if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then |
405 | ln -sf ${BOOT_CONFIG_MACHINE_EXTRA}-${IMAGE_IMXBOOT_TARGET} ${DEPLOYDIR}/${BOOT_NAME} | 403 | ln -sf ${BOOT_CONFIG_MACHINE_EXTRA}-${IMAGE_IMXBOOT_TARGET} ${DEPLOYDIR}/imx-boot |
406 | else | 404 | else |
407 | bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type" | 405 | bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type" |
408 | fi | 406 | fi |