mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Use docker for Zephyr CI
This commit is contained in:
1 parent
25806e48dc
commit
ac55c900e7
7 files changed
+24
-52
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user