Skip to content

Commit beefd46

Browse files
committed
[sam] deleting duplicate useless headers and renaming variant
1 parent a5d2349 commit beefd46

File tree

405 files changed

+16
-68390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+16
-68390
lines changed

.classpath

-10
This file was deleted.

.project

-17
This file was deleted.

.settings/org.eclipse.jdt.core.prefs

-263
This file was deleted.

.settings/org.eclipse.jdt.ui.prefs

-4
This file was deleted.

hardware/sam/cores/sam/build_gcc/arduino_sam3s_ek.mk

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ TOOLCHAIN=gcc
1111
#-------------------------------------------------------------------------------
1212

1313
# Output directories
14-
OUTPUT_BIN = ../lib
14+
#OUTPUT_BIN = ../lib
15+
OUTPUT_BIN = ..
1516

1617
# Libraries
1718
PROJECT_BASE_PATH = ..
1819
SYSTEM_PATH = ../../../system
1920
CMSIS_PATH = $(SYSTEM_PATH)/CMSIS/Include
20-
VARIANT_PATH = ../../../variants/sam3s-ek
21+
VARIANT_PATH = ../../../variants/$(VARIANT)
2122

2223
#-------------------------------------------------------------------------------
2324
# Files
@@ -57,7 +58,7 @@ OUTPUT_OBJ=release
5758
OUTPUT_LIB=$(LIBNAME)_$(TOOLCHAIN)_rel.a
5859
endif
5960

60-
OUTPUT_PATH=$(OUTPUT_OBJ)_sam3s_ek
61+
OUTPUT_PATH=$(OUTPUT_OBJ)_$(VARIANT)
6162

6263
#-------------------------------------------------------------------------------
6364
# C source files and objects
@@ -98,13 +99,13 @@ A_OBJ=$(filter-out $(A_OBJ_FILTER), $(A_OBJ_TEMP))
9899
#-------------------------------------------------------------------------------
99100
# Rules
100101
#-------------------------------------------------------------------------------
101-
all: sam3s_ek
102+
all: $(VARIANT)
102103

103-
sam3s_ek: create_output $(OUTPUT_LIB)
104+
$(VARIANT): create_output $(OUTPUT_LIB)
104105

105106
.PHONY: create_output
106107
create_output:
107-
@echo --- Preparing sam3s_ek files in $(OUTPUT_PATH) $(OUTPUT_BIN)
108+
@echo --- Preparing $(VARIANT) files in $(OUTPUT_PATH) $(OUTPUT_BIN)
108109
@echo -------------------------
109110
@echo *$(INCLUDES)
110111
@echo -------------------------
@@ -144,12 +145,11 @@ $(addprefix $(OUTPUT_PATH)/,$(A_OBJ)): $(OUTPUT_PATH)/%.o: %.s
144145

145146
$(OUTPUT_LIB): $(addprefix $(OUTPUT_PATH)/, $(C_OBJ)) $(addprefix $(OUTPUT_PATH)/, $(CPP_OBJ)) $(addprefix $(OUTPUT_PATH)/, $(A_OBJ)) $(OUTPUT_PATH)/variant.o
146147
@$(AR) -v -r "$(OUTPUT_BIN)/$@" $^
147-
@"$(AR)" -r "../$@" $^
148148
@$(NM) "$(OUTPUT_BIN)/$@" > "$(OUTPUT_BIN)/$@.txt"
149149

150150

151151
.PHONY: clean
152152
clean:
153-
@echo --- Cleaning sam3s_ek files [$(OUTPUT_PATH)$(SEP)*.o]
153+
@echo --- Cleaning $(VARIANT) files [$(OUTPUT_PATH)$(SEP)*.o]
154154
-@$(RM) $(OUTPUT_PATH) 1>NUL 2>&1
155155
-@$(RM) $(OUTPUT_BIN)/$(OUTPUT_LIB) 1>NUL 2>&1

hardware/sam/cores/sam/build_gcc/gcc.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
# Tool suffix when cross-compiling
33
#CROSS_COMPILE = ../../../../tools/CodeSourcery_arm/bin/arm-none-eabi-
4-
CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
4+
#CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
5+
CROSS_COMPILE = $(ARM_GCC_TOOLCHAIN)/arm-none-eabi-
56

67
# Compilation tools
78
AR = $(CROSS_COMPILE)ar

hardware/sam/cores/sam/validation/build_gcc/gcc.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
# Tool suffix when cross-compiling
33
#CROSS_COMPILE = ../../../../tools/CodeSourcery_arm/bin/arm-none-eabi-
4-
CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
4+
#CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
5+
CROSS_COMPILE = $(ARM_GCC_TOOLCHAIN)/arm-none-eabi-
56

67
# Compilation tools
78
AR = $(CROSS_COMPILE)ar

hardware/sam/system/libsam/build_gcc/gcc.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
# Tool suffix when cross-compiling
33
#CROSS_COMPILE = ../../CodeSourcery_arm/bin/arm-none-eabi-
4-
CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
4+
#CROSS_COMPILE = C:/CodeSourcery_2011.03-42/bin/arm-none-eabi-
5+
CROSS_COMPILE = $(ARM_GCC_TOOLCHAIN)/arm-none-eabi-
56

67
# Compilation tools
78
AR = $(CROSS_COMPILE)ar

hardware/sam/system/libsam/build_gcc/sam3.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ endif
1717
#-------------------------------------------------------------------------------
1818

1919
# Output directories
20-
OUTPUT_BIN = ../lib
20+
#OUTPUT_BIN = ../lib
21+
OUTPUT_BIN = ../../../cores/sam
2122

2223
# Libraries
2324
PROJECT_BASE_PATH = ..
@@ -142,7 +143,6 @@ $(addprefix $(OUTPUT_PATH)/,$(A_OBJ)): $(OUTPUT_PATH)/%.o: %.s
142143

143144
$(OUTPUT_LIB): $(addprefix $(OUTPUT_PATH)/, $(C_OBJ)) $(addprefix $(OUTPUT_PATH)/, $(A_OBJ))
144145
@"$(AR)" -r "$(OUTPUT_BIN)/$@" $^
145-
@"$(AR)" -r "../../../cores/sam/$@" $^
146146
@"$(NM)" "$(OUTPUT_BIN)/$@" > "$(OUTPUT_BIN)/$@.txt"
147147

148148
.PHONY: clean

0 commit comments

Comments
 (0)