mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-05 18:01:21 +08:00
move toolchain definition to seperate file
This commit is contained in:
10
Makefile
10
Makefile
@@ -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
|
||||
#
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
@@ -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
8
toolchain.mak
Normal 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
|
||||
Reference in New Issue
Block a user