diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-03-13 20:51:33 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-03-14 09:16:05 -0700 |
| commit | 268e844999c417010baecdf5b42c7b32e2f4b658 (patch) | |
| tree | 5c67d27edb2da3f056571e79eda540f369f2013c | |
| parent | d755e117a6db1967e8354af401a6d29e1a13ac4f (diff) | |
| download | meta-openembedded-268e844999c417010baecdf5b42c7b32e2f4b658.tar.gz | |
fwts: Upgrade to 22.01.00
Drop upstreamed poll.h patch
Refresh rest of patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-test/fwts/fwts/0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch | 48 | ||||
| -rw-r--r-- | meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch | 13 | ||||
| -rw-r--r-- | meta-oe/recipes-test/fwts/fwts/0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch | 5 | ||||
| -rw-r--r-- | meta-oe/recipes-test/fwts/fwts/0005-Undefine-PAGE_SIZE.patch | 7 | ||||
| -rw-r--r-- | meta-oe/recipes-test/fwts/fwts/0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch | 17 | ||||
| -rw-r--r-- | meta-oe/recipes-test/fwts/fwts_22.01.00.bb (renamed from meta-oe/recipes-test/fwts/fwts_21.06.00.bb) | 3 |
6 files changed, 8 insertions, 85 deletions
diff --git a/meta-oe/recipes-test/fwts/fwts/0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch b/meta-oe/recipes-test/fwts/fwts/0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch deleted file mode 100644 index 82379331ec..0000000000 --- a/meta-oe/recipes-test/fwts/fwts/0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | From 1575b5ce3ecb8709806908061f689315553b40c7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 6 Jun 2017 07:25:09 -0700 | ||
| 4 | Subject: [PATCH 2/6] Include poll.h instead of deprecated sys/poll.h | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | --- | ||
| 10 | src/lib/src/fwts_ipmi.c | 3 ++- | ||
| 11 | src/lib/src/fwts_pipeio.c | 2 +- | ||
| 12 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/src/lib/src/fwts_ipmi.c b/src/lib/src/fwts_ipmi.c | ||
| 15 | index ca7c55bb..0b16bec3 100644 | ||
| 16 | --- a/src/lib/src/fwts_ipmi.c | ||
| 17 | +++ b/src/lib/src/fwts_ipmi.c | ||
| 18 | @@ -18,10 +18,11 @@ | ||
| 19 | * | ||
| 20 | */ | ||
| 21 | |||
| 22 | +#include <poll.h> | ||
| 23 | + | ||
| 24 | #include <sys/types.h> | ||
| 25 | #include <sys/stat.h> | ||
| 26 | #include <fcntl.h> | ||
| 27 | -#include <sys/poll.h> | ||
| 28 | #include <sys/ioctl.h> | ||
| 29 | #include <linux/ipmi.h> | ||
| 30 | |||
| 31 | diff --git a/src/lib/src/fwts_pipeio.c b/src/lib/src/fwts_pipeio.c | ||
| 32 | index 716297c4..37752297 100644 | ||
| 33 | --- a/src/lib/src/fwts_pipeio.c | ||
| 34 | +++ b/src/lib/src/fwts_pipeio.c | ||
| 35 | @@ -30,9 +30,9 @@ | ||
| 36 | #include <stdlib.h> | ||
| 37 | #include <string.h> | ||
| 38 | #include <paths.h> | ||
| 39 | +#include <poll.h> | ||
| 40 | |||
| 41 | #include <sys/param.h> | ||
| 42 | -#include <sys/poll.h> | ||
| 43 | #include <sys/types.h> | ||
| 44 | #include <sys/wait.h> | ||
| 45 | #include <errno.h> | ||
| 46 | -- | ||
| 47 | 2.25.1 | ||
| 48 | |||
diff --git a/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch b/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch index 5ccd461d9f..6dc45ba84b 100644 --- a/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch +++ b/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch | |||
| @@ -10,21 +10,17 @@ Upstream-Status: Pending | |||
| 10 | src/utilities/Makefile.am | 2 +- | 10 | src/utilities/Makefile.am | 2 +- |
| 11 | 3 files changed, 3 insertions(+), 3 deletions(-) | 11 | 3 files changed, 3 insertions(+), 3 deletions(-) |
| 12 | 12 | ||
| 13 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
| 14 | index f8066af..6b979f8 100644 | ||
| 15 | --- a/src/Makefile.am | 13 | --- a/src/Makefile.am |
| 16 | +++ b/src/Makefile.am | 14 | +++ b/src/Makefile.am |
| 17 | @@ -12,7 +12,7 @@ AM_CPPFLAGS = \ | 15 | @@ -13,7 +13,7 @@ AM_CPPFLAGS = \ |
| 18 | -I$(top_srcdir)/src/acpica/source/compiler \ | ||
| 19 | -I$(top_srcdir)/efi_runtime \ | 16 | -I$(top_srcdir)/efi_runtime \ |
| 17 | -I$(top_srcdir)/smccc_test \ | ||
| 20 | -pthread `pkg-config --cflags glib-2.0 gio-2.0` \ | 18 | -pthread `pkg-config --cflags glib-2.0 gio-2.0` \ |
| 21 | - -Wall -Werror -Wextra \ | 19 | - -Wall -Werror -Wextra \ |
| 22 | + -Wall -Wextra \ | 20 | + -Wall -Wextra \ |
| 23 | -Wno-address-of-packed-member \ | 21 | -Wno-address-of-packed-member \ |
| 24 | -Wfloat-equal -Wmissing-declarations \ | 22 | -Wfloat-equal -Wmissing-declarations \ |
| 25 | -Wno-long-long -Wredundant-decls -Wshadow \ | 23 | -Wno-long-long -Wredundant-decls -Wshadow \ |
| 26 | diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am | ||
| 27 | index 55c52b4..50efa97 100644 | ||
| 28 | --- a/src/lib/src/Makefile.am | 24 | --- a/src/lib/src/Makefile.am |
| 29 | +++ b/src/lib/src/Makefile.am | 25 | +++ b/src/lib/src/Makefile.am |
| 30 | @@ -25,7 +25,7 @@ AM_CPPFLAGS = \ | 26 | @@ -25,7 +25,7 @@ AM_CPPFLAGS = \ |
| @@ -36,8 +32,6 @@ index 55c52b4..50efa97 100644 | |||
| 36 | -Wno-address-of-packed-member | 32 | -Wno-address-of-packed-member |
| 37 | 33 | ||
| 38 | pkglib_LTLIBRARIES = libfwts.la | 34 | pkglib_LTLIBRARIES = libfwts.la |
| 39 | diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am | ||
| 40 | index a7d9b9c..e1bf141 100644 | ||
| 41 | --- a/src/utilities/Makefile.am | 35 | --- a/src/utilities/Makefile.am |
| 42 | +++ b/src/utilities/Makefile.am | 36 | +++ b/src/utilities/Makefile.am |
| 43 | @@ -16,7 +16,7 @@ | 37 | @@ -16,7 +16,7 @@ |
| @@ -49,6 +43,3 @@ index a7d9b9c..e1bf141 100644 | |||
| 49 | -I$(srcdir)/../lib/include | 43 | -I$(srcdir)/../lib/include |
| 50 | 44 | ||
| 51 | bin_PROGRAMS = kernelscan | 45 | bin_PROGRAMS = kernelscan |
| 52 | -- | ||
| 53 | 2.25.1 | ||
| 54 | |||
diff --git a/meta-oe/recipes-test/fwts/fwts/0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch b/meta-oe/recipes-test/fwts/fwts/0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch index 83d1cbbfe0..0c78e730e4 100644 --- a/meta-oe/recipes-test/fwts/fwts/0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch +++ b/meta-oe/recipes-test/fwts/fwts/0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch | |||
| @@ -13,8 +13,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 13 | src/lib/src/fwts_uefi.c | 4 ++++ | 13 | src/lib/src/fwts_uefi.c | 4 ++++ |
| 14 | 1 file changed, 4 insertions(+) | 14 | 1 file changed, 4 insertions(+) |
| 15 | 15 | ||
| 16 | diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c | ||
| 17 | index 138f1164..13d9e36c 100644 | ||
| 18 | --- a/src/lib/src/fwts_uefi.c | 16 | --- a/src/lib/src/fwts_uefi.c |
| 19 | +++ b/src/lib/src/fwts_uefi.c | 17 | +++ b/src/lib/src/fwts_uefi.c |
| 20 | @@ -63,6 +63,10 @@ typedef struct { | 18 | @@ -63,6 +63,10 @@ typedef struct { |
| @@ -28,6 +26,3 @@ index 138f1164..13d9e36c 100644 | |||
| 28 | /* File system magic numbers */ | 26 | /* File system magic numbers */ |
| 29 | #define PSTOREFS_MAGIC ((__SWORD_TYPE)0x6165676C) | 27 | #define PSTOREFS_MAGIC ((__SWORD_TYPE)0x6165676C) |
| 30 | #define EFIVARFS_MAGIC ((__SWORD_TYPE)0xde5e81e4) | 28 | #define EFIVARFS_MAGIC ((__SWORD_TYPE)0xde5e81e4) |
| 31 | -- | ||
| 32 | 2.25.1 | ||
| 33 | |||
diff --git a/meta-oe/recipes-test/fwts/fwts/0005-Undefine-PAGE_SIZE.patch b/meta-oe/recipes-test/fwts/fwts/0005-Undefine-PAGE_SIZE.patch index 319e0855c4..df768d1e9d 100644 --- a/meta-oe/recipes-test/fwts/fwts/0005-Undefine-PAGE_SIZE.patch +++ b/meta-oe/recipes-test/fwts/fwts/0005-Undefine-PAGE_SIZE.patch | |||
| @@ -13,11 +13,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 13 | src/lib/src/fwts_acpi_tables.c | 1 + | 13 | src/lib/src/fwts_acpi_tables.c | 1 + |
| 14 | 1 file changed, 1 insertion(+) | 14 | 1 file changed, 1 insertion(+) |
| 15 | 15 | ||
| 16 | diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c | ||
| 17 | index dc42a8bd..4fa1246a 100644 | ||
| 18 | --- a/src/lib/src/fwts_acpi_tables.c | 16 | --- a/src/lib/src/fwts_acpi_tables.c |
| 19 | +++ b/src/lib/src/fwts_acpi_tables.c | 17 | +++ b/src/lib/src/fwts_acpi_tables.c |
| 20 | @@ -42,6 +42,7 @@ | 18 | @@ -40,6 +40,7 @@ |
| 21 | #define BIOS_START (0x000e0000) /* Start of BIOS memory */ | 19 | #define BIOS_START (0x000e0000) /* Start of BIOS memory */ |
| 22 | #define BIOS_END (0x000fffff) /* End of BIOS memory */ | 20 | #define BIOS_END (0x000fffff) /* End of BIOS memory */ |
| 23 | #define BIOS_LENGTH (BIOS_END - BIOS_START) /* Length of BIOS memory */ | 21 | #define BIOS_LENGTH (BIOS_END - BIOS_START) /* Length of BIOS memory */ |
| @@ -25,6 +23,3 @@ index dc42a8bd..4fa1246a 100644 | |||
| 25 | #define PAGE_SIZE (4096) | 23 | #define PAGE_SIZE (4096) |
| 26 | 24 | ||
| 27 | static fwts_acpi_table_info tables[ACPI_MAX_TABLES]; | 25 | static fwts_acpi_table_info tables[ACPI_MAX_TABLES]; |
| 28 | -- | ||
| 29 | 2.25.1 | ||
| 30 | |||
diff --git a/meta-oe/recipes-test/fwts/fwts/0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch b/meta-oe/recipes-test/fwts/fwts/0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch index eb8b0b78e8..b5c265ec2b 100644 --- a/meta-oe/recipes-test/fwts/fwts/0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch +++ b/meta-oe/recipes-test/fwts/fwts/0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch | |||
| @@ -14,11 +14,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 14 | src/lib/src/fwts_smbios.c | 2 +- | 14 | src/lib/src/fwts_smbios.c | 2 +- |
| 15 | 3 files changed, 4 insertions(+), 4 deletions(-) | 15 | 3 files changed, 4 insertions(+), 4 deletions(-) |
| 16 | 16 | ||
| 17 | diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c | ||
| 18 | index 4fa1246a..7ef197cd 100644 | ||
| 19 | --- a/src/lib/src/fwts_acpi_tables.c | 17 | --- a/src/lib/src/fwts_acpi_tables.c |
| 20 | +++ b/src/lib/src/fwts_acpi_tables.c | 18 | +++ b/src/lib/src/fwts_acpi_tables.c |
| 21 | @@ -173,7 +173,7 @@ static fwts_acpi_table_rsdp *fwts_acpi_get_rsdp(fwts_framework *fw, void *addr, | 19 | @@ -171,7 +171,7 @@ static fwts_acpi_table_rsdp *fwts_acpi_g |
| 22 | return NULL; | 20 | return NULL; |
| 23 | } | 21 | } |
| 24 | 22 | ||
| @@ -27,7 +25,7 @@ index 4fa1246a..7ef197cd 100644 | |||
| 27 | return NULL; | 25 | return NULL; |
| 28 | 26 | ||
| 29 | if (fwts_safe_memcpy(rsdp, mem, sizeof(fwts_acpi_table_rsdp)) != FWTS_OK) { | 27 | if (fwts_safe_memcpy(rsdp, mem, sizeof(fwts_acpi_table_rsdp)) != FWTS_OK) { |
| 30 | @@ -486,7 +486,7 @@ static int fwts_acpi_load_tables_from_firmware(fwts_framework *fw) | 28 | @@ -484,7 +484,7 @@ static int fwts_acpi_load_tables_from_fi |
| 31 | if ((rsdp = fwts_acpi_get_rsdp(fw, rsdp_addr, &rsdp_len)) == NULL) | 29 | if ((rsdp = fwts_acpi_get_rsdp(fw, rsdp_addr, &rsdp_len)) == NULL) |
| 32 | return FWTS_ERROR; | 30 | return FWTS_ERROR; |
| 33 | 31 | ||
| @@ -36,11 +34,9 @@ index 4fa1246a..7ef197cd 100644 | |||
| 36 | 34 | ||
| 37 | /* Load any tables from XSDT if it's valid */ | 35 | /* Load any tables from XSDT if it's valid */ |
| 38 | if (rsdp->xsdt_address) { | 36 | if (rsdp->xsdt_address) { |
| 39 | diff --git a/src/lib/src/fwts_mmap.c b/src/lib/src/fwts_mmap.c | ||
| 40 | index 2f2514f1..fbd946f4 100644 | ||
| 41 | --- a/src/lib/src/fwts_mmap.c | 37 | --- a/src/lib/src/fwts_mmap.c |
| 42 | +++ b/src/lib/src/fwts_mmap.c | 38 | +++ b/src/lib/src/fwts_mmap.c |
| 43 | @@ -82,7 +82,7 @@ int fwts_munmap(void *mem, const size_t size) | 39 | @@ -82,7 +82,7 @@ int fwts_munmap(void *mem, const size_t |
| 44 | off_t offset; | 40 | off_t offset; |
| 45 | 41 | ||
| 46 | page_size = fwts_page_size(); | 42 | page_size = fwts_page_size(); |
| @@ -49,11 +45,9 @@ index 2f2514f1..fbd946f4 100644 | |||
| 49 | 45 | ||
| 50 | if (munmap((void *)((uint8_t *)mem - offset), size + offset) < 0) | 46 | if (munmap((void *)((uint8_t *)mem - offset), size + offset) < 0) |
| 51 | return FWTS_ERROR; | 47 | return FWTS_ERROR; |
| 52 | diff --git a/src/lib/src/fwts_smbios.c b/src/lib/src/fwts_smbios.c | ||
| 53 | index 8da572e9..04315bd3 100644 | ||
| 54 | --- a/src/lib/src/fwts_smbios.c | 48 | --- a/src/lib/src/fwts_smbios.c |
| 55 | +++ b/src/lib/src/fwts_smbios.c | 49 | +++ b/src/lib/src/fwts_smbios.c |
| 56 | @@ -78,7 +78,7 @@ static void *fwts_smbios_find_entry_uefi( | 50 | @@ -78,7 +78,7 @@ static void *fwts_smbios_find_entry_uefi |
| 57 | if ((addr = fwts_scan_efi_systab(smbios)) != NULL) { | 51 | if ((addr = fwts_scan_efi_systab(smbios)) != NULL) { |
| 58 | fwts_smbios_entry *mapped_entry; | 52 | fwts_smbios_entry *mapped_entry; |
| 59 | 53 | ||
| @@ -62,6 +56,3 @@ index 8da572e9..04315bd3 100644 | |||
| 62 | if (fwts_safe_memcpy(entry, mapped_entry, size) == FWTS_OK) { | 56 | if (fwts_safe_memcpy(entry, mapped_entry, size) == FWTS_OK) { |
| 63 | (void)fwts_munmap(mapped_entry, size); | 57 | (void)fwts_munmap(mapped_entry, size); |
| 64 | *type = FWTS_SMBIOS; | 58 | *type = FWTS_SMBIOS; |
| 65 | -- | ||
| 66 | 2.25.1 | ||
| 67 | |||
diff --git a/meta-oe/recipes-test/fwts/fwts_21.06.00.bb b/meta-oe/recipes-test/fwts/fwts_22.01.00.bb index 0dcefcbb9d..f14d7fd8e6 100644 --- a/meta-oe/recipes-test/fwts/fwts_21.06.00.bb +++ b/meta-oe/recipes-test/fwts/fwts_22.01.00.bb | |||
| @@ -7,13 +7,12 @@ LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd | |||
| 7 | 7 | ||
| 8 | SRC_URI = "http://fwts.ubuntu.com/release/fwts-V${PV}.tar.gz;subdir=${BP} \ | 8 | SRC_URI = "http://fwts.ubuntu.com/release/fwts-V${PV}.tar.gz;subdir=${BP} \ |
| 9 | file://0001-Add-correct-printf-qualifier-for-off_t.patch \ | 9 | file://0001-Add-correct-printf-qualifier-for-off_t.patch \ |
| 10 | file://0002-Include-poll.h-instead-of-deprecated-sys-poll.h.patch \ | ||
| 11 | file://0003-Remove-Werror-from-build.patch \ | 10 | file://0003-Remove-Werror-from-build.patch \ |
| 12 | file://0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ | 11 | file://0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ |
| 13 | file://0005-Undefine-PAGE_SIZE.patch \ | 12 | file://0005-Undefine-PAGE_SIZE.patch \ |
| 14 | file://0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ | 13 | file://0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ |
| 15 | " | 14 | " |
| 16 | SRC_URI[sha256sum] = "ca43439707976f6664fe3f6eb7f356a51ac7d7f8a4e246ef4d1b16305e066909" | 15 | SRC_URI[sha256sum] = "45045a095d9933d9ff39712372ab1f3078ca8e29c007b3f97b810cdb8c27b5c3" |
| 17 | 16 | ||
| 18 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux" | 17 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux" |
| 19 | 18 | ||
