Hello,
After the split in the flashrom upstream, one of the old devs (Nico Huber) took
to maintaining the fork which carries on with the original mission.

This fork is called flashrom-stable and it is part of the Coreboot tree too.
So far it has slightly better chip support than the former upstream and a major
feature is the focus on the core mission instead of getting lost in the rust
hype as happened to the upstream thereof.

I have adapted a package build from the AUR, with minimal changes to make it
work under Parabola's requirements and conditions.
Tested currently fully on a ThinkPad X200 (x86_64), but I see no glaring issues
as to why it won't run on other platforms.

-- 
Kind Regards,
Wael Karram.


From 2a11fd33e02c18a67609b126b9700b76757bdfb4 Mon Sep 17 00:00:00 2001
From: Wael Karram <[email protected]>
Date: Thu, 25 May 2023 19:16:42 +0300
Subject: [PATCH] Added PKGBUILD for flashrom-stable, a Coreboot-maintained
 fork of flashrom.

---
 pcr/flashrom-stable/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 pcr/flashrom-stable/PKGBUILD

diff --git a/pcr/flashrom-stable/PKGBUILD b/pcr/flashrom-stable/PKGBUILD
new file mode 100644
index 000000000..770a44789
--- /dev/null
+++ b/pcr/flashrom-stable/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer (AUR): Nico Huber <[email protected]>
+# Maintainer (Parabola): Wael Karram <[email protected]>
+
+# Parabola Changes and Rationale:
+# This package exists as an alternative to the rust-ridden flashrom
+# Change of compilation targets to what is relevant for Parabola.
+
+pkgname="flashrom-stable"
+pkgdesc="Flashrom is a utility which can be used to detect, read, erase, or write BIOS chips (DIP, PLCC, SPI)."
+pkgver=1.1
+pkgrel=1
+url="https://review.coreboot.org/plugins/gitiles/flashrom-stable";
+license=('GPL')
+source=(git+https://review.coreboot.org/flashrom-stable.git?signed#tag=v${pkgver})
+validpgpkeys=('2853079C9C66AB7E82C64966A5C163B7E557CAEB')
+sha256sums=('SKIP')
+depends=('pciutils' 'libusb' 'libftdi' 'libjaylink' 'libgpiod')
+makedepends=('git' 'make')
+optdepends=("dmidecode: for SMBIOS/DMI table decoder support")
+conflicts=("flashrom")
+arch=('armv7h' 'i686' 'x86_64')
+
+build() {
+	cd "${srcdir}/${pkgname}"
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}"
+	install -d "${pkgdir}/usr/bin"
+	install -d "${pkgdir}/usr/man/man8"
+	install -m 0755 flashrom "${pkgdir}/usr/bin/"
+	install -m 0644 flashrom.8 "${pkgdir}/usr/man/man8/"
+	install -m 0755 util/ich_descriptors_tool/ich_descriptors_tool "${pkgdir}/usr/bin/"
+}
-- 
2.40.1

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to