summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-04-06 19:46:35 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-04-12 01:03:37 -0400
commit5571a7f59ee3bee87ab45d4d2c983c6251c2f066 (patch)
tree2f2a4bea65eb98ed64d543a224270dc180df0060 /pcr
parent8144b256315765a54169b04c16ffd47c6f4213a2 (diff)
downloadabslibre-5571a7f59ee3bee87ab45d4d2c983c6251c2f066.tar.gz
abslibre-5571a7f59ee3bee87ab45d4d2c983c6251c2f066.tar.bz2
abslibre-5571a7f59ee3bee87ab45d4d2c983c6251c2f066.zip
[coreboot-util]: add package (i686 FTBS)
Diffstat (limited to 'pcr')
-rw-r--r--pcr/coreboot-util/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/coreboot-util/PKGBUILD b/pcr/coreboot-util/PKGBUILD
new file mode 100644
index 000000000..ff26ebef0
--- /dev/null
+++ b/pcr/coreboot-util/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Wael Karram <wael@waelk.tech>
+
+pkgname=coreboot-util
+pkgver=4.15
+pkgrel=1
+pkgdesc="Misc utils from the coreboot project"
+url="https://review.coreboot.org/util/ectool"
+arch=('x86_64' 'i686' 'armv7h')
+license=('GPL2')
+makedepends=('pciutils')
+source=("coreboot-${pkgver}.tar.gz::https://coreboot.org/releases/coreboot-${pkgver}.tar.xz")
+sha256sums=('20e6aaa6dd0eaec7753441c799711d1b4630e3ca709536386f2242ac2c8a1ec5')
+
+build() {
+ cd coreboot-${pkgver}/util
+
+ # Build ectool.
+ make -C ectool
+ # Build cbfstool.
+ make -C cbfstool
+ # Build nvramtool.
+ make -C nvramtool
+ # Build superiotool.
+ make -C superiotool
+ # Build cbmem.
+ make -C cbmem
+}
+
+package() {
+ cd coreboot-${pkgver}/util
+
+ # Install ectool in /usr/bin.
+ install -Dm755 ectool/ectool "${pkgdir}"/usr/bin/ectool
+ # Install cbfstool and rmodtool in /usr/bin.
+ install -Dm755 cbfstool/cbfstool "${pkgdir}"/usr/bin/cbfstool
+ install -Dm755 cbfstool/rmodtool "${pkgdir}"/usr/bin/rmodtool
+ # Install nvramtool in /usr/bin.
+ install -Dm755 nvramtool/nvramtool "${pkgdir}"/usr/bin/nvramtool
+ # Install superiotool in /usr/bin.
+ install -Dm755 superiotool/superiotool "${pkgdir}"/usr/bin/superiotool
+ # Install cbmem in /usr/bin.
+ install -Dm755 cbmem/cbmem "${pkgdir}"/usr/bin/cbmem
+}