wok rev 18230
linld: add tobzimage (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 23 10:47:46 2015 +0200 (2015-07-23) |
parents | 19a9e131dc09 |
children | c914a1094228 |
files | linld/receipt linld/stuff/tobzimage |
line diff
1.1 --- a/linld/receipt Thu Jul 23 10:33:13 2015 +0200 1.2 +++ b/linld/receipt Thu Jul 23 10:47:46 2015 +0200 1.3 @@ -26,6 +26,10 @@ 1.4 !compile.bat 1.5 EOT 1.6 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" 1.7 + cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S 1.8 + objcopy -O binary tobzimage.o tobzimage.bin 1.9 + cp $stuff/tobzimage . 1.10 + ./tobzimage --build 1.11 } 1.12 1.13 # Rules to gen a SliTaz package suitable for Tazpkg. 1.14 @@ -35,5 +39,5 @@ 1.15 cp $src/LINLD$(echo $VERSION | sed 's/[^0-9]//')/LINLD.COM \ 1.16 $fs/usr/share/boot/linld.com 1.17 cp $stuff/linld.txt $fs/usr/share/boot/ 1.18 - cp $stuff/tobzimage $fs/usr/bin 1.19 + cp $src/tobzimage $fs/usr/bin 1.20 }
2.1 --- a/linld/stuff/tobzimage Thu Jul 23 10:33:13 2015 +0200 2.2 +++ b/linld/stuff/tobzimage Thu Jul 23 10:47:46 2015 +0200 2.3 @@ -48,12 +48,7 @@ 2.4 EOT 2.5 # from tobzimage.S 2.6 uudecode <<EOT | gunzip >> $1 2.7 -begin-base64 644 - 2.8 -H4sIACpPrlUCA3ut4pFSFMzAxAACAg0MDIwMQEKAARXM+cOXxZAgx76vhsnw 2.9 -P1v40qX7GZg6n+7kZMhiePRnB+PkmQGBQYELxJiA1EYOkFh36JfOZzsZGra0 2.10 -nxX97yLy30Wm4Z1A+ZvON/sYWAxP/vP92JX78fTnpYnnqzxzE9NTFQz0DBlG 2.11 -wQAAAJkasY8AAgAA 2.12 -==== 2.13 +tobzimage 2.14 EOT 2.15 if [ "$2" ]; then 2.16 s="$2" 2.17 @@ -68,4 +63,9 @@ 2.18 ddq >> $1 2.19 } 2.20 2.21 +if [ "$1" == "--build" ]; then #install-begin 2.22 + uuencode -m - < tobzimage.bin | sed -e '/^tobzimage$/r/dev/stdin' \ 2.23 + -e '/^tobzimage$/d' -e '/install-begin$/,/install-end$/d' -i $0 2.24 + exit 2.25 +fi #install-end 2.26 create_bzImage $2 "$3" < $1