Change creation path of build folder

burger
Posts: 2
Joined: Wed Apr 07, 2021 9:20 pm

Change creation path of build folder

Postby burger » Wed Apr 07, 2021 9:59 pm

Hello.

When I run the command "idf.py build" in the project folder a new folder called "build" is created. I want to know if the creation path of it can be changed.

I need that when executing the command "idf.py build" the build folder is generated in a different direction than the project folder. This is possible? Thank you.

ESP_Angus
Posts: 2299
Joined: Sun May 08, 2016 4:11 am

Re: Change creation path of build folder

Postby ESP_Angus » Thu Apr 08, 2021 7:36 am

Yes, you can pass the -B <dirname> option to do this.

For more about idf.py see https://docs.espressif.com/projects/esp ... tml#idf-py

burger
Posts: 2
Joined: Wed Apr 07, 2021 9:20 pm

Re: Change creation path of build folder

Postby burger » Thu Apr 08, 2021 1:35 pm

Hello, I have previously read the documentation. But I did not find the solution. -B is not a command that detects me idf.py

C:\esp\esp-idf\examples\get-started\blink>idf.py build -B C:/build
Usage: idf.py build [OPTIONS]
Try 'idf.py build --help' for help.

Error: no such option: -B
Attachments
error.png
error.png (1.53 MiB) Viewed 69 times

Who is online

Users browsing this forum: No registered users and 4 guests