mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-28 06:04:19 +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
|
||||
AS = arm-eabi-as
|
||||
LD = arm-eabi-gcc
|
||||
OBJCOPY = arm-eabi-objcopy
|
||||
include ../toolchain.rules
|
||||
|
||||
CFLAGS = -mbig-endian -fomit-frame-pointer -Os -Wall -I.
|
||||
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
|
||||
MAKEBIN = python ../makebin.py
|
||||
@ -20,7 +19,7 @@ $(TARGET) : $(ELF) $(ELFLOADER)
|
||||
|
||||
$(ELF) : miniios.ld $(OBJECTS)
|
||||
@echo "LD $@"
|
||||
@$(LD) $(LDFLAGS) $(OBJECTS) -o $@
|
||||
@$(LD) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
||||
|
||||
%.o : %.S
|
||||
@echo "AS $@"
|
||||
|
Loading…
Reference in New Issue
Block a user