• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

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

Everything looks good. We'll let you know here if there's anything you should know about.