mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
Support vanilla armeb toolchain
This commit is contained in:
parent
9c6570abd4
commit
599839a7f9
11
Makefile
11
Makefile
@ -1,10 +1,9 @@
|
|||||||
CC = arm-eabi-gcc
|
include ../toolchain.rules
|
||||||
AS = arm-eabi-as
|
|
||||||
LD = arm-eabi-gcc
|
|
||||||
OBJCOPY = arm-eabi-objcopy
|
|
||||||
CFLAGS = -mbig-endian -fomit-frame-pointer -Os -Wall -I.
|
CFLAGS = -mbig-endian -fomit-frame-pointer -Os -Wall -I.
|
||||||
ASFLAGS = -mbig-endian
|
ASFLAGS = -mbig-endian
|
||||||
LDFLAGS = -nostartfiles -mbig-endian -Wl,-T,miniios.ld,-Map,miniios.map -n
|
LDFLAGS = -nostartfiles -nodefaultlibs -mbig-endian -Wl,-T,miniios.ld,-Map,miniios.map -n
|
||||||
|
LIBS = -lgcc
|
||||||
|
|
||||||
ELFLOADER = ../elfloader/elfloader.bin
|
ELFLOADER = ../elfloader/elfloader.bin
|
||||||
MAKEBIN = python ../makebin.py
|
MAKEBIN = python ../makebin.py
|
||||||
@ -20,7 +19,7 @@ $(TARGET) : $(ELF) $(ELFLOADER)
|
|||||||
|
|
||||||
$(ELF) : miniios.ld $(OBJECTS)
|
$(ELF) : miniios.ld $(OBJECTS)
|
||||||
@echo "LD $@"
|
@echo "LD $@"
|
||||||
@$(LD) $(LDFLAGS) $(OBJECTS) -o $@
|
@$(LD) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
||||||
|
|
||||||
%.o : %.S
|
%.o : %.S
|
||||||
@echo "AS $@"
|
@echo "AS $@"
|
||||||
|
Loading…
Reference in New Issue
Block a user