-
Notifications
You must be signed in to change notification settings - Fork 36
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
fix: add module name #24
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While building ZMK, I ran into trouble with this module because it did not have a name, adding the name fixed the problem.
Could you elaborate on this?
When name
is not specified, the default behaviour is to use the directory name.
If the name field is not specified then the Zephyr module name will be set to the name of the module folder. As example, the Zephyr module located in /modules/bar will use bar as its module name if nothing is specified in zephyr/module.yml.
Of course: I tried packaging my ZMK config without the use of West & provided all the necessary modules (under which cmsis). A few modules acted up, and the common denominator was that they did not specify the module name. Here is an excerpt from one of the logs I saved:
If we take a look at
Like you said, it just defaulted to the directory name if |
This comment was marked as outdated.
This comment was marked as outdated.
I seem to also have hit this issue although with different symptoms, we are using zephyr purely using CMake (no west) so we are setting the
Looking at the generated Kconfig.modules it looks like this:
As can be seen the cmsis module has it's variable name double-prefixed with Adding the name just as in this patch the issue goes away and the double prefix change to a single. (I have replaced my local paths with <…>) |
@stephanosio friendly reminder that this MR is still open, feel free to lmk if there are any problems with this. |
This MR adds the module name in
zephyr/module.yml
, as is stated in the official documentation:While building ZMK, I ran into trouble with this module because it did not have a name, adding the name fixed the problem.