uboot-tools/0002-Add-BOOTENV_POST_COMMAND-which-is-appended-to-the-en.patch

40 lines
1.3 KiB
Diff
Raw Normal View History

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