Blame add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch
|
|
2a8f96a |
From 6e9ac1e8c6b51189dc0908585eb2b0240f213821 Mon Sep 17 00:00:00 2001
|
|
|
7a2a318 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
098b0f3 |
Date: Thu, 2 Jul 2015 23:28:56 +0100
|
|
|
2a8f96a |
Subject: [PATCH 2/5] Add BOOTENV_INIT_COMMAND for commands that may be needed
|
|
|
098b0f3 |
to run before bootcmd, such as setting the fdt file variables for platfroms
|
|
|
098b0f3 |
that detect on boot.
|
|
|
425d5f0 |
|
|
|
425d5f0 |
---
|
|
|
7a2a318 |
include/config_distro_bootcmd.h | 6 +++++-
|
|
|
7a2a318 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
425d5f0 |
|
|
|
425d5f0 |
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
|
|
|
098b0f3 |
index 3a360ca4..dcad4c8 100644
|
|
|
425d5f0 |
--- a/include/config_distro_bootcmd.h
|
|
|
425d5f0 |
+++ b/include/config_distro_bootcmd.h
|
|
|
098b0f3 |
@@ -176,6 +176,10 @@
|
|
|
7a2a318 |
#define BOOTENV_BOOT_TARGETS \
|
|
|
7a2a318 |
"boot_targets=" BOOT_TARGET_DEVICES(BOOTENV_DEV_NAME) "\0"
|
|
|
425d5f0 |
|
|
|
425d5f0 |
+#ifndef BOOTENV_INIT_COMMAND
|
|
|
425d5f0 |
+#define BOOTENV_INIT_COMMAND
|
|
|
425d5f0 |
+#endif
|
|
|
425d5f0 |
+
|
|
|
098b0f3 |
#define BOOTENV_DEV(devtypeu, devtypel, instance) \
|
|
|
098b0f3 |
BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance)
|
|
|
098b0f3 |
#define BOOTENV \
|
|
|
098b0f3 |
@@ -237,7 +241,7 @@
|
|
|
425d5f0 |
\
|
|
|
425d5f0 |
BOOT_TARGET_DEVICES(BOOTENV_DEV) \
|
|
|
425d5f0 |
\
|
|
|
7a2a318 |
- "distro_bootcmd=" BOOTENV_SET_SCSI_NEED_INIT \
|
|
|
7a2a318 |
+ "distro_bootcmd=" BOOTENV_INIT_COMMAND BOOTENV_SET_SCSI_NEED_INIT \
|
|
|
425d5f0 |
"for target in ${boot_targets}; do " \
|
|
|
425d5f0 |
"run bootcmd_${target}; " \
|
|
|
098b0f3 |
"done\0"
|
|
|
425d5f0 |
--
|
|
|
8cda6ee |
2.5.0
|
|
|
425d5f0 |
|