]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
smegw01: Enable setting additional boot params
authorEduard Strehlau <eduard@lionizers.com>
Wed, 26 Apr 2023 16:04:48 +0000 (13:04 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 2 May 2023 08:57:32 +0000 (10:57 +0200)
Introduce EXTRA_BOOTPARAMS to allow passing additional parameters
to kernel command line. This is useful for debugging purposes.

Signed-off-by: Eduard Strehlau <eduard@lionizers.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
include/configs/smegw01.h

index 11031744bef8b46805bb30f84d83497bb9fcc6db..a356f095a68ce6c62b20c6b94ea4066de0864f81 100644 (file)
 /* MMC Config*/
 #define CFG_SYS_FSL_ESDHC_ADDR 0
 
+/* default to no extra bootparams, we need an empty define for stringification*/
+#ifndef EXTRA_BOOTPARAMS
+#define EXTRA_BOOTPARAMS
+#endif
+
 #define CFG_EXTRA_ENV_SETTINGS \
        "image=zImage\0" \
        "console=ttymxc0\0" \
@@ -26,7 +31,8 @@
        "mmcdev=0\0" \
        "mmcpart=1\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
-               "root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
+               "root=/dev/mmcblk0p${mmcpart} rootwait rw " \
+               __stringify(EXTRA_BOOTPARAMS) "\0" \
        "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
        "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
        "mmcboot=echo Booting from mmc ...; " \