Creating the build tree.
cmake -B build
- MDFU_MAX_COMMAND_DATA_LENGTH: Defines the maximum MDFU command data length that is supported. This must be at least the same size as the MDFU client reported size.
- MDFU_MAX_RESPONSE_DATA_LENGTH: Defines the maximumd MDFU response data length that is supported.
Creating the build tree and configuring maximum MDFU command data size.
cmake -B build -D MDFU_MAX_COMMAND_DATA_LENGTH=1024
Building by invocing native build tools through cmake
cmake --build build
or by using native tools e.g. for make project
cd build
make
cd .\build\apps\cmdfu\cmdfu
./cmdfu
The install script will put the application into the system folders which are included in the search path.
cd ./build
make install
Create a package after building as a separate step.
cd build
cpack
The source and debian package will be available in the ./build directory.
Build and packaging in one step.
cmake --build build --target package