flashrom: update to 1.7.0
authorFlorian Eckert <redacted>
Thu, 2 Apr 2026 13:19:01 +0000 (15:19 +0200)
committerFlorian Eckert <redacted>
Thu, 11 Jun 2026 06:23:55 +0000 (08:23 +0200)
* Upstream change data compression format form 'tar.bz2 to' tar.xz'
* Update MESON_ARGS variables

Signed-off-by: Florian Eckert <redacted>
utils/flashrom/Makefile
utils/flashrom/flashrom.mk
utils/flashrom/patches/0001-libflashrom-fix-build-on-big-endian-targets.patch [new file with mode: 0644]

index cced9a846e664cbf8647542e5647a8ac38def8cb..91d093d4b3818b8fa81307d5fb909fafb8d378b4 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=flashrom
-PKG_VERSION:=1.3.0
-PKG_RELEASE:=2
+PKG_VERSION:=1.7.0
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.bz2
+PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://download.flashrom.org/releases
-PKG_HASH:=a053234453ccd012e79f3443bdcc61625cf97b7fd7cb4cdd8bfbffbe8b149623
+PKG_HASH:=4328ace9833f7efe7c334bdd73482cde8286819826cc00149e83fba96bf3ab4f
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-v$(PKG_VERSION)
 
 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
index 454e954436d0a65a2eede0571f52b47141656662..e28eee1ddc13571c714c77143d34e92945993c13 100644 (file)
@@ -98,6 +98,12 @@ endif
 
 MESON_ARGS += \
        -Ddefault_programmer_name=$(DEFAULT_PROGRAMMER_NAME) \
+       -Dich_descriptors_tool=enabled \
+       -Dbash_completion=disabled \
+       -Dtests=disabled \
        -Dprogrammer=$(subst $(space),$(comma),$(strip $(PROGRAMMER_ARGS))) \
-       -Dwerror=false \
-       -Dtests=disabled
+       -Drpmc=disabled \
+       -Duse_git_version=disabled \
+       -Dman-pages=disabled \
+       -Ddocumentation=disabled \
+       -Dgenerate_authors_list=disabled
diff --git a/utils/flashrom/patches/0001-libflashrom-fix-build-on-big-endian-targets.patch b/utils/flashrom/patches/0001-libflashrom-fix-build-on-big-endian-targets.patch
new file mode 100644 (file)
index 0000000..d928b07
--- /dev/null
@@ -0,0 +1,51 @@
+From 3e016738aadf6b02abb3357d6be2fde9560dbd07 Mon Sep 17 00:00:00 2001
+From: Florian Larysch <fl@n621.de>
+Date: Mon, 13 Apr 2026 01:40:52 +0200
+Subject: [PATCH] libflashrom: fix build on big-endian targets
+
+Commit f74f02e2 ("Add guard for compare_region_with_dump()") added
+little-endian-only compile guards to that function because it was only
+used on little-endian systems and caused -Wunused-function to trip on
+other targets.
+
+When b0b975d0 ("libflashrom: Add new layout_compare() function with
+test") introduced flashrom_layout_compare(), it included the new
+function within those guards too, but this isn't necessary:
+compare_region_with_dump() is not sensitive to endianess and adding that
+new dependent actually made the original reason for adding the guard
+obsolete.
+
+However, now building on big-endian architectures fails because
+cli_classic.c unconditionally refers to flashrom_layout_compare().
+
+Resolve this by simply removing the guard.
+
+Fixes: https://ticket.coreboot.org/issues/635
+
+Change-Id: If3e6828e6445e0708e1174728f91053e48a097ba
+Signed-off-by: Florian Larysch <fl@n621.de>
+Reviewed-on: https://review.coreboot.org/c/flashrom/+/92156
+Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
+Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
+---
+ libflashrom.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+--- a/libflashrom.c
++++ b/libflashrom.c
+@@ -462,7 +462,6 @@ bool flashrom_flag_get(const struct flas
+       }
+ }
+-#ifdef __FLASHROM_LITTLE_ENDIAN__
+ static int compare_region_with_dump(const struct romentry *const a, const struct romentry *const b)
+ {
+       if (a->region.start != b->region.start
+@@ -508,7 +507,6 @@ int flashrom_layout_compare(const struct
+       return 0;
+ }
+-#endif /* __FLASHROM_LITTLE_ENDIAN__ */
+ int flashrom_layout_read_from_ifd(struct flashrom_layout **const layout, struct flashctx *const flashctx,
+                                 const void *const dump, const size_t len)
git clone https://git.99rst.org/PROJECT