forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: enforce module name uniqueness
Although CMake scripts already support duplicated module names, if two modules with the same name provide different Kconfig files, then both files will be loaded leading to potential conflicts. Modify zephyr_module.py to enforce that all modules are uniquely named so that it is possbile to override some of the built-in modules using ZEPHYR_EXTRA_MODULES variable. Signed-off-by: Damian Krolik <[email protected]>
- Loading branch information
1 parent
7f365f4
commit a505148
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,3 @@ else() | |
) | ||
|
||
endif() | ||
|
||
if(DEFINED ZEPHYR_MODULE_NAMES) | ||
list(REMOVE_DUPLICATES ZEPHYR_MODULE_NAMES) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters