summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-10-29 12:56:56 +0200
committerIgor Opaniuk <igor.opaniuk@toradex.com>2020-10-29 19:30:54 +0200
commit3c5809aacd31d5aef3ffea987ccbfa9d3ac1fd0a (patch)
treef11361e89e7f8eb44c75a335b70703212bac4987 /include
parentf6133861ea42ccd33a717529a90504d940348e33 (diff)
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: Igor Opaniuk <igor.opaniuk@toradex.com>
Diffstat (limited to 'include')
-rw-r--r--include/config_distro_bootcmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index fc0935fa21..2eb96c4b4f 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -364,6 +364,7 @@
#endif
#define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \
"bootcmd_dhcp=" \
+ "setenv devtype " #devtypel "; " \
BOOTENV_RUN_NET_USB_START \
BOOTENV_RUN_PCI_ENUM \
"if dhcp ${scriptaddr} ${boot_script_dhcp}; then " \