Blame 0002-Add-BOOTENV_POST_COMMAND-which-is-appended-to-the-en.patch
|
|
7a2a318 |
From 14598c51bc66832804633984539f335ef199932c Mon Sep 17 00:00:00 2001
|
|
|
7a2a318 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
7a2a318 |
Date: Fri, 6 Mar 2015 10:29:28 +0000
|
|
|
7a2a318 |
Subject: [PATCH 02/11] Add BOOTENV_POST_COMMAND, which is appended to the end
|
|
|
7a2a318 |
of bootcmd
|
|
|
425d5f0 |
|
|
|
425d5f0 |
---
|
|
|
425d5f0 |
include/config_distro_bootcmd.h | 8 +++++++-
|
|
|
425d5f0 |
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
425d5f0 |
|
|
|
425d5f0 |
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
|
|
|
7a2a318 |
index 07a0b3b..3292375 100644
|
|
|
425d5f0 |
--- a/include/config_distro_bootcmd.h
|
|
|
425d5f0 |
+++ b/include/config_distro_bootcmd.h
|
|
|
7a2a318 |
@@ -148,6 +148,10 @@
|
|
|
7a2a318 |
#define BOOTENV_BOOT_TARGETS \
|
|
|
7a2a318 |
"boot_targets=" BOOT_TARGET_DEVICES(BOOTENV_DEV_NAME) "\0"
|
|
|
425d5f0 |
|
|
|
425d5f0 |
+#ifndef BOOTENV_POST_COMMAND
|
|
|
425d5f0 |
+#define BOOTENV_POST_COMMAND
|
|
|
425d5f0 |
+#endif
|
|
|
425d5f0 |
+
|
|
|
425d5f0 |
#define BOOTENV_DEV(devtypeu, devtypel, instance) \
|
|
|
425d5f0 |
BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance)
|
|
|
425d5f0 |
#define BOOTENV \
|
|
|
7a2a318 |
@@ -210,7 +214,9 @@
|
|
|
7a2a318 |
"distro_bootcmd=" BOOTENV_SET_SCSI_NEED_INIT \
|
|
|
425d5f0 |
"for target in ${boot_targets}; do " \
|
|
|
425d5f0 |
"run bootcmd_${target}; " \
|
|
|
425d5f0 |
- "done\0"
|
|
|
425d5f0 |
+ "done;" \
|
|
|
425d5f0 |
+ BOOTENV_POST_COMMAND \
|
|
|
425d5f0 |
+ "\0"
|
|
|
425d5f0 |
|
|
|
7a2a318 |
#ifndef CONFIG_BOOTCOMMAND
|
|
|
7a2a318 |
#define CONFIG_BOOTCOMMAND "run distro_bootcmd"
|
|
|
425d5f0 |
--
|
|
|
7a2a318 |
2.3.1
|
|
|
425d5f0 |
|