make: move lpc2k_pgm in tools/
This commit is contained in:
parent
e2af953cc8
commit
aea9d4b0a7
@ -1,13 +1,6 @@
|
|||||||
BOARDS_COMMON_MSBA2_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
|
|
||||||
|
|
||||||
# Compile `lpc2k_pgm` when required
|
# Compile `lpc2k_pgm` when required
|
||||||
# It is still compiling in `boards` as it was the case before introducing the
|
LPC2K_PGM = $(RIOTTOOLS)/lpc2k_pgm/bin/lpc2k_pgm
|
||||||
# rule to autobuild
|
FLASHDEPS += $(LPC2K_PGM)
|
||||||
MSBA2_TOOLS = $(BOARDS_COMMON_MSBA2_DIR)/tools
|
|
||||||
LPC2K_PGM = $(MSBA2_TOOLS)/bin/lpc2k_pgm
|
|
||||||
$(LPC2K_PGM): FORCE
|
|
||||||
env -i PATH=$(PATH) $(MAKE) -C $(MSBA2_TOOLS)
|
|
||||||
FLASHDEPS += $(if $(findstring $(LPC2K_PGM),$(FLASHER)),$(LPC2K_PGM))
|
|
||||||
|
|
||||||
FLASHER ?= $(LPC2K_PGM)
|
FLASHER ?= $(LPC2K_PGM)
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
CFLAGS += -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"
|
CFLAGS = -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"
|
||||||
CC = gcc
|
CC = gcc
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
|
||||||
@ -44,3 +44,8 @@ $(RIOTTOOLS)/flatc/flatc: $(RIOTTOOLS)/flatc/Makefile
|
|||||||
@echo "[INFO] flatc binary not found - building it from source now"
|
@echo "[INFO] flatc binary not found - building it from source now"
|
||||||
$(MAKE) -C $(RIOTTOOLS)/flatc
|
$(MAKE) -C $(RIOTTOOLS)/flatc
|
||||||
@echo "[INFO] flatc binary successfully built!"
|
@echo "[INFO] flatc binary successfully built!"
|
||||||
|
|
||||||
|
$(RIOTTOOLS)/lpc2k_pgm/bin/lpc2k_pgm: $(RIOTTOOLS)/lpc2k_pgm/Makefile
|
||||||
|
@echo "[INFO] lpc2k_pgm binary not found - building it from source now"
|
||||||
|
@$(MAKE) -C $(RIOTTOOLS)/lpc2k_pgm
|
||||||
|
@echo "[INFO] lpc2k_pgm binary successfully built!"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user