diff --git a/val/include/val_logger.h b/val/include/val_logger.h index 37c7b0b4..9da13ef0 100644 --- a/val/include/val_logger.h +++ b/val/include/val_logger.h @@ -8,15 +8,8 @@ #ifndef VAL_LOG_H #define VAL_LOG_H -#ifdef TARGET_UEFI -#include -#elif !defined(TARGET_LINUX) -#include -#include -#include -#endif - #include "pal_interface.h" +#include "pal_common_intf.h" /* Verbosity enums, Lower the value, higher the verbosity */ typedef enum { diff --git a/val/include/val_status.h b/val/include/val_status.h index 2d3ee891..503f276d 100644 --- a/val/include/val_status.h +++ b/val/include/val_status.h @@ -17,8 +17,8 @@ #ifndef VAL_STATUS_H #define VAL_STATUS_H -#if !defined(TARGET_UEFI) && !defined(TARGET_LINUX) -#include +#if !defined(TARGET_LINUX) +#include #endif #include "pal_interface.h" diff --git a/val/include/val_sysreg.h b/val/include/val_sysreg.h index 464d9760..0130440c 100644 --- a/val/include/val_sysreg.h +++ b/val/include/val_sysreg.h @@ -8,16 +8,9 @@ #ifndef VAL_SYSREG_H #define VAL_SYSREG_H -#ifdef TARGET_UEFI -#include -#elif !defined(TARGET_LINUX) -#include -#include -#include -#endif - #include "val_arch.h" #include "pal_interface.h" +#include "pal_common_intf.h" typedef unsigned long u_register_t; diff --git a/val/src/val_logger.c b/val/src/val_logger.c index 91846203..bfb5288a 100644 --- a/val/src/val_logger.c +++ b/val/src/val_logger.c @@ -5,8 +5,7 @@ * */ -#include "include/val_logger.h" -#include "include/pal_common_intf.h" +#include "val_logger.h" static void val_putc(char c) {