Use docker for Zephyr CI

This commit is contained in:
Alex Alashkin committed 2022-05-16 15:30:25 +03:00
1 parent 25806e48dc
commit ac55c900e7
7 files changed
+24 -52

No files matched your search

+4 -3
View File
@@ -1,13 +1,14 @@
CWD = $(realpath $(CURDIR))
ZEPHYR_DIR ?= $(realpath ../../../../../../zephyrproject)
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/
cd $(ZEPHYR_DIR) && west build -b $(BOARD) -p auto $(CWD)
$(DOCKER) /bin/sh -c 'cd $(ZEPHYR_DIR) && west build -b $(BOARD) -p auto $(PROJECT_DIR)'
flash:
cd $(ZEPHYR_DIR) && west flash