Jeremy Cline schreef op do 10-10-2019 om 14:16 [+0000]:
There's a Python library, kconfiglib, that is a pure Python
implementation of Kconfig. The problem is Kconfig seems to just be
whatever the kernel Kconfig tool can handle so kconfiglib often breaks
because of various small differences.
I seem to remember that when I first heard of kconfiglib I thought that this
would happen. Honestly!
I got started on Python bindings using CFFI so we can just use
Kconfig
directly from Python (I guess I could also just write the C code to do
this, but ugh). Once I finish those it should be pretty simple to do all
sorts of crazy config manipulations.
If you're interested in working on the CFFI bindings I can throw what I
have up on GitHub or something, but it's very much not functional at the
moment.
Let's first see if I can get from my sort-of to something that is usable for
real work.
Paul Bolle