# HG changeset patch # User Pascal Bellard # Date 1620305862 0 # Node ID aacd5b54d01080abbbda1141ef30c9cfd104c075 # Parent a88405d94c1ef327adcf0e0bc997476018a8ce9e memtest,plop: tune lzma compression diff -r a88405d94c1e -r aacd5b54d010 memtest/receipt --- a/memtest/receipt Fri Apr 30 16:35:54 2021 +0000 +++ b/memtest/receipt Thu May 06 12:57:42 2021 +0000 @@ -16,7 +16,7 @@ # Rules to configure and make the package. compile_rules() { - ls $stuff/memtest*-$VERSION-*.patch && + ls $stuff/memtest*-$VERSION-*.patch 2> /dev/null && for i in $stuff/memtest*-$VERSION-*.patch ; do patch -p1 < $i done diff -r a88405d94c1e -r aacd5b54d010 memtest/stuff/bootloader.S --- a/memtest/stuff/bootloader.S Fri Apr 30 16:35:54 2021 +0000 +++ b/memtest/stuff/bootloader.S Thu May 06 12:57:42 2021 +0000 @@ -313,8 +313,8 @@ #else subw %ax, %bx jnc forward + //movw $0x8FFF, %ax movb $0x90, %ah - ;decw %ax forward: movw %ax, %es movw %ax, %di diff -r a88405d94c1e -r aacd5b54d010 memtest/stuff/pack --- a/memtest/stuff/pack Fri Apr 30 16:35:54 2021 +0000 +++ b/memtest/stuff/pack Thu May 06 12:57:42 2021 +0000 @@ -40,7 +40,7 @@ compress() { - xz -z -e --format=lzma --lzma1=mf=bt2 --stdout | dd bs=1 skip=13 + xz -z -e --format=raw --lzma1=mf=bt2,nice=132 --stdout } main() diff -r a88405d94c1e -r aacd5b54d010 plop/receipt --- a/plop/receipt Fri Apr 30 16:35:54 2021 +0000 +++ b/plop/receipt Thu May 06 12:57:42 2021 +0000 @@ -3,7 +3,7 @@ PACKAGE="plop" VERSION="5.0.15" CATEGORY="base-system" -SHORT_DESC="USB / IDE-CD / PCMCIA CardBus and others boot utility." +SHORT_DESC="USB / IDE-CD / PCMCIA CardBus and others boot utility (486+)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="other" WEB_SITE="https://www.plop.at/en/bootmanagers.html" diff -r a88405d94c1e -r aacd5b54d010 plop/stuff/pack --- a/plop/stuff/pack Fri Apr 30 16:35:54 2021 +0000 +++ b/plop/stuff/pack Thu May 06 12:57:42 2021 +0000 @@ -42,9 +42,14 @@ done | xargs echo -en | dd conv=notrunc bs=1 of=$2 seek=$3 } +bits() +{ + sed "/^.define PROP_$1/"'!'"d;s|.*_$1.||" unlzma.S +} + compress() { - xz -z -e --format=lzma --lzma1=mf=bt2 --stdout | dd bs=1 skip=13 + xz -z -e --format=raw --lzma1=mf=bt2,lc=$(bits LC),lp=$(bits LP),pb=$(bits BP),nice=84 --stdout } main() diff -r a88405d94c1e -r aacd5b54d010 plop/stuff/unlzma.S --- a/plop/stuff/unlzma.S Fri Apr 30 16:35:54 2021 +0000 +++ b/plop/stuff/unlzma.S Thu May 06 12:57:42 2021 +0000 @@ -18,9 +18,11 @@ * Compression with : lzma e src dst -eos -pb2 -lp0 -lc3 */ -#define PROP_PB 2 +//#define PROP_PB 2 +#define PROP_PB 0 #define PROP_LP 0 -#define PROP_LC 3 +//#define PROP_LC 3 +#define PROP_LC 0 #define PROPS (PROP_LC+(PROP_LP*9)+(PROP_PB*45)) // static const Byte *Buffer;