Skip to content

Add Zephyr module metadata#295

Merged
JonatanAntoni merged 1 commit into
ARM-software:mainfrom
wearyzen:cmsis_6_zephyr
May 5, 2026
Merged

Add Zephyr module metadata#295
JonatanAntoni merged 1 commit into
ARM-software:mainfrom
wearyzen:cmsis_6_zephyr

Conversation

@wearyzen
Copy link
Copy Markdown
Contributor

@wearyzen wearyzen commented May 1, 2026

Add zephyr/module.yml to allow CMSIS_6 to be consumed as a Zephyr module.

This enables Zephyr to use CMSIS_6 directly from upstream without requiring downstream changes in this repository, allowing straightforward synchronization with future updates (e.g. via standard GitHub fork sync workflows).

Use external CMake and Kconfig integration so that all Zephyr-specific build logic remains in the Zephyr repository. This keeps CMSIS_6 independent of any particular build system and preserves portability for non-Zephyr users.

The change is minimal and does not affect existing CMSIS_6 users or workflows.

For more details on Zephyr modules, see:
https://docs.zephyrproject.org/latest/develop/modules.html

@jkrech jkrech requested review from JonatanAntoni and brondani May 4, 2026 05:23
JonatanAntoni
JonatanAntoni previously approved these changes May 4, 2026
brondani
brondani previously approved these changes May 4, 2026
@christophe0606
Copy link
Copy Markdown
Contributor

Wouldn't it be better if the KConfig and CMakeLists.txt were inside the zephyr folder ?

With the current zephyr folder, one can use this repo directly as a module but it would still rely on the cmake and kconfig inside Zephyr that may not be up to date with the latest version of this repository.

@wearyzen
Copy link
Copy Markdown
Contributor Author

wearyzen commented May 4, 2026

Wouldn't it be better if the KConfig and CMakeLists.txt were inside the zephyr folder ?

With the current zephyr folder, one can use this repo directly as a module but it would still rely on the cmake and kconfig inside Zephyr that may not be up to date with the latest version of this repository.

Hi @christophe0606 ,
IIUC, just adding a CMakeLists.txt under zephyr/ isn’t enough. Zephyr’s module system expects a top-level CMakeLists.txt (or equivalent module entry) to include that directory, so this change alone wouldn’t make the module self-contained. Users would still need a compatible Zephyr version anyway, so it likely doesn’t help much on its own.

Thanks.

@wearyzen wearyzen marked this pull request as draft May 4, 2026 10:52
@wearyzen wearyzen marked this pull request as ready for review May 4, 2026 10:58
@wearyzen wearyzen dismissed stale reviews from brondani and JonatanAntoni via 9322d9b May 4, 2026 15:34
@wearyzen wearyzen requested review from JonatanAntoni and brondani May 4, 2026 16:03
Add zephyr/module.yml to allow CMSIS_6 to be consumed as a
Zephyr module.

This enables Zephyr to use CMSIS_6 directly from upstream
without requiring downstream changes in this repository,
allowing straightforward synchronization with future updates
(e.g. via standard GitHub fork sync workflows).

Use external CMake and Kconfig integration so that Zephyr-specific build
logic remains in the Zephyr repository. The metadata only describes how
Zephyr should consume this repository as a module and does not affect
non-Zephyr users.

For more details on Zephyr modules, see:
https://docs.zephyrproject.org/latest/develop/modules.html

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
@JonatanAntoni JonatanAntoni merged commit b2dfbe1 into ARM-software:main May 5, 2026
1 check passed
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.

4 participants