mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-12-28 18:30:19 +00:00
Create Makefile
This commit is contained in:
parent
b6a1eb7a99
commit
a7daee38c8
20
Makefile
Normal file
20
Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
APMdisk: kernel.elf *txt
|
||||
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.bash
|
||||
sudo ./kpartx.bash
|
||||
sudo mkdir /mnt/ppc
|
||||
sudo mkdir /mnt/boot
|
||||
sudo cp *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
|
Loading…
Reference in New Issue
Block a user