wok-current rev 23998
linld: add iso support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 08 21:11:45 2021 +0000 (2021-01-08) |
parents | c91b0729c39d |
children | 5c1ce90eb1d6 |
files | syslinux/receipt syslinux/stuff/iso2exe/Makefile syslinux/stuff/iso2exe/mktazboot |
line diff
1.1 --- a/syslinux/receipt Fri Jan 08 20:36:59 2021 +0000 1.2 +++ b/syslinux/receipt Fri Jan 08 21:11:45 2021 +0000 1.3 @@ -43,6 +43,7 @@ 1.4 $i > kbd/$(basename $i .map.gz) 1.5 done 1.6 cp -a $stuff/iso2exe . 1.7 + cp $LINLD/*/linld.com iso2exe 1.8 make -C iso2exe 1.9 } 1.10
2.1 --- a/syslinux/stuff/iso2exe/Makefile Fri Jan 08 20:36:59 2021 +0000 2.2 +++ b/syslinux/stuff/iso2exe/Makefile Fri Jan 08 21:11:45 2021 +0000 2.3 @@ -13,10 +13,10 @@ 2.4 objcopy -O binary meminfo.o meminfo.exe 2.5 chmod +x $@ 2.6 2.7 -iso2exe: iso2exe.sh boot.com bootiso.bin win32.exe 2.8 +iso2exe: iso2exe.sh bootiso.bin win32.exe 2.9 cp iso2exe.sh $@ 2.10 chmod +x $@ 2.11 - ./$@ --build boot.com bootiso.bin win32.exe init 2.12 + ./$@ --build bootiso.bin win32.exe init 2.13 2.14 isohybrid.res: isohybrid.rc isohybrid.ico 2.15 i586-pc-mingw32-windres $< -O coff -o $@ 2.16 @@ -35,8 +35,8 @@ 2.17 ./iso2exe.sh --exe mvcom.bin iso2exe.com iso2exe.exe > $@ 2.18 chmod +x $@ 2.19 2.20 -tazboot.exe: boot.com 2.21 - com2exe $< > $@ 2.22 +tazboot.exe: taziso.built linld.com 2.23 + ./mktazboot linld.com $@ 2.24 chmod +x $@ 2.25 2.26 win32.res: win32.rc win32.ico
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/syslinux/stuff/iso2exe/mktazboot Fri Jan 08 21:11:45 2021 +0000 3.3 @@ -0,0 +1,16 @@ 3.4 +#!/bin/sh 3.5 + 3.6 +words2bin() 3.7 +{ 3.8 + for i in $@ ; do 3.9 + printf '\\\\x%02X\\\\x%02X' $(($i&255)) $((($i>>8)&255)) 3.10 + done | xargs echo -en 3.11 +} 3.12 + 3.13 +S=$(($(stat -c %s $1)+12)) 3.14 +P=$((($S+511)/512)) 3.15 +E=$((4096-(32*$P))) 3.16 +words2bin 0x5A4D $(($S%512)) $P 0 2 $E -1 -16 \ 3.17 + -2 0 256 -16 28 0x6C53 0x5469 0x7A61 > $2 3.18 +dd if=$1 bs=1 count=$(($(stat -c %s $1)-1)) >> $2 2> /dev/null 3.19 +echo -en '@tazboot.cmd\0' >> $2