From: Igor Opaniuk Date: Thu, 29 Oct 2020 10:59:19 +0000 (+0200) Subject: distro_bootcmd: set devtype for dhcp boot X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c9cb6a6002fc91b045ac84b6d8fe0b34213dd320;p=u-boot.git 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 Reviewed-by: Oleksandr Suvorov --- 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 " \