diff options
| -rw-r--r-- | meta-oe/recipes-bsp/flashrom/flashrom/0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/flashrom/flashrom/0001-linux_mtd-fix-build-with-clang-19.patch | 39 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/flashrom/flashrom/0002-meson-Add-options-pciutils-ftdi-usb.patch | 13 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/flashrom/flashrom_1.5.1.bb (renamed from meta-oe/recipes-bsp/flashrom/flashrom_1.4.0.bb) | 4 |
4 files changed, 8 insertions, 78 deletions
diff --git a/meta-oe/recipes-bsp/flashrom/flashrom/0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch b/meta-oe/recipes-bsp/flashrom/flashrom/0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch deleted file mode 100644 index 58f1aa4d43..0000000000 --- a/meta-oe/recipes-bsp/flashrom/flashrom/0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From bf5a30ef30818973eb2cfac792b80c642df8a721 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Patrick Rudolph <patrick.rudolph@9elements.com> | ||
| 3 | Date: Mon, 14 Oct 2024 11:01:37 +0200 | ||
| 4 | Subject: [PATCH 1/2] flashrom: Mark RISCV as non memory-mapped I/O | ||
| 5 | architecture | ||
| 6 | |||
| 7 | Upstream-Status: Inactive-Upstream | ||
| 8 | |||
| 9 | Change-Id: I46d7ede7af61e7fca631e1d465100e65c6ddeee9 | ||
| 10 | Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> | ||
| 11 | --- | ||
| 12 | Makefile | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/Makefile b/Makefile | ||
| 16 | index 97f56b83..08e4c595 100644 | ||
| 17 | --- a/Makefile | ||
| 18 | +++ b/Makefile | ||
| 19 | @@ -372,7 +372,7 @@ endif | ||
| 20 | # Additionally disable all drivers needing raw access (memory, PCI, port I/O) | ||
| 21 | # on architectures with unknown raw access properties. | ||
| 22 | # Right now those architectures are alpha hppa m68k sh s390 | ||
| 23 | -ifneq ($(ARCH), $(filter $(ARCH), x86 mips ppc arm sparc arc e2k)) | ||
| 24 | +ifneq ($(ARCH), $(filter $(ARCH), x86 mips ppc arm sparc arc e2k riscv)) | ||
| 25 | $(call mark_unsupported,$(DEPENDS_ON_RAW_MEM_ACCESS)) | ||
| 26 | endif | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.46.2 | ||
| 30 | |||
diff --git a/meta-oe/recipes-bsp/flashrom/flashrom/0001-linux_mtd-fix-build-with-clang-19.patch b/meta-oe/recipes-bsp/flashrom/flashrom/0001-linux_mtd-fix-build-with-clang-19.patch deleted file mode 100644 index 46bd0bba44..0000000000 --- a/meta-oe/recipes-bsp/flashrom/flashrom/0001-linux_mtd-fix-build-with-clang-19.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | From 615fae91dafdb89f0f8418129918dbb7ff879cf6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Arnaud Ferraris <arnaud.ferraris@collabora.com> | ||
| 3 | Date: Thu, 24 Oct 2024 17:51:29 +0200 | ||
| 4 | Subject: [PATCH] linux_mtd: fix build with clang >= 19 | ||
| 5 | |||
| 6 | Starting with version 19, clang issues a warning when using `strlen()` | ||
| 7 | for initializing a static array's size. This causes the build to fail as | ||
| 8 | the project also sets `-Werror`. | ||
| 9 | |||
| 10 | This is fixed by using `sizeof()` instead, which is guaranteed to be | ||
| 11 | evaluated at compilation time and therefore not triggering the | ||
| 12 | problematic warning. | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/flashrom/flashrom/commit/34b1a6aa57e910c0b5a518e8a0cab6841c7efaee] | ||
| 15 | |||
| 16 | Change-Id: If470a65702e9ae08e4303123a0014e53a1fee56e | ||
| 17 | Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> | ||
| 18 | Reviewed-on: https://review.coreboot.org/c/flashrom/+/84856 | ||
| 19 | Tested-by: build bot (Jenkins) <no-reply@coreboot.org> | ||
| 20 | Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> | ||
| 21 | Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> | ||
| 22 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 23 | --- | ||
| 24 | linux_mtd.c | 2 +- | ||
| 25 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 26 | |||
| 27 | diff --git a/linux_mtd.c b/linux_mtd.c | ||
| 28 | index eea0cf2..0cb2330 100644 | ||
| 29 | --- a/linux_mtd.c | ||
| 30 | +++ b/linux_mtd.c | ||
| 31 | @@ -49,7 +49,7 @@ static int read_sysfs_string(const char *sysfs_path, const char *filename, char | ||
| 32 | int i; | ||
| 33 | size_t bytes_read; | ||
| 34 | FILE *fp; | ||
| 35 | - char path[strlen(LINUX_MTD_SYSFS_ROOT) + 32]; | ||
| 36 | + char path[sizeof(LINUX_MTD_SYSFS_ROOT) + 31]; | ||
| 37 | |||
| 38 | snprintf(path, sizeof(path), "%s/%s", sysfs_path, filename); | ||
| 39 | |||
diff --git a/meta-oe/recipes-bsp/flashrom/flashrom/0002-meson-Add-options-pciutils-ftdi-usb.patch b/meta-oe/recipes-bsp/flashrom/flashrom/0002-meson-Add-options-pciutils-ftdi-usb.patch index bc43f17e9a..8dfed855b4 100644 --- a/meta-oe/recipes-bsp/flashrom/flashrom/0002-meson-Add-options-pciutils-ftdi-usb.patch +++ b/meta-oe/recipes-bsp/flashrom/flashrom/0002-meson-Add-options-pciutils-ftdi-usb.patch | |||
| @@ -16,10 +16,10 @@ Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> | |||
| 16 | 2 files changed, 6 insertions(+), 3 deletions(-) | 16 | 2 files changed, 6 insertions(+), 3 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/meson.build b/meson.build | 18 | diff --git a/meson.build b/meson.build |
| 19 | index ae56b26c..21093a7f 100644 | 19 | index 6c8d3d3..61b794d 100644 |
| 20 | --- a/meson.build | 20 | --- a/meson.build |
| 21 | +++ b/meson.build | 21 | +++ b/meson.build |
| 22 | @@ -151,9 +151,9 @@ systems_serial = [ 'linux', 'openbsd', 'freebsd', 'dragonfly', 'netbsd', 'da | 22 | @@ -150,9 +150,9 @@ systems_serial = [ 'linux', 'openbsd', 'freebsd', 'dragonfly', 'netbsd', 'da |
| 23 | 23 | ||
| 24 | cpus_port_io = [ 'x86', 'x86_64' ] | 24 | cpus_port_io = [ 'x86', 'x86_64' ] |
| 25 | 25 | ||
| @@ -33,16 +33,17 @@ index ae56b26c..21093a7f 100644 | |||
| 33 | group_serial = get_option('programmer').contains('group_serial') | 33 | group_serial = get_option('programmer').contains('group_serial') |
| 34 | group_jlink = get_option('programmer').contains('group_jlink') | 34 | group_jlink = get_option('programmer').contains('group_jlink') |
| 35 | diff --git a/meson_options.txt b/meson_options.txt | 35 | diff --git a/meson_options.txt b/meson_options.txt |
| 36 | index 8a04114d..ae722509 100644 | 36 | index 87456a9..570b152 100644 |
| 37 | --- a/meson_options.txt | 37 | --- a/meson_options.txt |
| 38 | +++ b/meson_options.txt | 38 | +++ b/meson_options.txt |
| 39 | @@ -25,3 +25,6 @@ option('ni845x_search_path', type : 'string', value : 'C:\Program Files (x86)\Na | 39 | @@ -24,4 +24,7 @@ option('ni845x_search_path', type : 'string', value : 'C:\Program Files (x86)\Na |
| 40 | option('delay_minimum_sleep_us', type : 'integer', min : 0, value : 100000, | 40 | option('delay_minimum_sleep_us', type : 'integer', min : 0, value : 100, |
| 41 | description : 'Minimum time in microseconds to suspend execution for (rather than polling) when a delay is required.' | 41 | description : 'Minimum time in microseconds to suspend execution for (rather than polling) when a delay is required.' |
| 42 | + ' Larger values may perform better on machines with low timer resolution, at the cost of increased power.') | 42 | + ' Larger values may perform better on machines with low timer resolution, at the cost of increased power.') |
| 43 | +option('pciutils', type : 'boolean', value : false, description : 'Select programmer group pci') | 43 | +option('pciutils', type : 'boolean', value : false, description : 'Select programmer group pci') |
| 44 | +option('usb', type : 'boolean', value : false, description : 'Select programmer group usb') | 44 | +option('usb', type : 'boolean', value : false, description : 'Select programmer group usb') |
| 45 | +option('ftdi', type : 'boolean', value : false, description : 'Select programmer group ftdi') | 45 | +option('ftdi', type : 'boolean', value : false, description : 'Select programmer group ftdi') |
| 46 | option('rpmc', type : 'feature', value : 'auto', description : 'Support for Replay Protected Monotonic Counter (RPMC) commands as specified by JESD260') | ||
| 46 | -- | 47 | -- |
| 47 | 2.46.2 | 48 | 2.43.0 |
| 48 | 49 | ||
diff --git a/meta-oe/recipes-bsp/flashrom/flashrom_1.4.0.bb b/meta-oe/recipes-bsp/flashrom/flashrom_1.5.1.bb index 6c5d05f2d0..9a8e81bae3 100644 --- a/meta-oe/recipes-bsp/flashrom/flashrom_1.4.0.bb +++ b/meta-oe/recipes-bsp/flashrom/flashrom_1.5.1.bb | |||
| @@ -4,12 +4,10 @@ HOMEPAGE = "http://flashrom.org" | |||
| 4 | 4 | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 6 | SRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.xz \ | 6 | SRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.xz \ |
| 7 | file://0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch \ | ||
| 8 | file://0002-meson-Add-options-pciutils-ftdi-usb.patch \ | 7 | file://0002-meson-Add-options-pciutils-ftdi-usb.patch \ |
| 9 | file://0001-linux_mtd-fix-build-with-clang-19.patch \ | ||
| 10 | " | 8 | " |
| 11 | 9 | ||
| 12 | SRC_URI[sha256sum] = "eb0eb3e61a57fd1926c66f08664cf04a96f92cee23b600cf563087c2178d70d8" | 10 | SRC_URI[sha256sum] = "1f934b076ed49eace203655ec249fc7861a6b8e87fe4aef732e47b6e485b6293" |
| 13 | 11 | ||
| 14 | S = "${WORKDIR}/flashrom-v${PV}" | 12 | S = "${WORKDIR}/flashrom-v${PV}" |
| 15 | 13 | ||
