X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Fkaro%2Fcommon%2Fenv.c;h=2b347cde3e728a968c3bcf268660995f3de397d1;hp=c6def4f9ee9b8a52e362def19bafe14f8a822222;hb=18291c7ea879bae3af53a65eac4e5c81e53ad662;hpb=32066bf6a495d76418fccb8c6944fe36b8cb04aa diff --git a/board/karo/common/env.c b/board/karo/common/env.c index c6def4f9ee..2b347cde3e 100644 --- a/board/karo/common/env.c +++ b/board/karo/common/env.c @@ -19,15 +19,24 @@ #include #include #include +#include #include "karo.h" DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_UBOOT_IGNORE_ENV +void env_cleanup(void) +{ + set_default_env(NULL); +} +#else static const char const *cleanup_vars[] = { "bootargs", "fileaddr", "filesize", + "safeboot", + "wdreset", }; void env_cleanup(void) @@ -38,3 +47,4 @@ void env_cleanup(void) setenv(cleanup_vars[i], NULL); } } +#endif