NetBoot/Makefile

80 lines
1.8 KiB
Makefile
Raw Normal View History

2020-07-04 08:51:39 +00:00
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 $@
2020-10-24 02:07:45 +00:00
testclient: BootstrapFloppy.dsk
Mini\ vMac\ Classic.app/Co*/Ma*/* xo.rom $<
2020-10-24 02:07:45 +00:00
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
2020-10-24 02:07:45 +00:00
MakeHFS -i /tmp/bootserv -s 10m bootserv.tmp
Mini\ vMac\ Classic.app/Co*/Ma*/* xo.rom bootserv.tmp
2020-10-24 02:07:45 +00:00
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 $@ $<
FORCE: