Skip to content
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

Support a list of search paths for Kconfig files #7

Merged
merged 1 commit into from
Feb 15, 2025
Merged

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Feb 15, 2025

Projects such as Zephyr OS have a module system, where Kconfig files can exist in multiple directories that are effectively merged together by the build system. In other words, one project directory can refer to subdir/Kconfig where subdir/ is actually in another project directory.

As an example:

   zephyr/             - main source directory
      Kconfig          - main Kconfig file

   module/ec           - module directory
      motion/          - motion subsystem
         Kconfig       - Kconfig file for motion subsystem

Wtih the above, we might have, in zephyr/Kconfig:

   source "motion/Kconfig"

and it automatically locates the file in the module/ec directory.

Add support for this, by allowing a list of search paths to be supplied to Kconfiglib.

Projects such as Zephyr OS have a module system, where Kconfig files can
exist in multiple directories that are effectively merged together by the
build system. In other words, one project directory can refer to
subdir/Kconfig where subdir/ is actually in another project directory.

As an example:

   zephyr/             - main source directory
      Kconfig          - main Kconfig file

   module/ec           - module directory
      motion/          - motion subsystem
         Kconfig       - Kconfig file for motion subsystem

Wtih the above, we might have, in zephyr/Kconfig:

   source "motion/Kconfig"

and it automatically locates the file in the module/ec directory.

Add support for this, by allowing a list of search paths to be supplied to
Kconfiglib.

Signed-off-by: Simon Glass <[email protected]>
Signed-off-by: Jim Huang <[email protected]>
@jserv jserv merged commit 42eaecf into main Feb 15, 2025
3 checks passed
@jserv jserv deleted the search-path branch February 15, 2025 15:48
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.

2 participants