2015-03-21 17:40:21 +00:00
|
|
|
From 3391ec0e884965315e6b18f87d3713db4fd461e2 Mon Sep 17 00:00:00 2001
|
2015-03-06 13:05:47 +00:00
|
|
|
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
|
Date: Fri, 6 Mar 2015 11:11:51 +0000
|
2015-03-21 17:40:21 +00:00
|
|
|
Subject: [PATCH 11/14] Add BOOTENV_INIT_COMMAND for commands that may be
|
|
|
|
needed to run before bootcmd, such as setting the fdt file variables for
|
2015-03-06 13:05:47 +00:00
|
|
|
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
|
2015-03-21 17:40:21 +00:00
|
|
|
index 8614cc4..1461eaf 100644
|
2015-03-06 13:05:47 +00:00
|
|
|
--- a/include/config_distro_bootcmd.h
|
|
|
|
+++ b/include/config_distro_bootcmd.h
|
2015-03-21 17:40:21 +00:00
|
|
|
@@ -164,6 +164,10 @@
|
2015-03-06 13:05:47 +00:00
|
|
|
#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
|
2015-03-21 17:40:21 +00:00
|
|
|
@@ -248,7 +252,7 @@
|
2015-03-06 13:05:47 +00:00
|
|
|
\
|
|
|
|
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;" \
|
|
|
|
--
|
2015-03-21 17:40:21 +00:00
|
|
|
2.3.2
|
2015-03-06 13:05:47 +00:00
|
|
|
|