1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

make: move lpc2k_pgm in tools/

This commit is contained in:
Alexandre Abadie 2020-12-01 13:36:36 +01:00
parent e2af953cc8
commit aea9d4b0a7
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
40 changed files with 8 additions and 10 deletions

View File

@ -1,13 +1,6 @@
BOARDS_COMMON_MSBA2_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
# Compile `lpc2k_pgm` when required
# It is still compiling in `boards` as it was the case before introducing the
# rule to autobuild
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))
LPC2K_PGM = $(RIOTTOOLS)/lpc2k_pgm/bin/lpc2k_pgm
FLASHDEPS += $(LPC2K_PGM)
FLASHER ?= $(LPC2K_PGM)

View File

@ -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
prefix=/usr/local

View File

@ -44,3 +44,8 @@ $(RIOTTOOLS)/flatc/flatc: $(RIOTTOOLS)/flatc/Makefile
@echo "[INFO] flatc binary not found - building it from source now"
$(MAKE) -C $(RIOTTOOLS)/flatc
@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!"