New package: coreboot-utils-4.8.1
This commit is contained in:
parent
272504c1d6
commit
0affb3d70d
|
@ -0,0 +1 @@
|
|||
coreboot-utils
|
|
@ -0,0 +1,11 @@
|
|||
--- util/inteltool/inteltool.h 2018-08-27 12:35:48.049321340 +0200
|
||||
+++ util/inteltool/inteltool.h 2018-08-27 12:30:27.434969376 +0200
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
-#if defined(__GLIBC__)
|
||||
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__) ||defined(__NetBSD__) || defined(__DARWIN__))
|
||||
#include <sys/io.h>
|
||||
#endif
|
||||
#if (defined(__MACH__) && defined(__APPLE__))
|
|
@ -0,0 +1,11 @@
|
|||
--- util/nvramtool/accessors/cmos-hw-unix.c 2018-08-27 12:20:14.139599118 +0200
|
||||
+++ util/nvramtool/accessors/cmos-hw-unix.c 2018-08-27 12:19:45.558280906 +0200
|
||||
@@ -11,7 +11,7 @@
|
||||
#define INW(x) __extension__ ({ u_int tmp = (x); inw(tmp); })
|
||||
#define INL(x) __extension__ ({ u_int tmp = (x); inl(tmp); })
|
||||
#else
|
||||
-#if defined(__GLIBC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
+#if (defined(__i386__) || defined(__x86_64__)) && !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__))
|
||||
#include <sys/io.h>
|
||||
#endif
|
||||
#if (defined(__MACH__) && defined(__APPLE__))
|
|
@ -0,0 +1,22 @@
|
|||
--- util/superiotool/Makefile 2018-05-16 21:00:17.000000000 +0200
|
||||
+++ util/superiotool/Makefile 2018-08-27 12:56:28.070741476 +0200
|
||||
@@ -25,7 +25,7 @@
|
||||
VERSION := -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
|
||||
|
||||
CFLAGS += -O2 -Wall -Wstrict-prototypes -Wundef -Wstrict-aliasing \
|
||||
- -Werror-implicit-function-declaration -ansi -pedantic $(VERSION)
|
||||
+ -Werror-implicit-function-declaration -pedantic $(VERSION)
|
||||
LDFLAGS += -lz
|
||||
|
||||
OBJS = superiotool.o serverengines.o ali.o exar.o fintek.o ite.o nsc.o \
|
||||
--- util/superiotool/superiotool.h 2018-05-16 21:00:17.000000000 +0200
|
||||
+++ util/superiotool/superiotool.h 2018-08-27 12:50:25.627387315 +0200
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
-#if defined(__GLIBC__)
|
||||
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__))
|
||||
#include <sys/io.h>
|
||||
#endif
|
||||
#if (defined(__MACH__) && defined(__APPLE__))
|
|
@ -0,0 +1,43 @@
|
|||
# Template file for 'coreboot-utils'
|
||||
pkgname=coreboot-utils
|
||||
version=4.8.1
|
||||
revision=1
|
||||
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||
build_style=gnu-makefile
|
||||
wrksrc="coreboot-${version}"
|
||||
build_wrksrc="util"
|
||||
makedepends="pciutils-devel zlib-devel"
|
||||
short_desc="Coreboot firmware utilities"
|
||||
maintainer="m3tav3rse <n6maa10816@tuta.io>"
|
||||
license="GPL-2.0-only"
|
||||
homepage="https://coreboot.org"
|
||||
distfiles="https://coreboot.org/releases/coreboot-${version}.tar.xz>${pkgname}-\
|
||||
${version}.tar.xz"
|
||||
checksum=f0ddf4db0628c1fe1e8348c40084d9cbeb5771400c963fd419cda3995b69ad23
|
||||
|
||||
do_build() {
|
||||
for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
|
||||
nvramtool superiotool; do
|
||||
make ${makejobs} -C $util
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
for util in cbfstool cbmem ectool ifdtool inteltool intelmetool \
|
||||
nvramtool superiotool; do
|
||||
vbin $util/$util
|
||||
done
|
||||
vman inteltool/inteltool.8
|
||||
vman nvramtool/cli/nvramtool.8
|
||||
vman superiotool/superiotool.8
|
||||
}
|
||||
|
||||
coreboot-utils-me_cleaner_package() {
|
||||
depends="python3"
|
||||
short_desc+=" - tool for partial deblobbing Intel ME/TXE firmware"
|
||||
license="GPL-3.0-or-later"
|
||||
pkg_install() {
|
||||
vbin me_cleaner/me_cleaner.py me_cleaner
|
||||
vman me_cleaner/man/me_cleaner.1
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue