Skip to content

Conversation

awojasinski
Copy link
Contributor

@awojasinski awojasinski commented Oct 2, 2025

The script has been using the zephyr_module.parse_modules method that is returning only these west project (repositories listed in west manifest) that have module YML/YAML files. Other west project were dropped from the list wast was resulting in patches being skipped for Zephyr and west projects the don't have module file.

This patch changes the used method to the one that list all west projects that are specified in the west manifest. Variables and arguments have been changed from modules to projects to be aligned with West's difinitions.

Fixes: #96927

@awojasinski awojasinski requested review from cfriedt and pdgendt October 2, 2025 16:21
The script has been using the `zephyr_module.parse_modules` method
that is returning only these west project (repositories listed in
west manifest) that have module YML/YAML files. Other west project
were dropped from the list wast was resulting in patches being skipped
for Zephyr and west projects the don't have module file.

This patch changes the used method to the one that list all west
projects that are specified in the west manifest. Variables and
arguments have been changed from `modules` to `projects` to be aligned
with West's difinitions.

Fixes: zephyrproject-rtos#96927

Signed-off-by: Adam Wojasinski <[email protected]>
Copy link

sonarqubecloud bot commented Oct 2, 2025

@cfriedt
Copy link
Member

cfriedt commented Oct 4, 2025

@awojasinski - this is definitely more of a feature than a bugfix. I'm not against it being added. The issue that we face currently is that there really are no tests for west patch.

They could be added, but for the most part, I've had no bandwidth to do it.

Can this change be accompanied by tests? That would help us ensure we don't break other downstream users.

@awojasinski
Copy link
Contributor Author

Hi @cfriedt thanks for response, sounds like a plan! It will take me some time - I have more important stuff to do - but I agree with you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

West patch command is not patching Zephyr project
4 participants