2015-07-15 11:01:37 +00:00
|
|
|
From 63e521287c2ebbce0a1830dd66cdb5d29a5e9ae6 Mon Sep 17 00:00:00 2001
|
2015-03-06 13:05:47 +00:00
|
|
|
From: Peter Robinson <pbrobinson@gmail.com>
|
2015-07-03 00:47:57 +00:00
|
|
|
Date: Thu, 2 Jul 2015 23:28:56 +0100
|
2015-07-15 11:01:37 +00:00
|
|
|
Subject: [PATCH 4/5] Add BOOTENV_INIT_COMMAND for commands that may be needed
|
2015-07-03 00:47:57 +00:00
|
|
|
to run before bootcmd, such as setting the fdt file variables for platfroms
|
|
|
|
that detect on boot.
|
2015-03-06 13:05:47 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
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-07-03 00:47:57 +00:00
|
|
|
index 3a360ca4..dcad4c8 100644
|
2015-03-06 13:05:47 +00:00
|
|
|
--- a/include/config_distro_bootcmd.h
|
|
|
|
+++ b/include/config_distro_bootcmd.h
|
2015-07-03 00:47:57 +00:00
|
|
|
@@ -176,6 +176,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
|
|
|
|
+
|
2015-07-03 00:47:57 +00:00
|
|
|
#define BOOTENV_DEV(devtypeu, devtypel, instance) \
|
|
|
|
BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance)
|
|
|
|
#define BOOTENV \
|
|
|
|
@@ -237,7 +241,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}; " \
|
2015-07-03 00:47:57 +00:00
|
|
|
"done\0"
|
2015-03-06 13:05:47 +00:00
|
|
|
--
|
2015-07-15 11:01:37 +00:00
|
|
|
2.4.5
|
2015-03-06 13:05:47 +00:00
|
|
|
|