lpc32xxcdl-2.11-compiler_name.patch 1.9 KB

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