wok diff linld/stuff/tobzimage @ 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 | df58e6c974a3 |
children | c914a1094228 |
line diff
1.1 --- a/linld/stuff/tobzimage Thu Jul 23 09:44:18 2015 +0200 1.2 +++ b/linld/stuff/tobzimage Thu Jul 23 10:47:46 2015 +0200 1.3 @@ -48,12 +48,7 @@ 1.4 EOT 1.5 # from tobzimage.S 1.6 uudecode <<EOT | gunzip >> $1 1.7 -begin-base64 644 - 1.8 -H4sIACpPrlUCA3ut4pFSFMzAxAACAg0MDIwMQEKAARXM+cOXxZAgx76vhsnw 1.9 -P1v40qX7GZg6n+7kZMhiePRnB+PkmQGBQYELxJiA1EYOkFh36JfOZzsZGra0 1.10 -nxX97yLy30Wm4Z1A+ZvON/sYWAxP/vP92JX78fTnpYnnqzxzE9NTFQz0DBlG 1.11 -wQAAAJkasY8AAgAA 1.12 -==== 1.13 +tobzimage 1.14 EOT 1.15 if [ "$2" ]; then 1.16 s="$2" 1.17 @@ -68,4 +63,9 @@ 1.18 ddq >> $1 1.19 } 1.20 1.21 +if [ "$1" == "--build" ]; then #install-begin 1.22 + uuencode -m - < tobzimage.bin | sed -e '/^tobzimage$/r/dev/stdin' \ 1.23 + -e '/^tobzimage$/d' -e '/install-begin$/,/install-end$/d' -i $0 1.24 + exit 1.25 +fi #install-end 1.26 create_bzImage $2 "$3" < $1