From 867386c5c8233e7abee19e60847a95af50eac63e Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Tue, 27 Apr 2021 15:06:50 +0200 Subject: [PATCH] gatesgarth migration: u-boot-dey: introduce UBOOT_INITIAL_ENV This default environment is needed by packages like libubootenv. https://jira.digi.com/browse/DEL-7508 Signed-off-by: Arturo Buzarra --- meta-digi-arm/recipes-bsp/u-boot/digi-u-boot.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meta-digi-arm/recipes-bsp/u-boot/digi-u-boot.inc b/meta-digi-arm/recipes-bsp/u-boot/digi-u-boot.inc index 0a880edb3..c12658193 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/digi-u-boot.inc +++ b/meta-digi-arm/recipes-bsp/u-boot/digi-u-boot.inc @@ -80,6 +80,13 @@ do_compile () { cp ${B}/${config}/${binary} ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} fi done + + # Generate the uboot-initial-env + if [ -n "${UBOOT_INITIAL_ENV}" ]; then + oe_runmake -C ${S} O=${B}/${config} u-boot-initial-env + cp ${B}/${config}/u-boot-initial-env ${B}/${config}/u-boot-initial-env-${type} + fi + unset k # Secure boot artifacts @@ -100,6 +107,11 @@ do_compile () { else oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE} oe_runmake -C ${S} O=${B} ${UBOOT_MAKE_TARGET} + + # Generate the uboot-initial-env + if [ -n "${UBOOT_INITIAL_ENV}" ]; then + oe_runmake -C ${S} O=${B} u-boot-initial-env + fi fi }