xilinx: Allow alternative boot strategies in zynq-common.h
A message that is not in the archive (sent off-list or not yet received): 1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.b6aa62ed-c125-4ac0-8424-d1beba536b58@emailsignatures365.codetwo.com
PATCH 1/1 xilinx: Allow alternative boot strategies in zynq-common.h
Allow config headers that include zynq-common.h to provide their own (distro) boot strategies. This is implemented by skipping the section when BOOT_ENV has already been defined.
Signed-off-by Mike Looijmans <[email protected]>
---
include/configs/zynq-common.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/configs/zynq-common.h +6 -0
@@ -48,6 +48,9 @@#define BOOTENV #else +/* Only use this section if no BOOTENV has been configured yet */ +#ifndef BOOTENV +#ifdef CONFIG_CMD_MMC #define BOOT_TARGET_DEVICES_MMC (func) func(MMC, mmc, 0) func(MMC, mmc, 1)#else
@@ -167,6 +170,9 @@ BOOT_TARGET_DEVICES_DHCP(func)#include <config_distro_bootcmd.h> + +#endif /* BOOTENV */ +#endif /* CONFIG_XPL_BUILD */ /* Default environment */
Signature · 18 lines
2.34.1 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl Please consider the environment before printing this e-mail
Michal Simek
maintainerQuoted 25 lines · Mike Looijmans
Allow config headers that include
zynq-common.hto provide their own (distro) boot strategies. This is implemented by skipping the section whenBOOT_ENVhas already been defined.Signed-off-by Mike Looijmans <[email protected]>---
include/configs/zynq-common.h | 6 ++++++ 1 file changed, 6 insertions(+)include/configs/zynq-common.h +3
-0@@ -48,6 +48,9 @@#define BOOTENV #else +/* Only use this section if no BOOTENV has been configured yet */ +#ifndef BOOTENV +#ifdef CONFIG_CMD_MMC #define BOOT_TARGET_DEVICES_MMC (func) func(MMC, mmc, 0) func(MMC, mmc, 1)#else
include/configs/zynq-common.h line 178
Quoted 9 lines
include/configs/zynq-common.h +3
-0@@ -167,6 +170,9 @@ BOOT_TARGET_DEVICES_DHCP(func)#include <config_distro_bootcmd.h> + +#endif /* BOOTENV */ +#endif /* CONFIG_XPL_BUILD */ /* Default environment */
Just for the record v2 was sent.
M