Skip to content

Commit

Permalink
Zephyr: Actually include the userwritten prj.conf if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Jan 23, 2024
1 parent cffc187 commit 8184f08
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("# Set default configuration file. To add custom configurations,");
cMakeCode.pr("# pass -- -DOVERLAY_CONFIG=my_config.prj to either cmake or west");
cMakeCode.pr("# Include default lf conf-file.");
cMakeCode.pr("set(CONF_FILE prj_lf.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 8184f08

Please # to comment.