Skip to content

Commit df06624

Browse files
committed
Add Makefile
Signed-off-by: Imre Deak <[email protected]>
1 parent 5a9272f commit df06624

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
SHELL:=/bin/bash # needed by bashism here and in zephyr-env.sh
2+
ZEPHYR_PROJECT_DIR:=$(HOME)/zephyrproject
3+
4+
all: build
5+
6+
define setup_zephyr_env
7+
pushd $(ZEPHYR_PROJECT_DIR)/zephyr > /dev/null; \
8+
source zephyr-env.sh; \
9+
popd > /dev/null
10+
endef
11+
12+
build:
13+
@$(call setup_zephyr_env); ninja -C ../build
14+
15+
flash:
16+
@$(call setup_zephyr_env); ninja -C ../build flash
17+
18+
menuconfig:
19+
@$(call setup_zephyr_env); ninja -C ../build menuconfig

0 commit comments

Comments
 (0)