2016-11-09 00:56:41 +00:00
|
|
|
#---------------------------
|
2017-05-12 23:29:53 +00:00
|
|
|
# User defined (in userset.mk)
|
2016-11-09 00:56:41 +00:00
|
|
|
#---------------------------
|
2017-05-12 23:29:53 +00:00
|
|
|
SDK_PATH ?= ../RTL00MP3/RTL00_SDKV35a/
|
2017-06-27 07:58:17 +00:00
|
|
|
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/6.2017-q1-update/bin/# + or set in PATH
|
2016-11-09 00:56:41 +00:00
|
|
|
#OPENOCD_PATH = d:/MCU/OpenOCD/bin/# + or set in PATH
|
2017-04-03 09:14:58 +00:00
|
|
|
FLASHER_TYPE ?= Jlink
|
2017-05-12 23:29:53 +00:00
|
|
|
FLASHER_PATH ?= $(SDK_PATH)flasher/
|
2017-04-03 09:14:58 +00:00
|
|
|
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V612i/
|
|
|
|
JLINK_GDBSRV ?= JLinkGDBServer.exe
|
2016-11-09 00:56:41 +00:00
|
|
|
#---------------------------
|
|
|
|
# Default
|
|
|
|
#---------------------------
|
2018-02-14 20:27:47 +00:00
|
|
|
# Compilation (GCC) tools
|
2016-11-09 00:56:41 +00:00
|
|
|
CROSS_COMPILE = $(GCC_PATH)arm-none-eabi-
|
|
|
|
AR = $(CROSS_COMPILE)ar
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
|
|
|
AS = $(CROSS_COMPILE)as
|
|
|
|
NM = $(CROSS_COMPILE)nm
|
|
|
|
LD = $(CROSS_COMPILE)gcc
|
|
|
|
GDB = $(CROSS_COMPILE)gdb
|
|
|
|
SIZE = $(CROSS_COMPILE)size
|
|
|
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
|
|
|
OBJDUMP = $(CROSS_COMPILE)objdump
|
|
|
|
|
2018-02-14 20:27:47 +00:00
|
|
|
# Binary tools
|
|
|
|
TOOLS_PATH ?= $(SDK_PATH)../tools/
|
|
|
|
|
|
|
|
# openocd tools
|
|
|
|
OPENOCD ?= $(OPENOCD_PATH)openocd
|
|
|
|
|
2016-11-09 00:56:41 +00:00
|
|
|
# TARGET dirs
|
|
|
|
TARGET ?= build
|
|
|
|
OBJ_DIR ?= $(TARGET)/obj
|
|
|
|
BIN_DIR ?= $(TARGET)/bin
|
|
|
|
ELFFILE ?= $(OBJ_DIR)/$(TARGET).axf
|
|
|
|
|