Support vanilla armeb toolchain

This commit is contained in:
marcan 2009-01-07 17:56:57 +01:00
parent 9c6570abd4
commit 599839a7f9

View File

@ -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 $@"