7a2a3182c9
- Enable AllWinner: OLinuXino-Lime2 Mele_M3 - Enable i.MX6: novena hummingboard - Enable TI: Beagle-X15
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 330ef191351986782a12d2e9f695715ffda3508f Mon Sep 17 00:00:00 2001
|
|
From: Peter Robinson <pbrobinson@gmail.com>
|
|
Date: Fri, 6 Mar 2015 11:11:51 +0000
|
|
Subject: [PATCH 11/11] Add BOOTENV_INIT_COMMAND for commands that may be
|
|
needed to run before bootcmd, such as setting the fdt file variables for
|
|
platfroms that detect on boot.
|
|
|
|
---
|
|
include/config_distro_bootcmd.h | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
|
|
index 5c6cec1..608b65f 100644
|
|
--- a/include/config_distro_bootcmd.h
|
|
+++ b/include/config_distro_bootcmd.h
|
|
@@ -148,6 +148,10 @@
|
|
#define BOOTENV_BOOT_TARGETS \
|
|
"boot_targets=" BOOT_TARGET_DEVICES(BOOTENV_DEV_NAME) "\0"
|
|
|
|
+#ifndef BOOTENV_INIT_COMMAND
|
|
+#define BOOTENV_INIT_COMMAND
|
|
+#endif
|
|
+
|
|
#ifndef BOOTENV_POST_COMMAND
|
|
#define BOOTENV_POST_COMMAND
|
|
#endif
|
|
@@ -232,7 +236,7 @@
|
|
\
|
|
BOOT_TARGET_DEVICES(BOOTENV_DEV) \
|
|
\
|
|
- "distro_bootcmd=" BOOTENV_SET_SCSI_NEED_INIT \
|
|
+ "distro_bootcmd=" BOOTENV_INIT_COMMAND BOOTENV_SET_SCSI_NEED_INIT \
|
|
"for target in ${boot_targets}; do " \
|
|
"run bootcmd_${target}; " \
|
|
"done;" \
|
|
--
|
|
2.3.1
|
|
|