]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: kontron-sl-mx8mm: Migrate to use CONFIG_EXTRA_ENV_TEXT
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Wed, 24 Aug 2022 13:59:09 +0000 (15:59 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 20 Oct 2022 15:35:51 +0000 (17:35 +0200)
Move the environment from the board header to a separate text file
and also drop those variables that are already set in env_default.h
from the Kconfig options.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Fabio Estevam <festevam@denx.de>
board/kontron/sl-mx8mm/sl-mx8mm.env [new file with mode: 0644]
include/configs/kontron-sl-mx8mm.h

diff --git a/board/kontron/sl-mx8mm/sl-mx8mm.env b/board/kontron/sl-mx8mm/sl-mx8mm.env
new file mode 100644 (file)
index 0000000..ef6fc1f
--- /dev/null
@@ -0,0 +1,7 @@
+kernel_addr_r=0x42000000
+fdt_addr_r=0x48000000
+fdtoverlay_addr_r=0x49000000
+ramdisk_addr_r=0x48080000
+scriptaddr=0x40000000
+pxefile_addr_r=0x40100000
+dfu_alt_info=sf 0:0=flash-bin raw 0x400 0x1f0000
index 622ab5976247822e1f42b289096c82b18ecdaffd..a2aedefcec215e3e22fc64a84713521fe2150477 100644 (file)
 #define CONFIG_MALLOC_F_ADDR           0x930000
 #endif
 
-#define ENV_MEM_LAYOUT_SETTINGS \
-       "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
-       "kernel_addr_r=0x42000000\0" \
-       "fdt_addr_r=0x48000000\0" \
-       "fdtoverlay_addr_r=0x49000000\0" \
-       "ramdisk_addr_r=0x48080000\0" \
-       "scriptaddr=0x40000000\0"\
-       "pxefile_addr_r=0x40100000\0"
-
-#define CONFIG_EXTRA_ENV_SETTINGS \
-       "dfu_alt_info=sf 0:0=flash-bin raw 0x400 0x1f0000\0" \
-       "bootdelay=3\0" \
-       "hostname=" CONFIG_HOSTNAME "\0" \
-       ENV_MEM_LAYOUT_SETTINGS \
-       BOOTENV
+#define CONFIG_EXTRA_ENV_SETTINGS BOOTENV
 
 #endif /* __KONTRON_MX8MM_CONFIG_H */