RTL00_WEB/USDK/paths.mk

47 lines
1.2 KiB
Makefile
Raw Normal View History

2017-06-21 00:00:20 +00:00
#---------------------------
# User defined (in userset.mk)
#---------------------------
SDK_PATH ?= ../SDKRTLA/USDK/
2017-06-28 04:09:45 +00:00
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/6.2017-q1-update/bin/# + or set in PATH
2017-07-29 19:11:18 +00:00
OPENOCD_PATH = d:/MCU/OpenOCD/bin/
2017-06-21 00:00:20 +00:00
TOOLS_PATH ?= $(SDK_PATH)component/soc/realtek/8195a/misc/iar_utility/common/tools/
FLASHER_TYPE ?= Jlink
2017-12-12 20:34:32 +00:00
PYTHON27_PATH ?= c:/Python27/
2017-06-21 00:00:20 +00:00
#FLASHER_TYPE ?= OCD
FLASHER_PATH ?= $(SDK_PATH)flasher/
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V612i/
JLINK_GDBSRV ?= JLinkGDBServer.exe
#---------------------------
# Default
#---------------------------
# Compilation tools
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
# TARGET dirs
TARGET ?= build
OBJ_DIR ?= $(TARGET)/obj
BIN_DIR ?= $(TARGET)/bin
ELFFILE ?= $(OBJ_DIR)/$(TARGET).axf
# Make bunary tools
ifneq ($(shell uname), Linux)
EXE = .exe
endif
PICK = $(TOOLS_PATH)pick$(EXE)
PADDING = $(TOOLS_PATH)padding$(EXE)
CHCKSUM = $(TOOLS_PATH)checksum$(EXE)
2017-12-12 20:34:32 +00:00
PYTHON = $(PYTHON27)python$(EXE)
2017-06-21 00:00:20 +00:00
# openocd tools
OPENOCD = $(OPENOCD_PATH)openocd