wok-tiny rev 169

memtest,plop: tune lzma compression
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 06 12:57:42 2021 +0000 (2021-05-06)
parents a88405d94c1e
children 7a5d5860f3ea
files memtest/receipt memtest/stuff/bootloader.S memtest/stuff/pack plop/receipt plop/stuff/pack plop/stuff/unlzma.S
line diff
     1.1 --- a/memtest/receipt	Fri Apr 30 16:35:54 2021 +0000
     1.2 +++ b/memtest/receipt	Thu May 06 12:57:42 2021 +0000
     1.3 @@ -16,7 +16,7 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	ls $stuff/memtest*-$VERSION-*.patch &&
     1.8 +	ls $stuff/memtest*-$VERSION-*.patch 2> /dev/null &&
     1.9  	for i in $stuff/memtest*-$VERSION-*.patch ; do
    1.10  		patch -p1 < $i
    1.11  	done
     2.1 --- a/memtest/stuff/bootloader.S	Fri Apr 30 16:35:54 2021 +0000
     2.2 +++ b/memtest/stuff/bootloader.S	Thu May 06 12:57:42 2021 +0000
     2.3 @@ -313,8 +313,8 @@
     2.4  #else
     2.5  	subw	%ax, %bx
     2.6  	jnc	forward
     2.7 +	//movw	$0x8FFF, %ax
     2.8  	movb	$0x90, %ah
     2.9 -	;decw	%ax
    2.10  forward:
    2.11  	movw	%ax, %es
    2.12  	movw	%ax, %di
     3.1 --- a/memtest/stuff/pack	Fri Apr 30 16:35:54 2021 +0000
     3.2 +++ b/memtest/stuff/pack	Thu May 06 12:57:42 2021 +0000
     3.3 @@ -40,7 +40,7 @@
     3.4  
     3.5  compress()
     3.6  {
     3.7 -	xz -z -e --format=lzma --lzma1=mf=bt2 --stdout | dd bs=1 skip=13
     3.8 +	xz -z -e --format=raw --lzma1=mf=bt2,nice=132 --stdout
     3.9  }
    3.10  
    3.11  main()
     4.1 --- a/plop/receipt	Fri Apr 30 16:35:54 2021 +0000
     4.2 +++ b/plop/receipt	Thu May 06 12:57:42 2021 +0000
     4.3 @@ -3,7 +3,7 @@
     4.4  PACKAGE="plop"
     4.5  VERSION="5.0.15"
     4.6  CATEGORY="base-system"
     4.7 -SHORT_DESC="USB / IDE-CD / PCMCIA CardBus and others boot utility."
     4.8 +SHORT_DESC="USB / IDE-CD / PCMCIA CardBus and others boot utility (486+)."
     4.9  MAINTAINER="pascal.bellard@slitaz.org"
    4.10  LICENSE="other"
    4.11  WEB_SITE="https://www.plop.at/en/bootmanagers.html"
     5.1 --- a/plop/stuff/pack	Fri Apr 30 16:35:54 2021 +0000
     5.2 +++ b/plop/stuff/pack	Thu May 06 12:57:42 2021 +0000
     5.3 @@ -42,9 +42,14 @@
     5.4  	done | xargs echo -en | dd conv=notrunc bs=1 of=$2 seek=$3
     5.5  }
     5.6  
     5.7 +bits()
     5.8 +{
     5.9 +	sed "/^.define PROP_$1/"'!'"d;s|.*_$1.||" unlzma.S
    5.10 +}
    5.11 +
    5.12  compress()
    5.13  {
    5.14 -	xz -z -e --format=lzma --lzma1=mf=bt2 --stdout | dd bs=1 skip=13
    5.15 +	xz -z -e --format=raw --lzma1=mf=bt2,lc=$(bits LC),lp=$(bits LP),pb=$(bits BP),nice=84 --stdout 
    5.16  }
    5.17  
    5.18  main()
     6.1 --- a/plop/stuff/unlzma.S	Fri Apr 30 16:35:54 2021 +0000
     6.2 +++ b/plop/stuff/unlzma.S	Thu May 06 12:57:42 2021 +0000
     6.3 @@ -18,9 +18,11 @@
     6.4   * Compression with : lzma e src dst -eos -pb2 -lp0 -lc3
     6.5   */
     6.6  
     6.7 -#define PROP_PB 2
     6.8 +//#define PROP_PB 2
     6.9 +#define PROP_PB 0
    6.10  #define PROP_LP 0
    6.11 -#define PROP_LC 3
    6.12 +//#define PROP_LC 3
    6.13 +#define PROP_LC 0
    6.14  #define PROPS (PROP_LC+(PROP_LP*9)+(PROP_PB*45))
    6.15  
    6.16  // static const Byte *Buffer;