Skip to contentSkip to conversation

About Kconfig tree

DISCUSSION P J P 2 participants 3 messages Jun 9, 2023 – Jun 12, 2023 2 messages not in the archive Kbuild

lore
Share & tools
lore

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]

P J P

author
#2 lore raw

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

#3 lore raw
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 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.

'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
author
#4 lore raw

Hello Masahiro,

Quoted 2 lines · Masahiro Yamada

'common-objs' in scripts/kconfig/Makefile is the core code. It is not written in a separate library with user APIs.

* I see, okay, will check common-objs.

Thank you.
---
  -Prasad