1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-24 21:15:10 +03:00

use kconfiglib to start fidning missing dependencies

We can go up one layer, now we need to figure out how to recurse
dependencies and enable them.

Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
This commit is contained in:
Casey Connolly 2025-06-14 19:23:01 +02:00
parent 3aabf53339
commit 18cf14bcca
4 changed files with 75 additions and 9 deletions

View file

@ -986,7 +986,7 @@ class Kconfig(object):
self.config_header = os.getenv("KCONFIG_CONFIG_HEADER", "")
self.header_header = os.getenv("KCONFIG_AUTOHEADER_HEADER", "")
self.syms = {}
self.syms: dict[str, Symbol] = {}
self.const_syms = {}
self.defined_syms = []
self.missing_syms = []
@ -3199,6 +3199,9 @@ class Kconfig(object):
node.visibility = self._make_and(node.visibility,
self._expect_expr_and_eol())
elif t0 is _T_MODULES:
pass
elif t0 is _T_OPTION:
if self._check_token(_T_ENV):
if not self._check_token(_T_EQUAL):
@ -4267,6 +4270,9 @@ class Symbol(object):
"weak_rev_dep",
)
# tuple with number of entries followed by each Symbol
direct_dep: list[tuple[int, ...]]
#
# Public interface
#