Message ID | 1457074591-24175-2-git-send-email-ivan.hu@canonical.com |
---|---|
State | Accepted |
Headers | show |
On 04/03/16 06:56, Ivan Hu wrote: > Signed-off-by: Ivan Hu <ivan.hu@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@canonical.com>
On 03/03/2016 10:56 PM, Ivan Hu wrote: > Signed-off-by: Ivan Hu <ivan.hu@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: Alex Hung <alex.hung@canonical.com>
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
Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- src/uefi/esrt/esrt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)