1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 01:02:19 +02:00

test: print_ut.c use #if CONFIG_IS_ENABLED(EFI_LOADER)

Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements.

Suggested-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Heinrich Schuchardt
2018-08-31 21:31:24 +02:00
committed by Alexander Graf
parent 4ddcc4e5d2
commit 7a9e6ee6eb

View File

@@ -6,8 +6,7 @@
#define DEBUG #define DEBUG
#include <common.h> #include <common.h>
#if defined(CONFIG_EFI_LOADER) && \ #if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
!defined(CONFIG_SPL_BUILD) && !defined(API_BUILD)
#include <efi_api.h> #include <efi_api.h>
#endif #endif
#include <display_options.h> #include <display_options.h>
@@ -19,8 +18,7 @@
/* Test efi_loader specific printing */ /* Test efi_loader specific printing */
static void efi_ut_print(void) static void efi_ut_print(void)
{ {
#if defined(CONFIG_EFI_LOADER) && \ #if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
!defined(CONFIG_SPL_BUILD) && !defined(API_BUILD)
char str[10]; char str[10];
u8 buf[sizeof(struct efi_device_path_sd_mmc_path) + u8 buf[sizeof(struct efi_device_path_sd_mmc_path) +
sizeof(struct efi_device_path)]; sizeof(struct efi_device_path)];