A generator of (minimal) Linux kernel configuration files.
Project description
kconfgen is a tool to manage Linux kernel configuration files.
It enables users to:
Assemble kernel configuration files from fragments;
Ensure that only minimal lists of flags are kept in version control;
Split a single kernel configuration file in fragments by topic.
Usage:
kconfgen merge
Assemble a .config file from a set of (minimal) definitions
kconfgen merge \
--kernel=/usr/src/linux-4.19.57 --arch=x86 \
defconfig.net defconfig.crypto defconfig.laptop > .config
It is also possible to generate a defconfig file, which contains only the minimal set of flags to get to the provided .config file:
kconfgen merge \
--kernel=/usr/src/linux-4.19.57 --arch=x86 \
--minimal \
defconfig.net defconfig.crypto defconfig.laptop > some_host.defconfig
kconfgen split
Split a .config file into a set of minimal definitions, based on their sections:
kconfgen split \
--kernel=/usr/src/linux-4.19.57 --arch=x86 \
--sections="net crypto fs" \
./fragments/ < ./.config
ls fragments/
defconfig.net
defconfig.crypto
defconfig.fs
defconfig
It is also possible to split by maximal section size:
kconfgen split \
--kernel=/usr/src/linux-4.19.57 --arch=x86 \
--max-symbols=20 \
./fragments/ < ./.config
ls fragments/
defconfig.net
defconfig.net_netfilter
defconfig.crypto
defconfig.drivers
defconfig
kconfgen assemble
Assemble a defconfig file for a specific profile:
kconfgen assemble \
--kernel=/usr/src/linux-4.19.57 \
--profiles=profiles.toml \
some-profile > .config
The list of profiles and the defconfig files to use for them is listed in a toml file:
[ profile.example ]
arch = x86
include = [ "shared.core", "shared.server" ]
extras = [ "defconfig.example", "defconfig.wifi_intel" ]
[ shared.core ]
files = [ "defconfig.crypto", "defconfig.fs" ]
[ shared.server ]
files = [ "defconfig.net", "defconfig.net_netfilter" ]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kconfgen-1.0.0.tar.gz
.
File metadata
- Download URL: kconfgen-1.0.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6787699d63714598281bf7fbe707ae2699f2a952e00e77e47d8d1f2282935fa0 |
|
MD5 | ae7715706a186f8226c6520531a2941c |
|
BLAKE2b-256 | 08f66dfec621855f70fd3fadafd77416f36cba8550de0766824645259e8d386c |
File details
Details for the file kconfgen-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: kconfgen-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2972509b881fbb58c6d6a88dacab652a95cd42d681da76e8a14b0ab57c01fb29 |
|
MD5 | 922610ee97ae98ef10142e77971a20be |
|
BLAKE2b-256 | 46d339df361b248d80f8831c425db4434a29bc01eff01100d6030ddd584fe3da |