wok-tiny rev 156

linux: recompress with upx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 15 11:54:42 2019 +0100 (8 months ago)
parents b983dfa0a9ae
children a28c45a86936
files linux/receipt plop/stuff/bootloader.S
line diff
     1.1 --- a/linux/receipt	Sat Oct 12 12:05:54 2019 +0200
     1.2 +++ b/linux/receipt	Fri Nov 15 11:54:42 2019 +0100
     1.3 @@ -15,7 +15,7 @@
     1.4  AUTO_SELECTION="always"
     1.5  
     1.6  DEPENDS=""
     1.7 -BUILD_DEPENDS="slitaz-toolchain perl git lzma wget gcc2"
     1.8 +BUILD_DEPENDS="slitaz-toolchain perl git lzma wget gcc2 upx"
     1.9  BUILD_SUGGESTED="advancecomp zopfli"
    1.10  INSTALL_DEPENDS="lz4 grep"
    1.11  
    1.12 @@ -59,19 +59,21 @@
    1.13  	S2bin helper
    1.14  	S2bin unpacklz4
    1.15  	cp $stuff/pack .
    1.16 -	./pack --build
    1.17 +	sh ./pack --build
    1.18  
    1.19  	sed -i '/config %config:/{NNNps/config %config:/%config:/}' Makefile
    1.20  	sed -i 's/^config %config:/config:/' Makefile
    1.21  	cp $stuff/linux-$VERSION-slitaz.config .config
    1.22  	yes '' | make ARCH=i386 HOSTCC=gcc-2 config
    1.23  	make ARCH=i386 CC=gcc-2 HOSTCC=gcc-2 -j 4 bzImage
    1.24 +	which upx 2> /dev/null &&
    1.25 +	upx --ultra-brute arch/i386/boot/bzImage
    1.26  	grep -q "CONFIG_MODULES=y" .config &&
    1.27  	make ARCH=i386 CC=gcc-2 HOSTCC=gcc-2 -j 4 modules &&
    1.28  	make ARCH=i386 INSTALL_MOD_PATH=$DESTDIR -j 1 modules_install || true
    1.29  	S2bin bundle
    1.30  	cp $stuff/bundle .
    1.31 -	./bundle
    1.32 +	sh ./bundle
    1.33  	S2bin cmdline
    1.34  }
    1.35  
     2.1 --- a/plop/stuff/bootloader.S	Sat Oct 12 12:05:54 2019 +0200
     2.2 +++ b/plop/stuff/bootloader.S	Fri Nov 15 11:54:42 2019 +0100
     2.3 @@ -467,7 +467,9 @@
     2.4  # Assume no error on first track.
     2.5  
     2.6  #ifdef FLOPPY_1440K_ONLY
     2.7 +#ifndef FLOPPY_HAS_2_SIDES
     2.8  #define FLOPPY_HAS_2_SIDES	hardcore heads count to 2
     2.9 +#endif
    2.10  #define FLOPPY_SECTORS		18	/* 18 sectors */
    2.11  #else
    2.12  #define FLOPPY_HEADS		2	/* 2 heads minimum */