Page 1 of 1

Create custom *.bin file name

Posted: Sat Nov 09, 2024 8:42 pm
by Stipa88
Hello everyone.

How to use Cmake commands (or some other way) to create your own custom named *.bin file.

I defined the variables inside CmakeList.tx:

Code: Select all

set(application_name "Device_Test")		
set(application_version "1.0")

set(MY_PROJECT_VER "${application_version}")
set(MY_PROJECT_NAME "${application_name}")
After successful compilation, I want to create a bin file, e.g. MY_PROJECT_NAME_MY_PROJECT_VER.bin

Tnx

Re: Create custom *.bin file name

Posted: Mon Nov 11, 2024 12:01 am
by username
In mine i just have say this and it creates test.bin.
project(test)

Re: Create custom *.bin file name

Posted: Sat Nov 16, 2024 5:24 pm
by ESP_adokitkat
In you project folder there is CMakeLists.txt in the root of the folder, where it says something like

Code: Select all

# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hello_world)
You have to modify the `project(...)` line to set the name - then the factory partition binary will share the same name.