mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2025-01-01 00:29:17 +00:00
21 lines
532 B
Makefile
21 lines
532 B
Makefile
APMdisk: kernel.elf bootinfo.txt kpartx.sh
|
|
dd bs=8M count=2 if=/dev/zero of=APMdisk
|
|
parted APMdisk --script mklabel mac mkpart primary hfs+ 32.8KB 100%
|
|
sudo chmod +x kpartx.sh
|
|
sudo ./kpartx.bash
|
|
sudo mkdir /mnt/ppc
|
|
sudo mkdir /mnt/boot
|
|
sudo cp bootinfo.txt /mnt/ppc
|
|
sudo cp kernel.elf /mnt/boot
|
|
sudo umount /mnt/
|
|
sudo kpartx -d APMdisk
|
|
|
|
kernel.elf: boot.elf
|
|
powerpc-linux-gnu-ld -Ttext=0x200000 boot.elf -o kernel.elf
|
|
boot.elf:
|
|
powerpc-linux-gnu-gcc -c boot.S -o boot.elf
|
|
clear:
|
|
rm APMdisk *elf
|
|
clean:
|
|
rm APMdisk *elf
|