There's no need to include RAUC logic if it isn't required. Use CONFIG_PHYTEC_K3_EMBED_RAUC_ENV to conditionally include RAUC. Additionally, include the test for raucboot only when this configuration is enabled.
Signed-off-by: Daniel Schultz <[email protected]> --- include/env/phytec/k3_mmc.env | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env index ad8d3a8b764..c4354fbb884 100644 --- a/include/env/phytec/k3_mmc.env +++ b/include/env/phytec/k3_mmc.env @@ -7,13 +7,19 @@ /* Logic for TI K3 based SoCs to boot from a MMC device. */ #include <env/phytec/overlays.env> +#ifdef CONFIG_PHYTEC_K3_EMBED_RAUC_ENV #include <env/phytec/rauc.env> +doraucboot=1 +#endif mmcargs=setenv bootargs console=${console} earlycon=${earlycon} root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw mmcloadimage=load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} Image mmcloadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile} -mmcboot=if test ${doraucboot} = 1; then run raucinit; fi; +mmcboot= +#ifdef CONFIG_PHYTEC_K3_EMBED_RAUC_ENV + if test -n ${doraucboot}; then run raucinit; fi; +#endif run mmcargs; mmc dev ${mmcdev}; mmc rescan; -- 2.25.1

