# HG changeset patch # User Pascal Bellard # Date 1437646470 -7200 # Node ID c914a10942284b5ea29c620996de37afd39656bf # Parent 347588653a930a2baaca940394d2aa728cda561b linld: add tobzimage (again) diff -r 347588653a93 -r c914a1094228 linld/stuff/tobzimage --- a/linld/stuff/tobzimage Thu Jul 23 10:47:46 2015 +0200 +++ b/linld/stuff/tobzimage Thu Jul 23 12:14:30 2015 +0200 @@ -1,5 +1,10 @@ #!/bin/sh +if [ "$1" == "--build" ]; then #install-begin + uuencode -m - < tobzimage.bin | sed -e '/^tobzimage$/r/dev/stdin' \ + -e '/^tobzimage$/d' -e '/install-begin$/,/install-end$/d' -i $0 + exit +fi #install-end [ -s "$1" -a "$2" ] || { cat << EOT Usage: $0 zImage-to-read bzImage-to-create [version-string] @@ -63,9 +68,4 @@ ddq >> $1 } -if [ "$1" == "--build" ]; then #install-begin - uuencode -m - < tobzimage.bin | sed -e '/^tobzimage$/r/dev/stdin' \ - -e '/^tobzimage$/d' -e '/install-begin$/,/install-end$/d' -i $0 - exit -fi #install-end create_bzImage $2 "$3" < $1