Gentoo Archives: gentoo-soc

From: "André Erdmann" <dywi@×××××××.de>
To: gentoo-soc <gentoo-soc@l.g.o>
Cc: Rafael Martins <rafaelmartins@g.o>
Subject: [gentoo-soc] kernelconfig - progress report #1
Date: Sun, 29 May 2016 19:25:17
Message-Id: CAGrucu1rFos6kEW0ySKYeV7DOkfADmNZnojh=QiR90A1yDwP7g@mail.gmail.com
1 Hi everyone,
2
3 == Brief summary of this project ==
4
5 kernelconfig is about generating kernel configuration files,
6 using various sources such as curated defconfigs, detected hardware,
7 installed packages and user input.
8
9 The project's code can be found at [0].
10
11
12 == This week's progress ==
13
14 A wrapper module for the kconfig parser from the kernel sources ("lkc").
15 The current approach uses a copy of the necessary lkc files
16 and makes various data structs available in Python code,
17 which are then converted to lkc-unaware objects.
18
19 A concrete kernel configuration is then simply
20 a (partial) mapping from symbol to value, where
21 the symbol also encodes dependencies and accepted values.
22
23 In its present state, kernelconfig is able to
24 * read kconfig files and create a symbol descriptors (name, type, deps)
25 * read .config files into a symbol descriptor X value dict
26
27
28 == Plans for the next week ==
29
30 Proceed further with the "core".
31 Missing parts are a mechanism for setting config options
32 in a safe and dependency-aware manner,
33 and writing the output .config file.
34
35 Start with the configuration language
36 via which users will set config options.
37
38
39 [0] https://github.com/dywisor/kernelconfig
40
41 Regards,
42 André E.