Commit fbdd4ee3 authored by Jamie McCrae's avatar Jamie McCrae Committed by Carles Cufi
Browse files

cmake: Add warning when using prj_<board>.conf file

Adds a warning that this method of configuration is deprecated.

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 7e77084c
Loading
Loading
Loading
Loading
+2 −0
Changes for cmake/modules/configuration_files.cmake: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -67,6 +67,8 @@ elseif(CACHED_CONF_FILE)
  set(CONF_FILE ${CACHED_CONF_FILE})
elseif(EXISTS   ${APPLICATION_CONFIG_DIR}/prj_${BOARD}.conf)
  set(CONF_FILE ${APPLICATION_CONFIG_DIR}/prj_${BOARD}.conf)
  message(WARNING "Note that `prj_<board>.conf` files are deprecated and should be "
                  "replaced with board Kconfig fragments instead.")
elseif(EXISTS   ${APPLICATION_CONFIG_DIR}/prj.conf)
  set(CONF_FILE ${APPLICATION_CONFIG_DIR}/prj.conf)
  set(CONF_FILE_INCLUDE_FRAGMENTS true)