-
-
Notifications
You must be signed in to change notification settings - Fork 403
Build output path customization #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Although you can't set it via arduino-cli.yaml, you can accomplish this via |
Hi, @per1234 , I try the BackgroundI mount the folder Command:project_path=/root/Arduino/device
tmp_path=/root/tmp
I ran the above four commands separately. Only the fourth command achieves incremental build, which means re-compilation takes little time. Other commands' second-time compilation time consumption is as same as the first time. They didn't achieve incremental build. Why? By running the fourth command Not found: /tmp/arduino-sketch-3E00829D3080742371472E93F1888B0F/sketch/device.ino.cpp.o Any other best practice? |
@per1234 ,Hi, how can I specify the build output file
root@93b792d24baa:/workspaces/workflow# arduino-cli compile --fqbn AZ3166:stm32f4:MXCHIP_AZ3166 /workspaces/workflow/ --build-path /workspaces/workflow/.build --debug
...
Sketch uses 215372 bytes (20%) of program storage space. Maximum is 1048576 bytes.
Global variables use 43896 bytes (16%) of dynamic memory, leaving 218248 bytes for local variables. Maximum is 262144 bytes.
INFO[0002] copying sketch build output from=/workspaces/workflow/.build/workflow.ino.bin to=/workspaces/workflow/workflow.AZ3166.stm32f4.MXCHIP_AZ3166.bin
INFO[0002] copying sketch build output from=/workspaces/workflow/.build/workflow.ino.elf to=/workspaces/workflow/workflow.AZ3166.stm32f4.MXCHIP_AZ3166.elf Looking for the solution. Thanks! |
You can use
will save the output files as |
It seems like this should really be configurable via |
[SNU] Extending OTA header to incorporate magic number/version field
Correct package index schema's regex for size property
Hi everyone! I wonder if the latest IDE version is already supporting the configuration of the output path via arduino-cli.yaml. I'm using the hex files in a simulator and this would facilitate a lot. Thanks! |
Hi, I was wondering whether arduino-cli support customization of build path?
Currently I can only set
sketchbook_path
andarduino_data
througharduino-cli.yaml
file. I am using arduino-cli within docker container.In order to realize incremental build, I need to preserve intermediate files in a specific folder, so next time these files can be found by the arduino-cli comiler and thus reduce the compilation time. However, the
sketchbook_path
only store theXX.ino
,XX.elf
andXX.bin
file. Other files needed to reduce the next compilation time is stored automatically in/tmp/
directory. Is there any way that I can change the default intermediate files output path/tmp
to some customized path, like/root/Arduino/MyFirstSketch/.build
? Where should I configure this value?When I talk about intermediate files, I mean something like:
Reproduce the scenario
/root/.arduino15/arduino-cli.yaml
fileWhen I ran
arduino-cli compile --fqbn AZ3166:stm32f4:MXCHIP_AZ3166 /root/Arduino/devkit/devkit.ino --debug
command, I got:ls -al /work/devkit/
total 12 drwxr-xr-x 1 root root 4096 Apr 15 10:42 . drwxr-xr-x 1 root root 4096 Apr 15 10:42 .. -rwxrwxrwx 1 root root 129 Apr 15 04:00 devkit.ino
ls -al /root/Arduino/devkit/
total 1993 drwxrwxrwx 2 root root 0 Apr 15 10:23 . drwxrwxrwx 2 root root 0 Apr 15 10:22 .. -rwxr-xr-x 1 root root 216656 Apr 15 10:42 devkit.AZ3166.stm32f4.MXCHIP_AZ3166.bin -rwxr-xr-x 1 root root 1818900 Apr 15 10:42 devkit.AZ3166.stm32f4.MXCHIP_AZ3166.elf -rwxr-xr-x 1 root root 129 Apr 15 10:42 devkit.ino
Wait for the reply. Thanks a lot!
The text was updated successfully, but these errors were encountered: