zephyrproject-rtos / 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
10.99k stars 6.69k forks source link

Enable freestanding shield configs #81998

Open TkinterinShanghai opened 6 days ago

TkinterinShanghai commented 6 days ago

Is your feature request related to a problem? Please describe. I want to have my code in one place, including custom shield configurations

Describe the solution you'd like I want the boards/shields to be placed in my freestanding application folder, not the zephyrproject directory

Describe alternatives you've considered Right now the code is inside the zephyrproject folder, where west can find it.

Additional context This is my file tree:

📦code ┣ 📂boards ┃ ┣ 📂shields ┃ ┃ ┣ 📂xiao_hat ┃ ┃ ┃ ┣ 📜Kconfig.defconfig ┃ ┃ ┃ ┣ 📜Kconfig.shield ┃ ┃ ┃ ┗ 📜xiao_hat.overlay ┣ 📂src ┃ ┗ 📜main.c ┣ 📜CMakeLists.txt ┣ 📜prj.conf

I want to be able to run west build -b xiao_esp32c3 -- -DSHIELD=xiao_hat

github-actions[bot] commented 6 days ago

Hi @TkinterinShanghai! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙