]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/common/env.c
karo: tx6: don't write u-boot image with WITH_DROP_FFS
[karo-tx-uboot.git] / board / karo / common / env.c
index 7dbb7c86c3e21ac10a593d24c12b657f0711d6af..2b347cde3e728a968c3bcf268660995f3de397d1 100644 (file)
 #include <errno.h>
 #include <libfdt.h>
 #include <fdt_support.h>
+#include <environment.h>
 
 #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",
@@ -40,3 +47,4 @@ void env_cleanup(void)
                setenv(cleanup_vars[i], NULL);
        }
 }
+#endif