-
Notifications
You must be signed in to change notification settings - Fork 2k
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
treewide: modify Kconfig symbol prefixes #14904
treewide: modify Kconfig symbol prefixes #14904
Conversation
This changes the prefixes of the symbols generated from USEMODULE and USEPKG variables. The changes are as follow: KCONFIG_MODULE_ => KCONFIG_USEMODULE_ KCONFIG_PKG_ => KCONFIG_USEPKG_ MODULE_ => USEMODULE_ PKG_ => USEPKG_
This changes the prefix used for the symbols that reprensent modules (not the ones generated from USEMODULE). MOD_ => MODULE_
I have some comments, not strictly related to this PR but I'm wondering if there aren't some issues in master. |
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.
Thanks for the clarifications. I couldn't find any problem so far. The new names seems more consistent to me.
ACK
@cgundogan, what do you think of the new naming scheme ? |
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.
@cgundogan, what do you think of the new naming scheme ?
my honest opinion? (: ..
Nevertheless, the changes look good. There are a lot of changes here .. but since most of them come from a systematic search & replace, the margin for careless slips should be rather small.
Contribution description
It was proposed by @aabadie to modify the current prefix conventions for Kconfig symbols while we are in migration, to reduce possible ambiguities. After some discussion, the proposal is the following:
MODULE_
USEMODULE_
USEMODULE
variable. Needed only during migration.KCONFIG_MODULE_
KCONFIG_USEMODULE_
menuconfig
s to allow optional configuration of used modules. Depend onUSEMODULE_
symbols.PKG_
USEPKG_
USEPKG
variable. Needed only during migration.KCONFIG_PKG_
KCONFIG_USEPKG_
menuconfig
s to allow optional configuration of used packages. Depend onUSEPKG_
symbols.MOD_
MODULE_
PACKAGE_
Testing procedure
USEMODULE
andUSEPKG
variables should generate the same symbols which activate the visibility of configurations).CI
.Issues/PRs references
Suggested in #14626