From 4740c9793f0252d5c4a6f0b8454d0281d7695379 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 16 Jun 2015 12:38:22 +0200 Subject: [PATCH] New package: vboot-utils-44.7077 --- .../vboot-utils/patches/tpm_lite_stub.patch | 10 ++++++++ srcpkgs/vboot-utils/template | 25 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/vboot-utils/patches/tpm_lite_stub.patch create mode 100644 srcpkgs/vboot-utils/template diff --git a/srcpkgs/vboot-utils/patches/tpm_lite_stub.patch b/srcpkgs/vboot-utils/patches/tpm_lite_stub.patch new file mode 100644 index 00000000000..a736beb856a --- /dev/null +++ b/srcpkgs/vboot-utils/patches/tpm_lite_stub.patch @@ -0,0 +1,10 @@ +--- ./firmware/stub/tpm_lite_stub.c.orig 2015-06-16 12:29:51.609619681 +0200 ++++ ./firmware/stub/tpm_lite_stub.c 2015-06-16 12:30:01.216620121 +0200 +@@ -14,6 +14,7 @@ + #include "utility.h" + #include "vboot_api.h" + ++#include + #include + #include + #include diff --git a/srcpkgs/vboot-utils/template b/srcpkgs/vboot-utils/template new file mode 100644 index 00000000000..de2cbaaeea6 --- /dev/null +++ b/srcpkgs/vboot-utils/template @@ -0,0 +1,25 @@ +# Template file for 'vboot-utils' +pkgname=vboot-utils +version=44.7077 +revision=1 +create_wrksrc=yes +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="libressl-devel libuuid-devel" +short_desc="Verified boot kernel utilities" +maintainer="Enno Boland " +license="GPL-3" +homepage="https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git" +distfiles="$homepage/+archive/refs/heads/release-R${version//./-}.B.tar.gz" +checksum=9c535ebd24d04a13c0a284a3e17fc4f51613448581c136f62b2aebd849059c6a +CFLAGS=-D_GNU_SOURCE +make_install_args="MINIMAL=1" + +do_build() { + make CC="$CC" LD="$CC" AR="$AR" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" MINIMAL=1 ${makejobs} \ + cgpt utils futil +} + +post_install() { + rm -r $DESTDIR/usr/lib/pkgconfig +}