move toolchain definition to seperate file

This commit is contained in:
Rene Hopf
2017-01-05 15:08:00 +01:00
parent 20cf7f07a2
commit 45321fe590
4 changed files with 11 additions and 27 deletions

View File

@@ -152,15 +152,6 @@ LDFLAGS += -T$(LDSCRIPT)
#============================================================================
# Define programs and commands
#
TOOLCHAIN = arm-none-eabi-
CC = $(TOOLCHAIN)gcc
OBJCOPY = $(TOOLCHAIN)objcopy
OBJDUMP = $(TOOLCHAIN)objdump
SIZE = $(TOOLCHAIN)size
NM = $(TOOLCHAIN)nm
MKDIR = mkdir
POSTLD = tools/add_version_info.py # -q
# Compiler flags to generate dependency files
@@ -246,6 +237,7 @@ clean:
# Include the base rules
#
include base.mak
include toolchain.mak
# Include the dependency files
#

View File

@@ -109,15 +109,6 @@ LDFLAGS += -T$(LDSCRIPT)
#============================================================================
# Define programs and commands
#
TOOLCHAIN = arm-none-eabi-
CC = $(TOOLCHAIN)gcc
OBJCOPY = $(TOOLCHAIN)objcopy
OBJDUMP = $(TOOLCHAIN)objdump
SIZE = $(TOOLCHAIN)size
NM = $(TOOLCHAIN)nm
MKDIR = mkdir
POSTLD = tools/add_version_info.py # -q
# Compiler flags to generate dependency files
@@ -178,6 +169,7 @@ clean:
# Include the base rules
#
include base.mak
include toolchain.mak
# Include the dependency files
#

View File

@@ -109,15 +109,6 @@ LDFLAGS += -T$(LDSCRIPT)
#============================================================================
# Define programs and commands
#
TOOLCHAIN = arm-none-eabi-
CC = $(TOOLCHAIN)gcc
OBJCOPY = $(TOOLCHAIN)objcopy
OBJDUMP = $(TOOLCHAIN)objdump
SIZE = $(TOOLCHAIN)size
NM = $(TOOLCHAIN)nm
MKDIR = mkdir
POSTLD = tools/add_version_info.py # -q
# Compiler flags to generate dependency files
@@ -173,6 +164,7 @@ clean:
# Include the base rules
#
include base.mak
include toolchain.mak
# Include the dependency files
#

8
toolchain.mak Normal file
View File

@@ -0,0 +1,8 @@
# Define programs and commands for the toolchain
TOOLCHAIN = arm-none-eabi-
CC = $(TOOLCHAIN)gcc
OBJCOPY = $(TOOLCHAIN)objcopy
OBJDUMP = $(TOOLCHAIN)objdump
SIZE = $(TOOLCHAIN)size
NM = $(TOOLCHAIN)nm
MKDIR = mkdir