All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] distro_bootcmd: read DHCP boot script name from a variable
@ 2015-01-19 23:39 Stephen Warren
  2015-02-02 18:58 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2015-01-19 23:39 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

Modify $bootcmd_dhcp to read the downloaded script filename from an
environment variable rather than hard-coding it. This allows the user
(or another script) to select a different script name if they want,
without editing the whole value of $bootcmd_dhcp.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 include/config_distro_bootcmd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index be616e8bfd0e..4ed149a56088 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -118,7 +118,7 @@
 #define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \
 	"bootcmd_dhcp=" \
 		BOOTENV_RUN_USB_INIT \
-		"if dhcp ${scriptaddr} boot.scr.uimg; then " \
+		"if dhcp ${scriptaddr} ${boot_script_dhcp}; then " \
 			"source ${scriptaddr}; " \
 		"fi\0"
 #define BOOTENV_DEV_NAME_DHCP(devtypeu, devtypel, instance) \
@@ -162,6 +162,7 @@
 	BOOTENV_SHARED_IDE \
 	"boot_prefixes=/ /boot/\0" \
 	"boot_scripts=boot.scr.uimg boot.scr\0" \
+	"boot_script_dhcp=boot.scr.uimg\0" \
 	BOOTENV_BOOT_TARGETS \
 	"bootpart=1\0" \
 	\
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] distro_bootcmd: read DHCP boot script name from a variable
  2015-01-19 23:39 [U-Boot] [PATCH] distro_bootcmd: read DHCP boot script name from a variable Stephen Warren
@ 2015-02-02 18:58 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2015-02-02 18:58 UTC (permalink / raw)
  To: u-boot

On Mon, Jan 19, 2015 at 04:39:11PM -0700, Stephen Warren wrote:

> From: Stephen Warren <swarren@nvidia.com>
> 
> Modify $bootcmd_dhcp to read the downloaded script filename from an
> environment variable rather than hard-coding it. This allows the user
> (or another script) to select a different script name if they want,
> without editing the whole value of $bootcmd_dhcp.
> 
> Signed-off-by: Stephen Warren <swarren@nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150202/198473aa/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-02 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 23:39 [U-Boot] [PATCH] distro_bootcmd: read DHCP boot script name from a variable Stephen Warren
2015-02-02 18:58 ` [U-Boot] " Tom Rini

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.