summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-10-28 17:36:50 +0200
committerIgor Opaniuk <igor.opaniuk@toradex.com>2020-10-28 17:36:50 +0200
commitea46c1f1dd3cd909be41a365e9a1371b7a28ee11 (patch)
tree2746c5b47a5fa322924e1c992ea68d1dd132448a
parentff45ef0e00fdfec75a5adf47e31d89108d487119 (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). Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
-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 " \