[PATCH] test: print_ut: Fix potential build error

Bin Meng bmeng.cn at gmail.com
Wed Feb 17 10:31:47 CET 2021


This files uses the macro U_BOOT_CMD which is defined in command.h,
but command.h is conditionally included. Fix it.

Signed-off-by: Bin Meng <bmeng.cn 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 a456a44..61ea432 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.7.4



More information about the U-Boot mailing list