diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-10-29 12:59:19 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-12-15 13:56:50 -0500 |
commit | c9cb6a6002fc91b045ac84b6d8fe0b34213dd320 (patch) | |
tree | fb71208230a06ccf830f5bb2f9955a5164c2e694 /include | |
parent | 56f02f0ae85da8bb2dca66c7816dbb1429f92072 (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>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/config_distro_bootcmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index 82a3a365c5..c9862260a3 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -369,6 +369,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 " \ |