arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Global system platform.txt

Open NicoHood opened this issue 8 years ago • 5 comments

It would be nice to have a platform.txt that cannot be overwritten by the avr-core. For example I need to change compiler.path={runtime.tools.avr-gcc.path}/bin/ to compiler.path=/usr/bin/. But I also need to add some extra cpp flags that are specific for the avr-gcc 6.x.

I am still not sure whats the best way to solve this, but if we can make the distribution avr-gcc packages more accessible its simpler to package arduino for linux and also especially for archlinux never avr-gcc can already be tested for bugs.

NicoHood avatar Oct 04 '16 15:10 NicoHood

I have the same problem with you. I follow"platform.txt"file link"https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification".I tested "{runtime.ide.path}",found the Global Predefined properties not work.

onsky1982 avatar Feb 09 '17 05:02 onsky1982

Similar here. I'd like to define global hook scripts (e.g. recipe.hooks.sketch.prebuild) without interfering with updates. Maybe located in "sketchbook location\global" or something?

anno73 avatar Dec 22 '18 16:12 anno73

If I understand the request correctly, we now have this feature, but only for Arduino IDE: https://arduino.github.io/arduino-cli/latest/platform-specification/#global-platformtxt

per1234 avatar Oct 01 '20 07:10 per1234

@per1234 you beat me to the punch as usual :D

ubidefeo avatar Oct 01 '20 07:10 ubidefeo

I agree with the previous posts, I would be great to have this feature back or, at least, another system to run pre-/ post- scripts before/after a build.

Is still planned?

fabianoriccardi avatar Sep 17 '22 07:09 fabianoriccardi