Skip to content

Importable build platform #183

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

Merged
merged 9 commits into from
Jun 7, 2024
Merged

Importable build platform #183

merged 9 commits into from
Jun 7, 2024

Conversation

hathach
Copy link
Member

@hathach hathach commented Apr 26, 2024

This PR move most of global code and variable into main() function, remove ussage of global fqb/platform/platforms in other funtions. This allow build_platform.py can be immported by other python script. And can run test_examples_in_folder() without installing the core platform.

The reason is BSP_URL is using arduino-esp32 dev json --> install esp32 v3.0.0 alpha. Some libraries such as TinyUSB need to run with both v3.0.0 (dev) and v2.0.15 since espressif update libtinyusb often and can cause version mismatch.

This changes allow other lib can manually install arduino core (e.g esp v2) then execute tests as done in https://github.com/adafruit/Adafruit_TinyUSB_Arduino/pull/414/files#diff-4951824edd423ca1a60532c1baf26ddf0b20f04791e15628c1de91c0200051d3R86

also fix is_library_installed() using incorrect parameter (deps undefined)

@hathach hathach force-pushed the importable-build_platform branch from 4a43df6 to f03b9d8 Compare May 29, 2024 04:00
@hathach hathach marked this pull request as draft May 29, 2024 04:01
@hathach hathach marked this pull request as ready for review May 30, 2024 03:43
@hathach hathach merged commit 8487a30 into master Jun 7, 2024
1 check passed
@hathach hathach deleted the importable-build_platform branch June 7, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant