39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 6e9ac1e8c6b51189dc0908585eb2b0240f213821 Mon Sep 17 00:00:00 2001
|
|
From: Peter Robinson <pbrobinson@gmail.com>
|
|
Date: Thu, 2 Jul 2015 23:28:56 +0100
|
|
Subject: [PATCH 2/5] 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 3a360ca4..dcad4c8 100644
|
|
--- a/include/config_distro_bootcmd.h
|
|
+++ b/include/config_distro_bootcmd.h
|
|
@@ -176,6 +176,10 @@
|
|
#define BOOTENV_BOOT_TARGETS \
|
|
"boot_targets=" BOOT_TARGET_DEVICES(BOOTENV_DEV_NAME) "\0"
|
|
|
|
+#ifndef BOOTENV_INIT_COMMAND
|
|
+#define BOOTENV_INIT_COMMAND
|
|
+#endif
|
|
+
|
|
#define BOOTENV_DEV(devtypeu, devtypel, instance) \
|
|
BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance)
|
|
#define BOOTENV \
|
|
@@ -237,7 +241,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\0"
|
|
--
|
|
2.5.0
|
|
|