summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-bsp/flashrom/flashrom/0001-typecast-enum-conversions-explicitly.patch45
-rw-r--r--meta-oe/recipes-bsp/flashrom/flashrom_1.2.1.bb (renamed from meta-oe/recipes-bsp/flashrom/flashrom_1.2.bb)4
2 files changed, 1 insertions, 48 deletions
diff --git a/meta-oe/recipes-bsp/flashrom/flashrom/0001-typecast-enum-conversions-explicitly.patch b/meta-oe/recipes-bsp/flashrom/flashrom/0001-typecast-enum-conversions-explicitly.patch
deleted file mode 100644
index f2302dbcc3..0000000000
--- a/meta-oe/recipes-bsp/flashrom/flashrom/0001-typecast-enum-conversions-explicitly.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1Upstream-Status: Backport
2Signed-off-by: Ross Burton <ross.burton@arm.com>
3
4From 3a0c1966e4c66f91e6e8551e906b6db38002acb4 Mon Sep 17 00:00:00 2001
5From: Angel Pons <th3fanbus@gmail.com>
6Date: Wed, 27 May 2020 12:15:51 +0200
7Subject: [PATCH] libflashrom.c: Use casts on enum conversions
8
9This allows flashrom to build with GCC 10.
10
11Change-Id: I2166cdf3681452631ef8e980face2924e9a6c81a
12Signed-off-by: Angel Pons <th3fanbus@gmail.com>
13Reviewed-on: https://review.coreboot.org/c/flashrom/+/41775
14Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
15Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
16---
17 libflashrom.c | 6 ++++--
18 1 file changed, 4 insertions(+), 2 deletions(-)
19
20diff --git a/libflashrom.c b/libflashrom.c
21index ab7e364..c20d9c7 100644
22--- a/libflashrom.c
23+++ b/libflashrom.c
24@@ -188,7 +188,8 @@ struct flashrom_board_info *flashrom_supported_boards(void)
25 for (; i < boards_known_size; ++i) {
26 supported_boards[i].vendor = binfo[i].vendor;
27 supported_boards[i].name = binfo[i].name;
28- supported_boards[i].working = binfo[i].working;
29+ supported_boards[i].working =
30+ (enum flashrom_test_state) binfo[i].working;
31 }
32 } else {
33 msg_gerr("Memory allocation error!\n");
34@@ -226,7 +227,8 @@ struct flashrom_chipset_info *flashrom_supported_chipsets(void)
35 supported_chipsets[i].chipset = chipset[i].device_name;
36 supported_chipsets[i].vendor_id = chipset[i].vendor_id;
37 supported_chipsets[i].chipset_id = chipset[i].device_id;
38- supported_chipsets[i].status = chipset[i].status;
39+ supported_chipsets[i].status =
40+ (enum flashrom_test_state) chipset[i].status;
41 }
42 } else {
43 msg_gerr("Memory allocation error!\n");
44--
452.25.1
diff --git a/meta-oe/recipes-bsp/flashrom/flashrom_1.2.bb b/meta-oe/recipes-bsp/flashrom/flashrom_1.2.1.bb
index bdc3ca084c..b2592d294b 100644
--- a/meta-oe/recipes-bsp/flashrom/flashrom_1.2.bb
+++ b/meta-oe/recipes-bsp/flashrom/flashrom_1.2.1.bb
@@ -4,13 +4,11 @@ HOMEPAGE = "http://flashrom.org"
4 4
5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
6SRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.bz2 \ 6SRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.bz2 \
7 file://0001-typecast-enum-conversions-explicitly.patch \
8 file://meson-fixes.patch \ 7 file://meson-fixes.patch \
9 file://0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch \ 8 file://0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch \
10 file://0001-hwaccess-use-__asm__-as-is-done-elsewhere.patch \ 9 file://0001-hwaccess-use-__asm__-as-is-done-elsewhere.patch \
11 " 10 "
12SRC_URI[md5sum] = "7f8e4b87087eb12ecee0fcc5445b4956" 11SRC_URI[sha256sum] = "89a7ff5beb08c89b8795bbd253a51b9453547a864c31793302296b56bbc56d65"
13SRC_URI[sha256sum] = "e1f8d95881f5a4365dfe58776ce821dfcee0f138f75d0f44f8a3cd032d9ea42b"
14 12
15S = "${WORKDIR}/flashrom-v${PV}" 13S = "${WORKDIR}/flashrom-v${PV}"
16 14