]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rk3399: Enable NVMe distro bootcmd
authorMark Kettenis <kettenis@openbsd.org>
Sun, 24 May 2020 21:10:34 +0000 (23:10 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 29 May 2020 10:00:11 +0000 (18:00 +0800)
Include NVME in the list of boot targets if CONFIG_NVME is enabled.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
include/configs/rockchip-common.h

index bf8c60d6dddb0e5f77e729604f85bf8998cb1dd5..0b9e24d1db44bd09899cd30893ea5e08204fd8bb 100644 (file)
        #define BOOT_TARGET_MMC(func)
 #endif
 
+#if CONFIG_IS_ENABLED(CMD_NVME)
+       #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
+#else
+       #define BOOT_TARGET_NVME(func)
+#endif
+
 #if CONFIG_IS_ENABLED(CMD_USB)
        #define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
@@ -50,6 +56,7 @@
 #ifdef CONFIG_ROCKCHIP_RK3399
 #define BOOT_TARGET_DEVICES(func) \
        BOOT_TARGET_MMC(func) \
+       BOOT_TARGET_NVME(func) \
        BOOT_TARGET_USB(func) \
        BOOT_TARGET_PXE(func) \
        BOOT_TARGET_DHCP(func) \