relentless hacking

This commit is contained in:
Elliot Nunn 2016-09-15 17:28:51 +08:00
parent 0d8b3194fa
commit 6c471e30e0
2 changed files with 637 additions and 576 deletions

View File

@ -148,23 +148,19 @@ kern.o: kern.asm
powerpc-eabi-as -many -mregnames -o kern.o kern.asm powerpc-eabi-as -many -mregnames -o kern.o kern.asm
qemu-test.img: FORCE tbxi-data tbxi-rsrc qemu-test.dd: FORCE tbxi.hqx
rsync ../qemu-template.img qemu-test.img rsync ../qemu-template.dd qemu-test.dd
hfs-rsrc-fork-hack qemu-test.img tbxi-rsrc HOME=$$PWD hmount qemu-test.dd
mkdir -p mountpoint HOME=$$PWD hcopy -b tbxi.hqx 'QEMU HD:System Folder:'
sudo mount -t hfsplus -o loop qemu-test.img mountpoint rm .hcwd
sudo sh -c 'cat tbxi-data > "mountpoint/System Folder/Mac OS ROM"'
sudo umount mountpoint
rmdir mountpoint
qemu: qemu-test.dd
qemu: qemu-test.img qemu-system-ppc -M mac99 -m 1024 -prom-env 'auto-boot?=true' -g 800x837x32 -drive format=raw,media=disk,file=qemu-test.dd
qemu-system-ppc -M mac99 -m 128 -prom-env 'auto-boot?=true' -g 800x837x32 -drive format=raw,media=disk,file=qemu-test.img
clean: clean:
rm -f boot tbxi.hqx kern kern.o prcl rom tbxi-data tbxi-rsrc qemu-test.img rm -f boot tbxi.hqx kern kern.o prcl rom tbxi-data tbxi-rsrc qemu-test.dd
FORCE: FORCE:

1193
kern.asm

File diff suppressed because it is too large Load Diff