mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-05 13:52:21 +02:00
85 lines
2.2 KiB
Plaintext
85 lines
2.2 KiB
Plaintext
# Contributor: Nulo <alpine@nulo.in>
|
||
# Maintainer: Adam Thiede <me@adamthiede.com>
|
||
pkgname=coreboot-tools
|
||
pkgver=24.05
|
||
pkgrel=1
|
||
pkgdesc="Tools from the coreboot project"
|
||
url="https://review.coreboot.org/coreboot"
|
||
# coreboot only runs on x86_64 and x86 systems
|
||
arch="x86 x86_64"
|
||
license="GPL-2.0-only"
|
||
|
||
makedepends="
|
||
inkscape
|
||
meson
|
||
pciutils-dev
|
||
qt5-qtbase-dev
|
||
qt5-qttools-dev
|
||
qt5-qtsvg-dev
|
||
yaml-cpp-dev
|
||
zlib-dev
|
||
"
|
||
subpackages="$pkgname-intelmetool $pkgname-ectool $pkgname-nvramtool $pkgname-nvramtool-doc:nvramtool_doc:noarch $pkgname-ifdtool $pkgname-configurator"
|
||
source="
|
||
https://coreboot.org/releases/coreboot-$pkgver.tar.xz
|
||
"
|
||
builddir="$srcdir/coreboot-$pkgver"
|
||
options="!check" # no test suite
|
||
|
||
build() {
|
||
make -C util/intelmetool CFLAGS+="-I $builddir/src/commonlib/bsd/include"
|
||
make -e -C util/ectool
|
||
make -e -C util/nvramtool CFLAGS="$CFLAGS -I. -DCMOS_HAL=1"
|
||
make -e -C util/ifdtool
|
||
abuild-meson -Db_lto=true util/coreboot-configurator util/coreboot-configurator/output
|
||
meson compile -C util/coreboot-configurator/output
|
||
}
|
||
|
||
package() {
|
||
make -e -C util/intelmetool PREFIX="$pkgdir/usr" install
|
||
make -e -C util/ectool PREFIX="$pkgdir/usr" install
|
||
make -e -C util/nvramtool PREFIX="$pkgdir/usr" install
|
||
make -e -C util/ifdtool PREFIX="$pkgdir/usr" install
|
||
}
|
||
|
||
intelmetool() {
|
||
pkgdesc="Dump interesting things about Management Engine"
|
||
|
||
amove usr/sbin/intelmetool
|
||
}
|
||
|
||
nvramtool() {
|
||
pkgdesc="Manipulates NVRAM from userspace"
|
||
|
||
amove usr/sbin/nvramtool
|
||
}
|
||
|
||
nvramtool_doc() {
|
||
pkgdesc="Manipulates NVRAM from userspace (documentation)"
|
||
install_if="$pkgname-nvramtool=$pkgver-r$pkgrel docs"
|
||
|
||
amove usr/share/man/man8/nvramtool*
|
||
gzip -9n "$subpkgdir"/usr/share/man/man8/*
|
||
}
|
||
|
||
ectool() {
|
||
pkgdesc="Dumps the RAM of a laptop’s Embedded/Environmental Controller (EC)"
|
||
|
||
amove usr/sbin/ectool
|
||
}
|
||
|
||
ifdtool() {
|
||
pkgdesc="Extract and dump Intel Firmware Descriptor information"
|
||
|
||
amove usr/bin/ifdtool
|
||
}
|
||
|
||
configurator() {
|
||
pkgdesc="Graphical NVRAMtool frontend"
|
||
DESTDIR="$subpkgdir" meson install --no-rebuild -C $builddir/util/coreboot-configurator/output
|
||
}
|
||
|
||
sha512sums="
|
||
fc35a8ccd6a3c0ec1a3e1f97f8d0dce994d82751ccc2d2a3f503288cb9900c2e10ee79fca2cb1fb58dac731e17b28d579a603f541ee4c0f1c79dfcfe452f7e12 coreboot-24.05.tar.xz
|
||
"
|