Skip to content

Commit

Permalink
Only include prj.conf when its there
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Jan 22, 2024
1 parent 24b19bf commit cdc8ffd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ CodeBuilder generateCMakeCode(
// Setup the project header for different platforms
switch (platformOptions.platform()) {
case ZEPHYR:
cMakeCode.pr("# Include default lf conf-file and user supplied conf file.");
cMakeCode.pr("# Include default lf conf-file.");
cMakeCode.pr("set(CONF_FILE prj_lf.conf)");
cMakeCode.pr("set(OVERLAY_CONFIG prj.conf)");
cMakeCode.pr("# Include user-provided conf-file, if it exists");
cMakeCode.pr("if(EXISTS prj.conf)");
cMakeCode.pr(" set(OVERLAY_CONFIG prj.conf)");
cMakeCode.pr("endif()");
if (platformOptions.board() != null) {
cMakeCode.pr("# Selecting board specified in target property");
cMakeCode.pr("set(BOARD " + platformOptions.board() + ")");
Expand Down

0 comments on commit cdc8ffd

Please # to comment.