toniebox-reverse-engineering / hackiebox_cfw

Custom firmware for the Toniebox based on the CC3200
https://t.me/toniebox_reverse_engineering
79 stars 14 forks source link

Extend Energia include path #11

Open SciLor opened 3 years ago

SciLor commented 3 years ago

Currently it is impossible to extend the include path within Energia. This makes it hard to include complex libs such as libopus which don't have relative includes within their files (and this mean you would need change every include within the external lib).

See https://github.com/energia/Energia/issues/1063 and https://github.com/arduino/arduino-cli/issues/501

SciLor commented 3 years ago

Possible solutions: Set up custom buildchain( see https://github.com/toniebox-reverse-engineering/hackiebox_cfw/issues/13 ) or fix Energia itself.

vChavezB commented 2 years ago

Well, it seems that this issue will not be solved in the short term. I have developed a script that easily replaces include directives to relative ones. This should reduce the time it takes to port a 3rd party library to the Arduino ecosystem.

Links

Based on this script I easily ported the lwIP TCP/IP stack into Arduino.

SciLor commented 2 years ago

Hey @vChavezB thank you for sharing. This would be a great option. If I stick to energia.

Currently I started to replace the compiler with the one from HackieboxNG. I also managed to get the debugger running via vscode.