[PATCH] dm: test: Always include command.h for print_ut

Sean Anderson seanga2 at gmail.com
Mon Mar 22 14:15:45 CET 2021


We need this header for U_BOOT_CMD, which is always present even without
EFI.

Fixes: 82c468a049 dm: test: Update Makefile conditions

Signed-off-by: Sean Anderson <seanga2 at gmail.com>
---

 test/print_ut.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/print_ut.c b/test/print_ut.c
index a456a449ef..61ea432e46 100644
--- a/test/print_ut.c
+++ b/test/print_ut.c
@@ -6,8 +6,8 @@
 #define DEBUG
 
 #include <common.h>
-#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
 #include <command.h>
+#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
 #include <efi_api.h>
 #endif
 #include <display_options.h>
-- 
2.30.1



More information about the U-Boot mailing list