1*4882a593SmuzhiyunUse CROSS_COMPILE as compiler name and stop using libc 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunSigned-off-by: Alexandre Belloni <abelloni@adeneo-embedded.com> 4*4882a593Smuzhiyun--- 5*4882a593Smuzhiyun makerule/lpc32xx/make.lpc32xx.gnu | 22 +++++++++++----------- 6*4882a593Smuzhiyun 1 files changed, 11 insertions(+), 11 deletions(-) 7*4882a593Smuzhiyun 8*4882a593Smuzhiyundiff --git a/makerule/lpc32xx/make.lpc32xx.gnu b/makerule/lpc32xx/make.lpc32xx.gnu 9*4882a593Smuzhiyunindex 1014c28..3277d99 100644 10*4882a593Smuzhiyun--- a/makerule/lpc32xx/make.lpc32xx.gnu 11*4882a593Smuzhiyun+++ b/makerule/lpc32xx/make.lpc32xx.gnu 12*4882a593Smuzhiyun@@ -27,19 +27,19 @@ CFLAGS += -mno-sched-prolog -fno-hosted -mno-thumb-interwork -ffunction-sectio 13*4882a593Smuzhiyun CFLAGS += -I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR) 14*4882a593Smuzhiyun AFLAGS = -mcpu=arm926ej-s 15*4882a593Smuzhiyun AFLAGS += -I$(CSP_INC_DIR) -I$(BSP_INC_DIR) -I$(GEN_INC_DIR) 16*4882a593Smuzhiyun-CC = arm-none-eabi-gcc 17*4882a593Smuzhiyun-AS = arm-none-eabi-as 18*4882a593Smuzhiyun-AR = arm-none-eabi-ar -r 19*4882a593Smuzhiyun-LD = arm-none-eabi-gcc 20*4882a593Smuzhiyun-NM = arm-none-eabi-nm 21*4882a593Smuzhiyun-OBJDUMP = arm-none-eabi-objdump 22*4882a593Smuzhiyun-OBJCOPY = arm-none-eabi-objcopy 23*4882a593Smuzhiyun-READELF = arm-none-eabi-readelf 24*4882a593Smuzhiyun+CC = $(CROSS_COMPILE)gcc 25*4882a593Smuzhiyun+AS = $(CROSS_COMPILE)as 26*4882a593Smuzhiyun+AR = $(CROSS_COMPILE)ar -r 27*4882a593Smuzhiyun+LD = $(CROSS_COMPILE)gcc 28*4882a593Smuzhiyun+NM = $(CROSS_COMPILE)nm 29*4882a593Smuzhiyun+OBJDUMP = $(CROSS_COMPILE)objdump 30*4882a593Smuzhiyun+OBJCOPY = $(CROSS_COMPILE)objcopy 31*4882a593Smuzhiyun+READELF = $(CROSS_COMPILE)readelf 32*4882a593Smuzhiyun LDFLAGS += -Wl,--gc-sections 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun LK = -static 35*4882a593Smuzhiyun LK += -Wl,--start-group $(TARGET_CSP_LIB) $(TARGET_BSP_LIB) $(TARGET_GEN_LIB) 36*4882a593Smuzhiyun-LK += -lgcc -lc -lg -lm -lstdc++ -lsupc++ 37*4882a593Smuzhiyun+LK += -nostdlib -lgcc #-lc -lg -lm -lstdc++ -lsupc++ 38*4882a593Smuzhiyun LK += -Wl,--end-group 39*4882a593Smuzhiyun MAP = -Xlinker -Map -Xlinker 40*4882a593Smuzhiyun LDESC = -Xlinker -T 41*4882a593Smuzhiyun@@ -47,6 +47,6 @@ ENTRY = -e 42*4882a593Smuzhiyun BIN = -bin 43*4882a593Smuzhiyun EXT = .elf 44*4882a593Smuzhiyun LEXT = 45*4882a593Smuzhiyun-ELFTOREC =arm-none-eabi-objcopy -O srec --strip-all --verbose 46*4882a593Smuzhiyun-ELFTOBIN =arm-none-eabi-objcopy -I elf32-littlearm -O binary --strip-all --verbose 47*4882a593Smuzhiyun+ELFTOREC = $(OBJCOPY) -O srec --strip-all --verbose 48*4882a593Smuzhiyun+ELFTOBIN = $(OBJCOPY) -I elf32-littlearm -O binary --strip-all --verbose 49*4882a593Smuzhiyun REC =.srec 50*4882a593Smuzhiyun-- 51*4882a593Smuzhiyun1.7.7.3 52*4882a593Smuzhiyun 53