About Kconfig tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Masahiro,
* I've been reading linux/scripts/kconfig sources and trying to understand how it works. I'm wondering if we can read Kconfig sources and build a tree/graph structure in memory, which can then be traversed by a user.
* Is there any code/library under scripts/kconfig/ directory which creates such tree/graph data-structure from kconfig source files? Which can be reused? OR we'll have to write such a code from scratch?
* I'd appreciate your inputs/comments to confirm the same? And any guidance if we have to write code to create such data-structure.
Thank you.
---
-Prasad
Quoted 11 lines · P J P
Hello Masahiro,
* I've been reading linux/scripts/kconfig sources and trying to understand how it works. I'm wondering if we can read
Kconfigsources and build a tree/graph structure in memory, which can then be traversed by a user.* Is there any code/library under
scripts/kconfig/directory which creates such tree/graph data-structure from kconfig source files? Which can be reused? OR we'll have to write such a code from scratch?* I'd appreciate your inputs/comments to confirm the same? And any guidance if we have to write code to create such data-structure.
'common-objs' in scripts/kconfig/Makefile is the core code.
It is not written in a separate library with user APIs.
Quoted 4 lines
Thank you.
---
-Prasad
Signature · 2 lines
Best Regards Masahiro Yamada
Hello Masahiro,
Quoted 2 lines · Masahiro Yamada
'common-objs' in
scripts/kconfig/Makefileis the core code. It is not written in a separate library with user APIs.
* I see, okay, will check common-objs.
Thank you.
---
-Prasad