This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to build project outside of the SDK folder?

The way the example projects, including the app_template are structured, they will only build if inside the SDK folder.

The main problem I find is that the Board Support Package directory seems to be referenced a lot.

So my current workaround is to create a folder called projects at the same level as "examples" and retain the same structure e.g with the bsp folder and then the sub folder for ble_peripheral

But ideally I'd like to move all the source code outside the SDK folder entirely, as its not idea from a source control point of view

Also, I don't really use the BSP setup or functions on custom boards, so I'd prefer if I didnt need to have it at all, but at the moment to get the code to compile without the BSP seems to require a lot of time and effort.

Does anyone else have any good strategies to separate the project source code from the SDK?

Related