Convert CONFIG_SYS_SPL_MALLOC_SIZE et al to Kconfig
[platform/kernel/u-boot.git] / scripts / env2string.awk
index 1bfe9ed..de470a4 100644 (file)
@@ -81,7 +81,10 @@ END {
        if (do_output) {
                printf("%s", "#define CONFIG_EXTRA_ENV_TEXT \"")
 
-               # Print out all the variables
+               # Print out all the variables by alphabetic order, if using
+               # gawk. This allows test_env_test.py to work on both awk (where
+               # this next line does nothing)
+               PROCINFO["sorted_in"] = "@ind_str_asc"
                for (var in vars) {
                        env = vars[var]
                        print var "=" vars[var] "\\0"