wok rev 16398

ARM: add kexec_tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 16 08:27:17 2014 +0000 (2014-04-16)
parents fb93e543dbce
children 46bbbdff805b
files kexec-tools/receipt
line diff
     1.1 --- a/kexec-tools/receipt	Wed Apr 16 09:06:56 2014 +0200
     1.2 +++ b/kexec-tools/receipt	Wed Apr 16 08:27:17 2014 +0000
     1.3 @@ -9,6 +9,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     1.5  WEB_SITE="ftp://ftp.kernel.org/pub/linux/utils/kernel/kexec/"
     1.6  WGET_URL="${WEB_SITE}$TARBALL"
     1.7 +HOST_ARCH="i486 arm x86_64"
     1.8  
     1.9  DEPENDS="zlib"
    1.10  BUILD_DEPENDS="zlib-dev liblzma-dev"
    1.11 @@ -18,12 +19,26 @@
    1.12  {
    1.13  	cd $src
    1.14  	export LDFLAGS="-lpthread"
    1.15 -	./configure prefix=/usr \
    1.16 -		--target=i386-linux &&
    1.17 +	case "$ARCH" in
    1.18 +	i?86)
    1.19 +		./configure prefix=/usr \
    1.20 +			--target=i386-linux ;;
    1.21 +	*)
    1.22 +		./configure prefix=/usr \
    1.23 +			--build=$BUILD_SYSTEM \
    1.24 +			--host=$HOST_SYSTEM ;;
    1.25 +	esac &&
    1.26  	make &&
    1.27  	make DESTDIR=$DESTDIR install
    1.28  }
    1.29  
    1.30 +# Important cross compiled package so run readelf.
    1.31 +testsuite()
    1.32 +{
    1.33 +	cd $install
    1.34 +	readelf -h usr/sbin/kexec
    1.35 +}
    1.36 +
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38  genpkg_rules()
    1.39  {