Skip to content

Commit b369c1b

Browse files
committed
zephyr/Makefile: Make prj_$(BOARD).conf optional, again.
This time hopefully should work reliably, using make $(wildcard) function, which in this case either expands to existing prj_$(BOARD).conf file, or to an empty string for non-existing one.
1 parent a036554 commit b369c1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ports/zephyr/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ z_clean:
8989
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) clean
9090

9191
# This rule is for prj_$(BOARD)_merged.conf, not $(CONF_FILE), which
92-
# can be overriden
93-
prj_$(BOARD)_merged.conf: prj_base.conf prj_$(BOARD).conf
92+
# can be overriden.
93+
# prj_$(BOARD).conf is optional, that's why it's resolved with $(wildcard)
94+
# function.
95+
prj_$(BOARD)_merged.conf: prj_base.conf $(wildcard prj_$(BOARD).conf)
9496
$(PYTHON) makeprj.py prj_base.conf prj_$(BOARD).conf $@
9597

9698
test:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy