Clarification Needed: Building to Generate New Parameters in PX4

In the PX4 documentation, it states:

*WARNING
*After adding a new parameter file, you should call make clean before building to generate the new parameters. Parameter files are added as part of the CMake configure step, which happens for clean builds and if a CMake file is modified.

However, when I tried creating a new parameter, I didn’t run make clean and proceeded with a full build, which worked for me.

Can someone confirm if make clean is necessary? Also, could you explain what make clean does?

The make clean command is used to remove all the files that were generated during the build process, effectively cleaning the build environment.
A “full build” refers to compiling all source files and generating the final executable or target files from scratch.
It is a good practice to run make clean before a full build to ensure that there are no remnants of previous builds that could interfere with the current compilation.

1 Like