2015-06-16 12:38:22 +02:00
|
|
|
# Template file for 'vboot-utils'
|
|
|
|
pkgname=vboot-utils
|
2015-07-21 18:37:36 +02:00
|
|
|
version=45.7262
|
2015-08-06 15:51:06 +02:00
|
|
|
revision=4
|
2015-07-21 18:49:41 +02:00
|
|
|
_githash=0e8c964915fffb58032bb59bdb31949de718ca90
|
|
|
|
hostmakedepends="pkg-config git"
|
2015-07-21 18:37:36 +02:00
|
|
|
makedepends="libressl-devel libuuid-devel liblzma-devel libyaml-devel"
|
2015-06-16 12:38:22 +02:00
|
|
|
short_desc="Verified boot kernel utilities"
|
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2015-06-16 12:45:14 +02:00
|
|
|
license="BSD"
|
2015-06-16 12:38:22 +02:00
|
|
|
homepage="https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git"
|
2015-07-21 19:28:25 +02:00
|
|
|
CFLAGS='-D_GNU_SOURCE -Wno-error'
|
2015-07-21 18:49:41 +02:00
|
|
|
|
|
|
|
do_fetch() {
|
2015-07-21 19:39:40 +02:00
|
|
|
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git $pkgname-$version || true
|
|
|
|
cd $pkgname-$version
|
|
|
|
git checkout $_githash
|
2015-07-21 18:49:41 +02:00
|
|
|
}
|
2015-06-16 12:52:13 +02:00
|
|
|
|
2015-06-16 12:38:22 +02:00
|
|
|
do_build() {
|
2015-06-16 13:07:20 +02:00
|
|
|
local _arch=
|
2015-07-21 19:28:25 +02:00
|
|
|
sed -i "s/MTD_CHAR_MAJOR/90/" cgpt/cgpt_wrapper.c
|
2015-06-16 13:07:20 +02:00
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
|
|
x86_64*) _arch=x86_64 ;;
|
|
|
|
i686*) _arch=x86 ;;
|
|
|
|
arm*) _arch=arm ;;
|
|
|
|
esac
|
2015-07-21 18:37:36 +02:00
|
|
|
make CC="$CC" LD="$CC" AR="$AR" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
|
|
|
|
MINIMAL=1 ARCH=$_arch ${makejobs} \
|
2015-06-16 12:38:22 +02:00
|
|
|
cgpt utils futil
|
|
|
|
}
|
|
|
|
|
2015-07-21 18:37:36 +02:00
|
|
|
do_install() {
|
2015-07-21 19:28:25 +02:00
|
|
|
make STRIP=true DESTDIR=${DESTDIR}/usr MINIMAL=1 install
|
2015-07-21 18:37:36 +02:00
|
|
|
vmkdir usr/share/vboot
|
2015-06-16 13:25:54 +02:00
|
|
|
vcopy tests/devkeys usr/share/vboot/devkeys
|
2015-06-16 12:38:22 +02:00
|
|
|
}
|