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
qemu-test.img: FORCE tbxi-data tbxi-rsrc
rsync ../qemu-template.img qemu-test.img
hfs-rsrc-fork-hack qemu-test.img tbxi-rsrc
mkdir -p mountpoint
sudo mount -t hfsplus -o loop qemu-test.img mountpoint
sudo sh -c 'cat tbxi-data > "mountpoint/System Folder/Mac OS ROM"'
sudo umount mountpoint
rmdir mountpoint
qemu-test.dd: FORCE tbxi.hqx
rsync ../qemu-template.dd qemu-test.dd
HOME=$$PWD hmount qemu-test.dd
HOME=$$PWD hcopy -b tbxi.hqx 'QEMU HD:System Folder:'
rm .hcwd
qemu: qemu-test.img
qemu-system-ppc -M mac99 -m 128 -prom-env 'auto-boot?=true' -g 800x837x32 -drive format=raw,media=disk,file=qemu-test.img
qemu: qemu-test.dd
qemu-system-ppc -M mac99 -m 1024 -prom-env 'auto-boot?=true' -g 800x837x32 -drive format=raw,media=disk,file=qemu-test.dd
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:

1193
kern.asm

File diff suppressed because it is too large Load Diff