Skip to contentSkip to conversation

dm: test: Always include command.h for print_ut

PATCH Superseded Sean Anderson 2 participants 2 messages Mar 22, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: test: Always include command.h for print_ut

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

Fixes 82c468a049 dm: test: Update Makefile conditions

---

 test/print_ut.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/print_ut.c +1 -1
index a456a449ef..61ea432e46 100644
@@ -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>
Signature · 1 line
2.30.1
#1 lore raw

PATCH 1/1 dm: test: Always include command.h for print_ut

Quoted 6 lines · Sean Anderson

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

Fixes 82c468a049 dm: test: Update Makefile conditions
Fixes 091401131085 ("[PATCH] dm: test: Always include command.h for

print_ut")

Quoted 10 lines

---

 test/print_ut.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/print_ut.c +0 -0
index a456a449ef..61ea432e46 100644

test/print_ut.c line 10

Quoted 6 lines
test/print_ut.c +1 -1
@@ -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)

We should simply remove this #if.

Best regards

Heinrich

Quoted 4 lines
test/print_ut.c +0 -0
 #include <efi_api.h>
 #endif
 #include <display_options.h>