mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
distro_bootcmd: read DHCP boot script name from a variable
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>
This commit is contained in:
@@ -110,7 +110,7 @@
|
|||||||
#define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_dhcp=" \
|
"bootcmd_dhcp=" \
|
||||||
BOOTENV_RUN_USB_INIT \
|
BOOTENV_RUN_USB_INIT \
|
||||||
"if dhcp ${scriptaddr} boot.scr.uimg; then " \
|
"if dhcp ${scriptaddr} ${boot_script_dhcp}; then " \
|
||||||
"source ${scriptaddr}; " \
|
"source ${scriptaddr}; " \
|
||||||
"fi\0"
|
"fi\0"
|
||||||
#define BOOTENV_DEV_NAME_DHCP(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_DHCP(devtypeu, devtypel, instance) \
|
||||||
@@ -154,6 +154,7 @@
|
|||||||
BOOTENV_SHARED_IDE \
|
BOOTENV_SHARED_IDE \
|
||||||
"boot_prefixes=/ /boot/\0" \
|
"boot_prefixes=/ /boot/\0" \
|
||||||
"boot_scripts=boot.scr.uimg boot.scr\0" \
|
"boot_scripts=boot.scr.uimg boot.scr\0" \
|
||||||
|
"boot_script_dhcp=boot.scr.uimg\0" \
|
||||||
BOOTENV_BOOT_TARGETS \
|
BOOTENV_BOOT_TARGETS \
|
||||||
\
|
\
|
||||||
"boot_extlinux=" \
|
"boot_extlinux=" \
|
||||||
|
Reference in New Issue
Block a user