Skip to content
Snippets Groups Projects
Commit c9cb6a60 authored by Igor Opaniuk's avatar Igor Opaniuk Committed by Tom Rini
Browse files

distro_bootcmd: set devtype for dhcp boot


Set $devtype for DHCP boot, which can be handy for the boot.scr
for detection of devtype used (for example, when the same boot.scr is
used for both mmc/dhcp boot):

if test ${devtype} = "dhcp"; then
	...
fi

Signed-off-by: default avatarIgor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: default avatarOleksandr Suvorov <oleksandr.suvorov@toradex.com>
parent 56f02f0a
No related branches found
No related tags found
No related merge requests found
...@@ -369,6 +369,7 @@ ...@@ -369,6 +369,7 @@
#endif #endif
#define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \ #define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \
"bootcmd_dhcp=" \ "bootcmd_dhcp=" \
"setenv devtype " #devtypel "; " \
BOOTENV_RUN_NET_USB_START \ BOOTENV_RUN_NET_USB_START \
BOOTENV_RUN_PCI_ENUM \ BOOTENV_RUN_PCI_ENUM \
"if dhcp ${scriptaddr} ${boot_script_dhcp}; then " \ "if dhcp ${scriptaddr} ${boot_script_dhcp}; then " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment