mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 01:12:58 +02:00
vboot-utils: fix cross compilation
This commit is contained in:
parent
6936e3de73
commit
378ce6bdde
1 changed files with 4 additions and 6 deletions
|
@ -2,14 +2,14 @@
|
||||||
pkgname=vboot-utils
|
pkgname=vboot-utils
|
||||||
version=45.7262
|
version=45.7262
|
||||||
_githash=0e8c964915fffb58032bb59bdb31949de718ca90
|
_githash=0e8c964915fffb58032bb59bdb31949de718ca90
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="pkg-config git"
|
hostmakedepends="pkg-config git"
|
||||||
makedepends="libressl-devel libuuid-devel liblzma-devel libyaml-devel"
|
makedepends="libressl-devel libuuid-devel liblzma-devel libyaml-devel"
|
||||||
short_desc="Verified boot kernel utilities"
|
short_desc="Verified boot kernel utilities"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
homepage="https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git"
|
homepage="https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git"
|
||||||
CFLAGS=-D_GNU_SOURCE
|
CFLAGS='-D_GNU_SOURCE -Wno-error'
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git $pkgname-$version || true
|
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference.git $pkgname-$version || true
|
||||||
|
@ -19,6 +19,7 @@ do_fetch() {
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
local _arch=
|
local _arch=
|
||||||
|
sed -i "s/MTD_CHAR_MAJOR/90/" cgpt/cgpt_wrapper.c
|
||||||
case $XBPS_TARGET_MACHINE in
|
case $XBPS_TARGET_MACHINE in
|
||||||
x86_64*) _arch=x86_64 ;;
|
x86_64*) _arch=x86_64 ;;
|
||||||
i686*) _arch=x86 ;;
|
i686*) _arch=x86 ;;
|
||||||
|
@ -30,10 +31,7 @@ do_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make STRIP=true DESTDIR=${DESTDIR}/usr install
|
make STRIP=true DESTDIR=${DESTDIR}/usr MINIMAL=1 install
|
||||||
rm -r $DESTDIR/usr/lib/pkgconfig
|
|
||||||
vmkdir etc
|
|
||||||
vmkdir usr/share/vboot
|
vmkdir usr/share/vboot
|
||||||
mv $DESTDIR/usr/default $DESTDIR/etc
|
|
||||||
vcopy tests/devkeys usr/share/vboot/devkeys
|
vcopy tests/devkeys usr/share/vboot/devkeys
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue