mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-10-31 20:04:49 +00:00
Update Makefile
This commit is contained in:
parent
b7ae3479dc
commit
4950b4dd47
9
Makefile
9
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user