omap5_distro_bootcmd
authorVagrant Cascadian <vagrant@debian.org>
Thu, 9 Sep 2021 02:58:55 +0000 (03:58 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Thu, 9 Sep 2021 02:58:55 +0000 (03:58 +0100)
Enable distro_bootcmd support (doc/README.distro) for omap5 targets.

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

include/configs/ti_omap5_common.h

index de0a6af2fdc9880c59e9e1e62f5965228ecccb72..ace0460af8a6f0592a91978a36114732b227c43f 100644 (file)
 #include <environment/ti/mmc.h>
 #include <environment/ti/nand.h>
 
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(MMC, mmc, 1) \
+       func(PXE, pxe, na) \
+       func(DHCP, dhcp, na)
+
+#ifdef CONFIG_BOOTCOMMAND
+#undef CONFIG_BOOTCOMMAND
+#endif
+#define CONFIG_BOOTCOMMAND \
+       "run findfdt; " \
+       "run distro_bootcmd"
+
+#include <config_distro_bootcmd.h>
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
        DEFAULT_LINUX_BOOT_ENV \
        DEFAULT_MMC_TI_ARGS \
@@ -67,6 +82,7 @@
        DFUARGS \
        NETARGS \
        NANDARGS \
+       BOOTENV \
 
 /*
  * SPL related defines.  The Public RAM memory map the ROM defines the