diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-10-28 17:36:50 +0200 |
---|---|---|
committer | Denys Drozdov <denys.drozdov@toradex.com> | 2021-01-08 19:42:08 +0200 |
commit | 29c09b948bcb0dba0942cf67b0ddf192ae596b50 (patch) | |
tree | 86597f658a197cb4bf0aa12eb5f1954de6a9c9f9 | |
parent | c92661a6129ebcccd2368e51aa6330ed6baf50e5 (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.h | 1 |
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 " \ |