do the files in the build directory go into source control?

Hello,

I used the nRF Connect plugin for VCS to create a Zephyr/BLE project. It appears this copies many files into the "build" directory which are required to compile the project. Normally things under "build, debug, release. ..." are artifacts of a build and are not put into source control.

What are the source code guidelines for a nRF Connect SDK based project?

TIA

Parents
  • Hi,

    There is no need to check in the build folder in source control. This is automatically generated when you build and can be discarded at any time. (The only thing you need to remember here, which is occasionally forgotten, is that any changes you do with menuconfig/guiconfig are done within the build folder. So to make persistent changes in the configuration you need to do these outside of the build folder, typically in prj.conf - see here).

    Einar

  • Hello,

    I followed your advice and did not include the build directory in source control. Unfortunately when you do that, it appears that you loose the board configuration? At least when I clone to a clean directory it doesn't know about the build configuration.

    What needs to be saved to preserve the board configuration?

Reply Children
Related