8000 zephyr: Support extra make targets · pcurry/circuitpython@cbc0bf6 · GitHub
[go: up one dir, main page]

Skip to content

Commit cbc0bf6

Browse files
Daniel Thompsonpfalcon
Daniel Thompson
authored andcommitted
zephyr: Support extra make targets
The two variables, GENERIC_TARGETS and CONFIG_TARGETS come, respectively, from the the lists shown during "make help" and "make kconfig-help". Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
1 parent 2ea52cb commit cbc0bf6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zephyr/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ include ../py/mkrules.mk
5858
$(Z_DOTCONFIG):
5959
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) initconfig
6060

61-
all: $(LIBMICROPYTHON)
62-
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD)
61+
GENERIC_TARGETS = all zephyr qemu qemugdb flash debug
62+
KCONFIG_TARGETS = config nconfig menuconfig xconfig gconfig
6363

64-
qemu: all
65-
$(MAKE) -f Makefile.zephyr qemu BOARD=$(BOARD)
64+
$(GENERIC_TARGETS) $(KCONFIG_TARGETS): $(LIBMICROPYTHON)
65+
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) $@
6666

6767
Z_AUTOCONF_H = outdir/$(OUTDIR_PREFIX)/include/generated/autoconf.h
6868

0 commit comments

Comments
 (0)
0