mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-05-28 22:41:33 +00:00
folders
This commit is contained in:
parent
3b5ee606fe
commit
845745a64a
12
Makefile
12
Makefile
|
@ -10,16 +10,16 @@ DISK.APM: 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 DISK.APM
|
sudo kpartx -d DISK.APM
|
||||||
bootinfo.txt: load.fth
|
bootinfo.txt: loader/load.fth
|
||||||
echo "<chrp-boot><boot-script>" >> bootinfo.txt
|
echo "<chrp-boot><boot-script>" >> bootinfo.txt
|
||||||
cat load.fth >> bootinfo.txt
|
cat loader/load.fth >> bootinfo.txt
|
||||||
echo "</boot-script></chrp-boot>" >> bootinfo.txt
|
echo "</boot-script></chrp-boot>" >> bootinfo.txt
|
||||||
kernel.elf: start.elf boot.elf
|
kernel.elf: start.elf boot.elf
|
||||||
$(PPC)-ld -Ttext=0x200000 start.elf boot.elf -o kernel.elf
|
$(PPC)-ld -Ttext=0x200000 start.elf boot.elf -o kernel.elf
|
||||||
boot.elf: boot.c
|
boot.elf: entry/boot.c
|
||||||
$(PPC)-gcc -c boot.c -o boot.elf
|
$(PPC)-gcc -c entry/boot.c -o boot.elf
|
||||||
start.elf: start.s
|
start.elf: entry/start.s
|
||||||
$(PPC)-as -c start.s -o start.elf
|
$(PPC)-as -c entry/start.s -o start.elf
|
||||||
clean:
|
clean:
|
||||||
rm DISK.APM *elf *txt
|
rm DISK.APM *elf *txt
|
||||||
run:
|
run:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user