* [U-Boot] [PATCH] zynq: Allow board specific files to over write CONFIG_EXTRA_ENV_SETTINGS.
@ 2016-04-21 18:14 Philip Balister
2016-04-22 4:41 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Philip Balister @ 2016-04-21 18:14 UTC (permalink / raw)
To: u-boot
The zynq-common.h header file is usually included last in the board specific
header file. Check if the CONFIG_EXTRA_ENV_SETTINGS variable is set before
applying the default value. This makes it easier for a board to set a
board specific environment.
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Philip Balister <philip@opensdr.com>
---
include/configs/zynq-common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 9ff3df2..ea8b0b0 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -205,6 +205,7 @@
#endif
/* Default environment */
+#ifndef CONFIG_EXTRA_ENV_SETTINGS
#define CONFIG_EXTRA_ENV_SETTINGS \
"fit_image=fit.itb\0" \
"load_addr=0x2000000\0" \
@@ -227,6 +228,7 @@
"load usb 0 ${load_addr} ${fit_image} && " \
"bootm ${load_addr}; fi\0" \
DFU_ALT_INFO
+#endif
#define CONFIG_BOOTCOMMAND "run $modeboot"
#define CONFIG_BOOTDELAY 3 /* -1 to Disable autoboot */
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] zynq: Allow board specific files to over write CONFIG_EXTRA_ENV_SETTINGS.
2016-04-21 18:14 [U-Boot] [PATCH] zynq: Allow board specific files to over write CONFIG_EXTRA_ENV_SETTINGS Philip Balister
@ 2016-04-22 4:41 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2016-04-22 4:41 UTC (permalink / raw)
To: u-boot
On 21.4.2016 20:14, Philip Balister wrote:
> The zynq-common.h header file is usually included last in the board specific
> header file. Check if the CONFIG_EXTRA_ENV_SETTINGS variable is set before
> applying the default value. This makes it easier for a board to set a
> board specific environment.
>
> Cc: Michal Simek <michal.simek@xilinx.com>
> Signed-off-by: Philip Balister <philip@opensdr.com>
> ---
> include/configs/zynq-common.h | 2 ++
> 1 file changed, 2 insertions(+)
Did you rebase it on the top of latest tree?
I have added this some time ago
"ARM: zynq: Enable option to overwrite default variables"
commit b7b3efe75a46c3d6bff43b7b314d1fff90ca65ec
Thanks,
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-22 4:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 18:14 [U-Boot] [PATCH] zynq: Allow board specific files to over write CONFIG_EXTRA_ENV_SETTINGS Philip Balister
2016-04-22 4:41 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.