pico-imx7d: Allow default fdtfile to be overridden by defconfig
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 29 Jun 2018 18:19:17 +0000 (15:19 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:59:48 +0000 (10:59 +0200)
This allow the addition of extra default configurations for each
baseboard, removing the boot menu when user boots for the first time.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
configs/pico-imx7d_defconfig
include/configs/pico-imx7d.h

index 17fe13b6252af8ed808aa3ed5021a5f809f7cc25..af2a7760059463f9eff4ab817d136ccda13460cb 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_IMX_RDC=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg"
 CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd"
+CONFIG_DEFAULT_FDT_FILE="ask"
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_USB_HOST_SUPPORT=y
 CONFIG_SPL_USB_GADGET_SUPPORT=y
index 8f1876c8b2972421caf3efbceb96f10bd4cc4e64..13e735379ed020ce8debce2a6fe2987562c95d98 100644 (file)
@@ -65,7 +65,7 @@
        "console=ttymxc4\0" \
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
-       "fdtfile=ask\0" \
+       "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
        BOOTMENU_ENV \
        "fdt_addr=0x83000000\0" \
        "fdt_addr_r=0x83000000\0" \