summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-test
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo@ribalda.com>2019-07-30 13:21:27 +0200
committerKhem Raj <raj.khem@gmail.com>2019-07-30 19:15:24 -0700
commitbc93fe6950af84267c9c0c9074b06528e4915d54 (patch)
tree569b2a0d2497bc1d9a1df77df6870b4904d5874c /meta-oe/recipes-test
parent0f080a699e5f01831589e5ac2aa630e02a12ec08 (diff)
downloadmeta-openembedded-bc93fe6950af84267c9c0c9074b06528e4915d54.tar.gz
fwts: Update to 19.06.00
Update to latest release. Since version 18.08.00, libbsd is a dependency: https://wiki.ubuntu.com/FirmwareTestSuite/ReleaseNotes/18.08.00 Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-test')
-rw-r--r--meta-oe/recipes-test/fwts/fwts/0001-Remove-Werror-from-build.patch22
-rw-r--r--meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch84
-rw-r--r--meta-oe/recipes-test/fwts/fwts_19.06.00.bb (renamed from meta-oe/recipes-test/fwts/fwts_git.bb)11
3 files changed, 15 insertions, 102 deletions
diff --git a/meta-oe/recipes-test/fwts/fwts/0001-Remove-Werror-from-build.patch b/meta-oe/recipes-test/fwts/fwts/0001-Remove-Werror-from-build.patch
index 611ccc8fc..6795ba849 100644
--- a/meta-oe/recipes-test/fwts/fwts/0001-Remove-Werror-from-build.patch
+++ b/meta-oe/recipes-test/fwts/fwts/0001-Remove-Werror-from-build.patch
@@ -12,33 +12,33 @@ Upstream-Status: Pending
12 3 files changed, 3 insertions(+), 3 deletions(-) 12 3 files changed, 3 insertions(+), 3 deletions(-)
13 13
14diff --git a/src/Makefile.am b/src/Makefile.am 14diff --git a/src/Makefile.am b/src/Makefile.am
15index 4daa9e8f..873f23eb 100644 15index 62c9ba8..435ec23 100644
16--- a/src/Makefile.am 16--- a/src/Makefile.am
17+++ b/src/Makefile.am 17+++ b/src/Makefile.am
18@@ -14,7 +14,7 @@ AM_CPPFLAGS = \ 18@@ -14,7 +14,7 @@ AM_CPPFLAGS = \
19 `pkg-config --silence-errors --cflags json` \ 19 `pkg-config --silence-errors --cflags json` \
20 `pkg-config --silence-errors --cflags json-c` \ 20 `pkg-config --silence-errors --cflags json-c` \
21 -pthread `pkg-config --cflags glib-2.0 gio-2.0` \ 21 -pthread `pkg-config --cflags glib-2.0 gio-2.0` \
22- -Wall -Werror -Wextra 22- -Wall -Werror -Wextra \
23+ -Wall -Wextra 23+ -Wall -Wextra \
24 -Wno-address-of-packed-member
24 25
25 bin_PROGRAMS = fwts 26 bin_PROGRAMS = fwts
26
27diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am 27diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am
28index fa232451..082403a2 100644 28index 6bcf9f8..de89bf1 100644
29--- a/src/lib/src/Makefile.am 29--- a/src/lib/src/Makefile.am
30+++ b/src/lib/src/Makefile.am 30+++ b/src/lib/src/Makefile.am
31@@ -24,7 +24,7 @@ AM_CPPFLAGS = \ 31@@ -24,7 +24,7 @@ AM_CPPFLAGS = \
32 `pkg-config --silence-errors --cflags json-c` \ 32 `pkg-config --silence-errors --cflags json-c` \
33 `pkg-config --cflags glib-2.0 gio-2.0` \ 33 `pkg-config --cflags glib-2.0 gio-2.0` \
34 -DDATAROOTDIR=\"$(datarootdir)\" \ 34 -DDATAROOTDIR=\"$(datarootdir)\" \
35- -Wall -Werror -Wextra 35- -Wall -Werror -Wextra \
36+ -Wall -Wextra 36+ -Wall -Wextra \
37 -Wno-address-of-packed-member
37 38
38 pkglib_LTLIBRARIES = libfwts.la 39 pkglib_LTLIBRARIES = libfwts.la
39
40diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am 40diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am
41index aa37de55..4d5297cc 100644 41index 21f969e..82009a0 100644
42--- a/src/utilities/Makefile.am 42--- a/src/utilities/Makefile.am
43+++ b/src/utilities/Makefile.am 43+++ b/src/utilities/Makefile.am
44@@ -16,7 +16,7 @@ 44@@ -16,7 +16,7 @@
diff --git a/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch b/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
deleted file mode 100644
index ae3665b4d..000000000
--- a/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
+++ /dev/null
@@ -1,84 +0,0 @@
1From 5bd05ad8569880985ddf6d4c06ed927d388c297f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 Oct 2016 01:57:16 +0000
4Subject: [PATCH] ignore constant-logical-operand warning with clang
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9 src/dmi/dmicheck/dmicheck.c | 3 +++
10 src/lib/src/fwts_acpi_tables.c | 5 +++++
11 src/uefi/uefirtauthvar/uefirtauthvar.c | 5 +++++
12 3 files changed, 13 insertions(+)
13
14diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
15index 3cca9db9..60fb758f 100644
16--- a/src/dmi/dmicheck/dmicheck.c
17+++ b/src/dmi/dmicheck/dmicheck.c
18@@ -211,6 +211,8 @@ static const char *uuid_patterns[] = {
19 "0A0A0A0A-0A0A-0A0A-0A0A-0A0A0A0A0A0A",
20 NULL,
21 };
22+#pragma clang diagnostic push
23+#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
24
25 static const fwts_chassis_type_map fwts_dmi_chassis_type[] = {
26 { "Invalid", FWTS_SMBIOS_CHASSIS_INVALID },
27@@ -251,6 +253,7 @@ static const fwts_chassis_type_map fwts_dmi_chassis_type[] = {
28 { "Mini PC", FWTS_SMBIOS_CHASSIS_MINI_PC },
29 { "Stick PC", FWTS_SMBIOS_CHASSIS_STICK_PC },
30 };
31+#pragma clang diagnostic pop
32
33 /* Remapping table from buggy version numbers to correct values */
34 static const fwts_dmi_version dmi_versions[] = {
35diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
36index c7ba59be..bdd224aa 100644
37--- a/src/lib/src/fwts_acpi_tables.c
38+++ b/src/lib/src/fwts_acpi_tables.c
39@@ -393,10 +393,14 @@ static int fwts_acpi_handle_fadt(
40 /* Determine FACS addr and load it.
41 * Will ignore the missing FACS in the hardware-reduced mode.
42 */
43+#pragma clang diagnostic push
44+#pragma clang diagnostic ignored "-Waddress-of-packed-member"
45+
46 result = fwts_acpi_handle_fadt_tables(fw, fadt,
47 "FACS", "FIRMWARE_CTRL", "X_FIRMWARE_CTRL",
48 &fadt->firmware_control, &fadt->x_firmware_ctrl,
49 provenance);
50+
51 if (result != FWTS_OK) {
52 if ((result == FWTS_NULL_POINTER) &&
53 fwts_acpi_is_reduced_hardware(fadt)) {
54@@ -415,6 +419,7 @@ static int fwts_acpi_handle_fadt(
55 return FWTS_ERROR;
56 }
57 return FWTS_OK;
58+#pragma clang diagnostic pop
59 }
60
61 /*
62diff --git a/src/uefi/uefirtauthvar/uefirtauthvar.c b/src/uefi/uefirtauthvar/uefirtauthvar.c
63index c2031741..7a33d19d 100644
64--- a/src/uefi/uefirtauthvar/uefirtauthvar.c
65+++ b/src/uefi/uefirtauthvar/uefirtauthvar.c
66@@ -142,6 +142,9 @@ static int uefirtauthvar_deinit(fwts_framework *fw)
67 return FWTS_OK;
68 }
69
70+#pragma clang diagnostic push
71+#pragma clang diagnostic ignored "-Wconstant-logical-operand"
72+
73 static int check_fw_support(fwts_framework *fw, uint64_t status)
74 {
75 if ((status == EFI_INVALID_PARAMETER) &&
76@@ -172,6 +175,8 @@ static int check_fw_support(fwts_framework *fw, uint64_t status)
77 return FWTS_OK;
78 }
79
80+#pragma clang diagnostic pop
81+
82 /*
83 * Set the created authenticated variable, AuthVarCreate,
84 * and checking the data size and data.
diff --git a/meta-oe/recipes-test/fwts/fwts_git.bb b/meta-oe/recipes-test/fwts/fwts_19.06.00.bb
index d3fb644df..88a89fb0b 100644
--- a/meta-oe/recipes-test/fwts/fwts_git.bb
+++ b/meta-oe/recipes-test/fwts/fwts_19.06.00.bb
@@ -5,11 +5,8 @@ HOMEPAGE = "https://wiki.ubuntu.com/Kernel/Reference/fwts"
5LICENSE = "GPLv2+" 5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd34dcdb9e4db568519" 6LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd34dcdb9e4db568519"
7 7
8PV = "18.05.00+git${SRCPV}"
9
10SRCREV = "b0ec7aa2ef743d113fd8c5e57c0ca3d5edd86f0e" 8SRCREV = "b0ec7aa2ef743d113fd8c5e57c0ca3d5edd86f0e"
11SRC_URI = "git://kernel.ubuntu.com/hwe/fwts.git \ 9SRC_URI = "http://fwts.ubuntu.com/release/fwts-V19.06.00.tar.gz;subdir=${BPN}-${PV} \
12 file://0001-ignore-constant-logical-operand-warning-with-clang.patch \
13 file://0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch \ 10 file://0001-Include-poll.h-instead-of-deprecated-sys-poll.h.patch \
14 file://0002-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ 11 file://0002-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \
15 file://0003-Undefine-PAGE_SIZE.patch \ 12 file://0003-Undefine-PAGE_SIZE.patch \
@@ -17,12 +14,12 @@ SRC_URI = "git://kernel.ubuntu.com/hwe/fwts.git \
17 file://0003-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ 14 file://0003-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \
18 file://0001-Remove-Werror-from-build.patch \ 15 file://0001-Remove-Werror-from-build.patch \
19 " 16 "
20 17SRC_URI[md5sum] = "012f933329510cc5a71817ede681eee2"
21S = "${WORKDIR}/git" 18SRC_URI[sha256sum] = "13aa991f12c69f48df368aae5e5d0fbc9136413b4bfe115421bc3216d919f8a2"
22 19
23COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux" 20COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux"
24 21
25DEPENDS = "libpcre json-c glib-2.0 dtc bison-native" 22DEPENDS = "libpcre json-c glib-2.0 dtc bison-native libbsd"
26DEPENDS_append_libc-musl = " libexecinfo" 23DEPENDS_append_libc-musl = " libexecinfo"
27 24
28inherit autotools bash-completion pkgconfig 25inherit autotools bash-completion pkgconfig