Page 1 of 1

Change creation path of build folder

Posted: Wed Apr 07, 2021 9:59 pm
by burger
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.

Re: Change creation path of build folder

Posted: Thu Apr 08, 2021 7:36 am
by ESP_Angus
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

Re: Change creation path of build folder

Posted: Thu Apr 08, 2021 1:35 pm
by burger
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

Re: Change creation path of build folder

Posted: Sat May 22, 2021 4:34 pm
by danielc007
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

Re: Change creation path of build folder

Posted: Mon May 24, 2021 1:49 pm
by burger
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.