vboot-utils: fix crossbuild.

This commit is contained in:
Enno Boland 2015-06-16 13:07:20 +02:00
parent bac01f5894
commit abf715a93a

View file

@ -14,7 +14,6 @@ distfiles="$homepage/+archive/refs/heads/release-R${version//./-}.B.tar.gz"
checksum=67be2192c7db1e11d652a62d1472190764e336c758feb8db912b42d2cab70965
CFLAGS=-D_GNU_SOURCE
make_install_args="MINIMAL=1"
#only_for_archs="x86_64"
do_fetch() {
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git $pkgname-$version || true
@ -23,7 +22,13 @@ do_fetch() {
}
do_build() {
make CC="$CC" LD="$CC" AR="$AR" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" MINIMAL=1 ${makejobs} \
local _arch=
case $XBPS_TARGET_MACHINE in
x86_64*) _arch=x86_64 ;;
i686*) _arch=x86 ;;
arm*) _arch=arm ;;
esac
make CC="$CC" LD="$CC" AR="$AR" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" MINIMAL=1 ARCH=$_arch ${makejobs} \
cgpt utils futil
}