From: Łukasz Stelmach Date: Wed, 2 Aug 2023 13:08:30 +0000 (+0200) Subject: qemu-riscv64_smode: Load custom envitonment if possible X-Git-Tag: accepted/tizen/unified/20241126.175211~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d280e47f69b877a5f878b108c23718ee2dc8e80b;p=platform%2Fkernel%2Fu-boot.git qemu-riscv64_smode: Load custom envitonment if possible Check if loadbootenv and importbootenv environment variables are available and use them to load additional environment variables. Change-Id: I4e85a6a248cb6e1b5314771fda2e0f9df406417a Signed-off-by: Łukasz Stelmach --- diff --git a/configs/qemu-riscv64_smode_defconfig b/configs/qemu-riscv64_smode_defconfig index 6baad1de38..520229e731 100644 --- a/configs/qemu-riscv64_smode_defconfig +++ b/configs/qemu-riscv64_smode_defconfig @@ -13,7 +13,7 @@ CONFIG_FIT=y CONFIG_SYS_BOOTM_LEN=0x4000000 CONFIG_DISTRO_DEFAULTS=y CONFIG_USE_PREBOOT=y -CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};" +CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr}; test -n \"${loadbootenv}\" -a -n \"${importbootenv}\" && run loadbootenv && run importbootenv;" CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y CONFIG_CMD_BOOTEFI_SELFTEST=y