Commit 61abcd09 authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

fel-boot: Add Makefile recipe

parent 71295c2b
...@@ -59,6 +59,15 @@ jtag-loop.bin: jtag-loop.elf ...@@ -59,6 +59,15 @@ jtag-loop.bin: jtag-loop.elf
jtag-loop.sunxi: jtag-loop.bin jtag-loop.sunxi: jtag-loop.bin
mksunxiboot jtag-loop.bin jtag-loop.sunxi mksunxiboot jtag-loop.bin jtag-loop.sunxi
fel-boot.elf: fel-boot.c fel-boot.lds
$(CROSS_COMPILE)gcc -g -Os -fpic -fno-common -fno-builtin -ffreestanding -nostdinc -mno-thumb-interwork -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fno-toplevel-reorder fel-boot.c -nostdlib -o fel-boot.elf -T fel-boot.lds -Wl,-N
fel-boot.bin: fel-boot.elf
$(CROSS_COMPILE)objcopy -O binary fel-boot.elf fel-boot.bin
fel-boot.sunxi: fel-boot.bin
mksunxiboot fel-boot.bin fel-boot.sunxi
bootinfo: bootinfo.c bootinfo: bootinfo.c
.gitignore: Makefile .gitignore: Makefile
......
SECTIONS
{
. = 0x0030;
.text : { *(.text) }
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment