diff options
author | Fabio Estevam <festevam@denx.de> | 2024-03-03 16:39:27 -0300 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-03-12 04:06:19 -1000 |
commit | c31a0740dd756c5f73ab312cde8a4420bec69963 (patch) | |
tree | c2188e1d73082cd7e430166c77d76beb9efd5821 | |
parent | d34002348374669528bb884c2d7be1b91938f471 (diff) | |
download | poky-c31a0740dd756c5f73ab312cde8a4420bec69963.tar.gz |
u-boot: Move UBOOT_INITIAL_ENV back to u-boot.inc
Commit cc6c3e31526d ("u-boot: Move definitions to common locations") moved
UBOOT_INITIAL_ENV to uboot-config.bbclass, but it should be kept at u-boot.inc
because it encodes ${PN} in it, which should be set by the U-Boot recipe.
Currently, whatever inherits uboot-config bbclass will fill-in its own PN,
which would change the content of UBOOT_INITIAL_ENV per-package.
Cc: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Cc: Marek Vasut <marex@denx.de>
Fixes: cc6c3e31526d ("u-boot: Move definitions to common locations")
(From OE-Core rev: 18b76259d27dc045f621cd512582c37e8bbab45c)
Signed-off-by: Fabio Estevam <festevam@denx.de>
Backported from master: 0b0c4b37d318b86f100512476ffd861e0ce1f47e
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/classes/uboot-config.bbclass | 4 | ||||
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass index b9ad35821a..fe85521877 100644 --- a/meta/classes/uboot-config.bbclass +++ b/meta/classes/uboot-config.bbclass | |||
@@ -59,10 +59,6 @@ UBOOT_ENV_BINARY ?= "${UBOOT_ENV}.${UBOOT_ENV_SUFFIX}" | |||
59 | UBOOT_ENV_IMAGE ?= "${UBOOT_ENV}-${MACHINE}-${PV}-${PR}.${UBOOT_ENV_SUFFIX}" | 59 | UBOOT_ENV_IMAGE ?= "${UBOOT_ENV}-${MACHINE}-${PV}-${PR}.${UBOOT_ENV_SUFFIX}" |
60 | UBOOT_ENV_SYMLINK ?= "${UBOOT_ENV}-${MACHINE}.${UBOOT_ENV_SUFFIX}" | 60 | UBOOT_ENV_SYMLINK ?= "${UBOOT_ENV}-${MACHINE}.${UBOOT_ENV_SUFFIX}" |
61 | 61 | ||
62 | # Default name of u-boot initial env, but enable individual recipes to change | ||
63 | # this value. | ||
64 | UBOOT_INITIAL_ENV ?= "${PN}-initial-env" | ||
65 | |||
66 | # U-Boot EXTLINUX variables. U-Boot searches for /boot/extlinux/extlinux.conf | 62 | # U-Boot EXTLINUX variables. U-Boot searches for /boot/extlinux/extlinux.conf |
67 | # to find EXTLINUX conf file. | 63 | # to find EXTLINUX conf file. |
68 | UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" | 64 | UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" |
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index b2f33e3826..54ea2e9e50 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -24,6 +24,10 @@ PACKAGECONFIG[openssl] = ",,openssl-native" | |||
24 | # file already exists it will not be overwritten. | 24 | # file already exists it will not be overwritten. |
25 | UBOOT_LOCALVERSION ?= "" | 25 | UBOOT_LOCALVERSION ?= "" |
26 | 26 | ||
27 | # Default name of u-boot initial env, but enable individual recipes to change | ||
28 | # this value. | ||
29 | UBOOT_INITIAL_ENV ?= "${PN}-initial-env" | ||
30 | |||
27 | require u-boot-configure.inc | 31 | require u-boot-configure.inc |
28 | 32 | ||
29 | do_compile () { | 33 | do_compile () { |