2022-05-16 15:30:25 +03:00

18 lines
373 B
Makefile

PROJECT_DIR ?= /mnt
ZEPHYR_DIR ?= /zephyrproject
BOARD ?= nucleo_f746zg
DOCKER ?= docker run -v $(realpath $(CURDIR)):/mnt mdashnet/zephyr
example:
true
build:
cp ../../../mongoose.c ../../../mongoose.h src/
$(DOCKER) /bin/sh -c 'cd $(ZEPHYR_DIR) && west build -b $(BOARD) -p auto $(PROJECT_DIR)'
flash:
cd $(ZEPHYR_DIR) && west flash
clean:
rm -rf */*/mongoose.*