Change creation path of build folder

burger
Posts: 3
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: 2344
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: 3
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 9943 times

danielc007
Posts: 1
Joined: Sat May 22, 2021 4:28 pm

Re: Change creation path of build folder

Postby danielc007 » Sat May 22, 2021 4:34 pm

I found the following works for me (which is not in the order shown in documentation):

Code: Select all

idf.py -B f:\temp build

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

Re: Change creation path of build folder

Postby burger » Mon May 24, 2021 1:49 pm

danielc007 wrote:
Sat May 22, 2021 4:34 pm
I found the following works for me (which is not in the order shown in documentation):

Code: Select all

idf.py -B f:\temp build
Works!! Thank you so much.

Who is online

Users browsing this forum: No registered users and 15 guests