mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
26 lines
731 B
Makefile
26 lines
731 B
Makefile
PKG_NAME=bootterm
|
|
PKG_URL=https://github.com/wtarreau/bootterm
|
|
PKG_VERSION=2d50ab50c3259dbc82d75775c37bbf436d06fb89
|
|
PKG_LICENSE=MIT
|
|
|
|
# manually set some RIOT env vars, so this Makefile can be called stand-alone
|
|
RIOTBASE ?= $(CURDIR)/../../..
|
|
RIOTTOOLS ?= $(CURDIR)/..
|
|
|
|
PKG_SOURCE_DIR = $(CURDIR)/bin
|
|
PKG_BUILD_OUT_OF_SOURCE = 0
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
all: $(CURDIR)/bt
|
|
|
|
$(CURDIR)/bt:
|
|
# Start bootterm build in a clean environment, so variables set by RIOT's build process
|
|
# for cross compiling a specific target platform are reset and bootterm can
|
|
# be built cleanly for the native platform.
|
|
env -i PATH="$(PATH)" TERM="$(TERM)" "$(MAKE)" -C "$(PKG_BUILD_DIR)"
|
|
mv $(PKG_BUILD_DIR)/bin/bt .
|
|
|
|
clean::
|
|
rm -f $(CURDIR)/bt
|