How to use make without menuconfig

Hello, normally we select our make menuconfig configuration and create a klipper.bin file with make.

I want to compile the software by giving parameters to the command line without using menuconfig. How can I do this? For example:

make --processor=“STM32F103” --bootloader=“8-kib” --communication_interface=“Serial (on USART1 PA10/PA9)”

I completely made up the parameter names, please guide me. I need this for a project.

make menuconfig is just a convenient way to generate the config file, you can use whatever method you want to create it. The easiest way to do a non-interactive build is to create the file once interactively, then copy it into future builds. If you have more complex requirements you can also generate the config programmatically, either building on top of the library used for menuconfig or writing something from scratch that generates a file in the correct format.

1 Like

There has been some work and discussion on this. Check out Experiment with automated mcu flashing - Developers - Klipper and the PR linked in it. I worked on this a little bit earlier this year and really wanted to push it forward but other priorities got in the way.