ACK: [PATCH 2/3] uefi: esrt: don't build UEFI specific code for s390x

Colin Ian King colin.king at canonical.com
Fri Mar 4 07:51:46 UTC 2016


On 04/03/16 06:56, Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
> ---
>  src/uefi/esrt/esrt.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/src/uefi/esrt/esrt.c b/src/uefi/esrt/esrt.c
> index 897bd6b..9272c72 100644
> --- a/src/uefi/esrt/esrt.c
> +++ b/src/uefi/esrt/esrt.c
> @@ -17,11 +17,14 @@
>   *
>   */
>  
> +#include "fwts.h"
> +
> +#if defined(FWTS_HAS_UEFI)
> +
>  #include <errno.h>
>  #include <sys/types.h>
>  #include <dirent.h>
>  
> -#include "fwts.h"
>  #include "fwts_uefi.h"
>  
>  #define FWTS_ESRT_DIR_PATH		"/sys/firmware/efi/esrt"
> @@ -259,3 +262,5 @@ static fwts_framework_ops esrt_ops = {
>  };
>  
>  FWTS_REGISTER("esrt", &esrt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_TEST_UEFI | FWTS_FLAG_ROOT_PRIV)
> +
> +#endif
> 
Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the fwts-devel mailing list