From 2e22d5923b356fcd1952456fa461a9e77a341b38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Wed, 2 Aug 2023 15:10:47 +0200 Subject: [PATCH] configs: tizen_starfive_visionfive2: Load custom envitonment if possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Check if loadbootenv and importbootenv environment variables are available and use them to load additional environment variables. Change-Id: I667783263575de8421df852a9921f5c938620409 Signed-off-by: Łukasz Stelmach --- configs/tizen_starfive_visionfive2_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/tizen_starfive_visionfive2_defconfig b/configs/tizen_starfive_visionfive2_defconfig index e407f65..8f2dd45 100644 --- a/configs/tizen_starfive_visionfive2_defconfig +++ b/configs/tizen_starfive_visionfive2_defconfig @@ -28,7 +28,7 @@ CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS0,115200 debug rootwait earlycon=sbi" CONFIG_BOOTCOMMAND="load ${bootdevtype} ${bootdevnum}:${bootpart} ${scriptaddr} ${prefix}${script}; devtype=${bootdevtype}; devnum=${bootdevnum}; distro_bootpart=${bootpart}; source ${scriptaddr}" 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_DEFAULT_FDT_FILE="jh7110-starfive-visionfive-2-v1.3b.dtb" CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y -- 2.7.4