Hi,
I want to proclaim my firmware being a finished one, thus creating a non-debug build and even reward it with some real version number. But I got lost on my journey to do so with my trustful command line.
Can someone please enlighten me and guide me through this quest for final firmware?
Official documentation ends with “Repeat these steps until you have the final firmware that you want”, missing the important “then do this to create final build” part, which probably means you don’t expect us to ever reach this point (and rightly so, this is the first time after many years I decided to make this step forward).
My expectation is to not have DEBUG defined, FW_VERSION to contain real version instead of "vdev" and to have built firmware binary in some dedicated directory like out/1.0.0/. My naïve attempt to do so using following command did not work:
I apologise for the missing steps in the documentation.
If you are hosting your project on GitHub, you can use the GitHub CI to build the project on tag creation. It is a bit more comfortable since you just push the code, create a tag and have your build ready.
Othervise, you can follow the steps that are in the workflow.
You were on the right track. You have to create the env variables, run cmake and then run ninja.
Here is a link to one of our firmware CI file. You can go through it and try to replicate it, or if you have the GitHub repository, feel free to copy and paste it is mostly universal.
If you would have any aditional questions or problems with the build, feel free to reply and we will hopefully figure it out.
As for local build, I expect I just need to set FW_VERSION and BUILD_TYPE env variables and rerun cmake and ninja? I will try this later as I just reinstalled my PC and did not set up tower dev environment yet.