mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-28 07:43:55 +01:00
defs-cpp.mk, mcu-defs.mk: Do MCU_OPENOCD_CFG_NAME definition from one place
MCU_OPENOCD_CFG_NAME was defined in cfg-cpp.mk and mcu-defs.mk. Not sure which is the best place, but have them compete is clearly the worst idea. This patch puts them into defs-cpp.mk. A future patch should place the whole bunch somewhere else, I guess. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
29b4d4f2a5
commit
c6fa2f3807
2 changed files with 7 additions and 5 deletions
|
|
@ -27,12 +27,11 @@ ifneq ($(TARGET_PRODUCT),)
|
|||
MCU_BOARD ?= $(TARGET_PRODUCT)
|
||||
MCU_BOARD_LC ?= $(TARGET_PRODUCT)
|
||||
else
|
||||
MCU_BOARD_MODEL_LC ?= $(shell echo $(MCU_BOARD_MODEL) | tr '[A-Z]' '[a-z]')
|
||||
MCU_BOARD_MODEL_LC ?= $(shell $(ECHO) $(MCU_BOARD_MODEL) | $(TR) '[A-Z]' '[a-z]')
|
||||
MCU_BOARD ?= $(MCU_BOARD_MODEL)
|
||||
MCU_BOARD_LC ?= $(shell echo $(MCU_BOARD) | tr '[A-Z]' '[a-z]')
|
||||
MCU_BOARD_LC ?= $(shell $(ECHO) $(MCU_BOARD) | $(TR) '[A-Z]' '[a-z]')
|
||||
endif
|
||||
|
||||
MCU_OPENOCD_CFG_NAME ?= openocd-$(MCU_BOARD_LC).cfg
|
||||
MCU_OPENOCD_CFG_DEFAULT_SEARCH_PATH ?= $(TOPDIR)/make
|
||||
MCU_OPENOCD_CFG_SEARCH_PATH ?= $(MCU_OPENOCD_CFG_DEFAULT_SEARCH_PATH)
|
||||
MCU_OPENOCD_CFG_FILE ?= $(info looking for $(MCU_OPENOCD_CFG_NAME) in $(MCU_OPENOCD_CFG_SEARCH_PATH)) $(call find_file,$(MCU_OPENOCD_CFG_NAME),$(MCU_OPENOCD_CFG_SEARCH_PATH))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue