NetBoot/Makefile
Elliot Nunn 9e43fdeb94 Early attempt at streaming boot
Tends to crash when RAM AppleTalk is loaded
2020-12-01 10:31:04 +08:00

86 lines
2.1 KiB
Makefile

image: systools607.dsk.a Makefile
rm -rf /tmp/system6
mkdir /tmp/system6
DumpHFS systools607.dsk /tmp/system6
cp MacsBug\ 6.2.2/MacsBug* /tmp/system6/System\ Folder/
vasm-1/vasmm68k_mot -Fbin -pic -o /tmp/my-init init.a
rfx cp /tmp/my-init /tmp/system6/System\ Folder/INIT//INIT/16
/bin/echo -n INITelmo >/tmp/system6/System\ Folder/INIT.idump
MakeHFS /tmp/system6.dsk -i /tmp/system6 -s 4M -n SexyDisk
Mini\ vMac\ Classic.app/Co*/Ma*/* xo.rom /tmp/system6.dsk
Bootstrap.bin: Bootstrap.a
vasm-1/vasmm68k_mot -quiet -Fbin -pic -o $@ $<
BootstrapFloppy/System.rdump: Bootstrap.bin
rfx cp $< $@//boot/1
BootstrapFloppy.dsk: BootstrapFloppy/System.rdump
MakeHFS -n 'NetBoot Enabler' -i BootstrapFloppy -s 1440k -d now $@
testclient: BootstrapFloppy.dsk
Mini\ vMac\ Classic.app/Co*/Ma*/* xo.rom $<
BootWrapper.bin: BootWrapper.a
vasm-1/vasmm68k_mot -quiet -Fbin -pic -o $@ $<
payload: BootWrapper.bin
#echo ' dcb.w 10000, $$A9FF' >/tmp/xasm
#vasm-1/vasmm68k_mot -quiet -Fbin -pic -o /tmp/yasm /tmp/xasm
#cat /tmp/yasm >payload
cat BootWrapper.bin systools607.dsk >payload
python3 snefru_hash.py payload
BootServer.INIT: payload FORCE
./buildapp.bash BootServer
testserver: BootServer.INIT
rm -rf /tmp/bootserv; mkdir /tmp/bootserv
cp systools607.dsk bootserv.tmp
DumpHFS systools607.dsk /tmp/bootserv
cp MacsBug\ 6.2.2/* /tmp/bootserv/System\ Folder
cp BootServer.INIT* /tmp/bootserv/System\ Folder
MakeHFS -i /tmp/bootserv -s 10m bootserv.tmp
Mini\ vMac\ Classic.app/Co*/Ma*/* xo.rom bootserv.tmp
pyserver: payload FORCE
./NetBoot.py payload
testpicker: BootPicker.bin FORCE
cp sys701-144.img bootpick.tmp
dd if=BootPicker.bin of=bootpick.tmp bs=138 seek=1 conv=notrunc
Mini\ vMac\ Classic.app/Co*/Ma*/* xo.rom bootpick.tmp
BootPicker.bin: BootPicker.a
vasm-1/vasmm68k_mot -quiet -Fbin -pic -o $@ $<
ChainLoader.bin: ChainLoader.a BootPicker.a
vasm-1/vasmm68k_mot -quiet -Fbin -pic -o $@ $<
testchain: ChainLoader.bin FORCE
zsh -c 'trap "kill %1" SIGINT SIGTERM EXIT; ./ChainBoot.py **/*.dsk /Users/elliotnunn/Downloads/SSW-71-Universal/Hd-100.iso & make testclient'
FORCE: