# HG changeset patch # User Christophe Lincoln # Date 1392759779 -3600 # Node ID 759c56de26cb4d6ed88bcbe86248413730474f8d # Parent 89cf79341e902a7ea3ccc0e8ea192d65e6911f1c linux: fix build for arm diff -r 89cf79341e90 -r 759c56de26cb linux/receipt --- a/linux/receipt Tue Feb 18 20:18:29 2014 +0000 +++ b/linux/receipt Tue Feb 18 22:42:59 2014 +0100 @@ -37,16 +37,19 @@ # Handle multiarch installation. ARM use Busybox modutils, so avoid any # deps on kmod. SLITAZ_ARCH can have also custom post_install commands -. $root/etc/slitaz/slitaz.conf || exit 1 -case "$SLITAZ_ARCH" in - arm) DEPENDS="" ;; -esac +if [ -f $root/etc/slitaz/slitaz.conf ]; then + . $root/etc/slitaz/slitaz.conf + case "$SLITAZ_ARCH" in + arm) DEPENDS="" ;; + esac +fi # Rules to configure and make the package. compile_rules() { - cd $src - cp /usr/share/boot/initrd initrd.cpio + if [ -f "/usr/share/boot/initrd" ]; then + cp /usr/share/boot/initrd initrd.cpio + fi # Handle cross compilation case "$ARCH" in @@ -63,6 +66,7 @@ mkdir -p $DESTDIR/boot && cp -a arch/arm/boot/zImage \ $DESTDIR/boot/linux-$VERSION-slitaz-$ARCH + #$stuff/gztazmod.sh $DESTDIR/lib/modules/$VERSION-slitaz return 0 ;; x86_64) echo "TODO: Maybe use default ? But cross compile in x86_64 chroot"