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

Features #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Features #112

wants to merge 2 commits into from

Commits on Jan 14, 2022

  1. Support a list of search paths for Kconfig files

    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]>
    sjg20 committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    5b50e16 View commit details
    Browse the repository at this point in the history
  2. Add an option to allow empty macros

    When parsing Kconfig which include macros it is currently necessary to
    provide a value for all macros in advance. This may not be possible in
    some cases, e.g. when the caller is performing checks on the Kconfig
    options but is not running a full build of the project.
    
    Add an option to support this. This allows parsing of Zephyr Kconfig
    files without specifying a particular board, etc.
    
    Signed-off-by: Simon Glass <[email protected]>
    sjg20 committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    10d9d98 View commit details
    Browse the repository at this point in the history