wok-next diff linux-arm-api-headers/receipt @ rev 12697
slitaz-tools: temp patch to tazinst removed
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu May 03 07:51:54 2012 +0200 (2012-05-03) |
parents | 8b68b81bf9c7 |
children |
line diff
1.1 --- a/linux-arm-api-headers/receipt Tue Apr 17 12:33:55 2012 +0200 1.2 +++ b/linux-arm-api-headers/receipt Thu May 03 07:51:54 2012 +0200 1.3 @@ -15,11 +15,15 @@ 1.4 1.5 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz" 1.6 1.7 +# Cross toolchain variables. 1.8 +CROSS_TARGET="arm-slitaz-linux-gnueabi" 1.9 +CROSS_PREFIX="/usr/cross/arm" 1.10 + 1.11 # Rules to configure and make the package. 1.12 compile_rules() 1.13 { 1.14 cd $src 1.15 - 1.16 + 1.17 if [ "$KBASEVER" != "$VERSION" ]; then 1.18 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then 1.19 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1 1.20 @@ -31,20 +35,15 @@ 1.21 1.22 make mrproper && 1.23 make ARCH=arm headers_check && 1.24 - make ARCH=arm INSTALL_HDR_PATH=$DESTDIR/usr headers_install 1.25 + make ARCH=arm \ 1.26 + INSTALL_HDR_PATH=${DESTDIR}${CROSS_PREFIX} \ 1.27 + headers_install 1.28 } 1.29 1.30 # Rules to gen a SliTaz package suitable for Tazpkg. 1.31 genpkg_rules() 1.32 { 1.33 mkdir -p $fs/usr 1.34 - cp -a $_pkg/usr/include $fs/usr 1.35 + cp -a $install/usr/cross $fs/usr 1.36 rm -f $(find ${fs} -name .install -or -name ..install.cmd) 1.37 } 1.38 - 1.39 -# Post install commands for Tazpkg. 1.40 -post_install() 1.41 -{ 1.42 - # Removed old linux-headers 1.43 - rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null 1.44 -}