Update Makefile

This commit is contained in:
aramya 2021-06-30 21:38:46 +01:00 committed by GitHub
parent b7ae3479dc
commit 4950b4dd47

View File

@ -10,12 +10,15 @@ APMdisk: kernel.elf bootinfo.txt kpartx.sh
sudo cp kernel.elf /mnt/boot sudo cp kernel.elf /mnt/boot
sudo umount /mnt/ sudo umount /mnt/
sudo kpartx -d APMdisk sudo kpartx -d APMdisk
bootinfo.txt: load.fs
echo "<chrp-boot><boot-script>" >> bootinfo.txt
cat load.fs >> bootinfo.txt
echo "</boot-script></chrp-boot>" >> bootinfo.txt
kernel.elf: boot.elf kernel.elf: boot.elf
$(PPC)-ld -Ttext=0x200000 boot.elf -o kernel.elf $(PPC)-ld -Ttext=0x200000 boot.elf -o kernel.elf
boot.elf: boot.elf:
$(PPC)-gcc -c boot.S -o boot.elf $(PPC)-gcc -c boot.S -o boot.elf
clear: clear:
rm APMdisk *elf rm APMdisk *elf *txt
clean: clean:
rm APMdisk *elf rm APMdisk *elf *txt