Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion boards/common/msba2/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
BOARDS_COMMON_MSBA2_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))

## the cpu to build for
export CPU = lpc2387

FLASHER = lpc2k_pgm
# 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))

FLASHER ?= $(LPC2K_PGM)

# configure serial interface
PORT_LINUX ?= /dev/ttyUSB0
Expand Down