platformio / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
9 stars 11 forks source link

Installing external hal via platform.py #19

Open lorforlinux opened 6 months ago

lorforlinux commented 6 months ago

Hi, I am working on adding BeagleConnect Freedom board support to platformio zephyr framework. I have a working platform repo for the board to build an example blinky program. The only remaining part that I am doing manually right now is to add ti_cc13x2x7_cc26x2x7": ["ti"], to install-deps.py & platformio-build.py as shown in the screenshot.

image

We may want to change the platform name from platform-ti_cc13x2x7_cc26x2x7 to platform-beagleconnect and I want to know if we can trigger the hal installation via platform.py or not.

BeagleConnect Freedom is already included in the main Zephyr tree and we will maintain the support. https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/beagle/beagleconnect_freedom

valeros commented 6 months ago

Hi @lorforlinux, unfortunately, you cannot trigger the HAL installation from the platform.py file.

lorforlinux commented 6 months ago

Hey @valeros, thanks for confirming that.

The current version of framework-zephyr is 2.30600.240316 (3.6.0) and on the registry page repository is set to upstream Zephyr repo. I am confused, can you please point me to the actual framework-zephyr repo because upstream zephyr doesn't include platformio scripts.

valeros commented 6 months ago

I am confused, can you please point me to the actual framework-zephyr repo because upstream zephyr doesn't include platformio scripts.

There is no such repository. The framework-zephyr package is preprocessed before publishing to the PlatformIO Registry. The final package consists of the files from the stable release of Zephyr and build scripts from this repository.

lorforlinux commented 6 months ago

@valeros Thank you for the insight, I have created a PR for platform-beagle. Can we merge and add that to PIO Zephyr package 3.4 and above? we are currently testing our platform on PIO Zephyr package version 3.4