# HG changeset patch # User Pascal Bellard # Date 1397636837 0 # Node ID ead97edb5f626a61815f86f53453618d4f5f7815 # Parent fb93e543dbce319c8fa2944b168a4a86283f7368 ARM: add kexec_tools diff -r fb93e543dbce -r ead97edb5f62 kexec-tools/receipt --- a/kexec-tools/receipt Wed Apr 16 09:06:56 2014 +0200 +++ b/kexec-tools/receipt Wed Apr 16 08:27:17 2014 +0000 @@ -9,6 +9,7 @@ TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="ftp://ftp.kernel.org/pub/linux/utils/kernel/kexec/" WGET_URL="${WEB_SITE}$TARBALL" +HOST_ARCH="i486 arm x86_64" DEPENDS="zlib" BUILD_DEPENDS="zlib-dev liblzma-dev" @@ -18,12 +19,26 @@ { cd $src export LDFLAGS="-lpthread" - ./configure prefix=/usr \ - --target=i386-linux && + case "$ARCH" in + i?86) + ./configure prefix=/usr \ + --target=i386-linux ;; + *) + ./configure prefix=/usr \ + --build=$BUILD_SYSTEM \ + --host=$HOST_SYSTEM ;; + esac && make && make DESTDIR=$DESTDIR install } +# Important cross compiled package so run readelf. +testsuite() +{ + cd $install + readelf -h usr/sbin/kexec +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() {