diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-30 13:20:59 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-30 16:19:59 +0000 |
commit | f72ee8e742a171db74ed32b54b85953b8dfe1d77 (patch) | |
tree | 80e015f57b8bfc3c0a0fccb6b0d4ef4d602c0a0d /docs/markdown/Keyval-module.md | |
parent | 4f8cecca9733588b083dba8488143fa1ffb0e495 (diff) | |
download | meson-f72ee8e742a171db74ed32b54b85953b8dfe1d77.zip meson-f72ee8e742a171db74ed32b54b85953b8dfe1d77.tar.gz meson-f72ee8e742a171db74ed32b54b85953b8dfe1d77.tar.bz2 |
Rewrap long text lines in docs. [skip ci]
Diffstat (limited to 'docs/markdown/Keyval-module.md')
-rw-r--r-- | docs/markdown/Keyval-module.md | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/docs/markdown/Keyval-module.md b/docs/markdown/Keyval-module.md index afc48fa..3735888 100644 --- a/docs/markdown/Keyval-module.md +++ b/docs/markdown/Keyval-module.md @@ -8,13 +8,14 @@ authors: # keyval module -This module parses files consisting of a series of `key=value` lines. One use -of this module is to load kconfig configurations in meson projects. +This module parses files consisting of a series of `key=value` lines. +One use of this module is to load kconfig configurations in meson +projects. -**Note**:Â this does not provide kconfig frontend tooling to generate a +**Note**: this does not provide kconfig frontend tooling to generate a configuration. You still need something such as kconfig frontends (see -link below) to parse your Kconfig files, and then (after you've -chosen the configuration options), output a ".config" file. +link below) to parse your Kconfig files, and then (after you've chosen +the configuration options), output a ".config" file. [kconfig-frontends]: http://ymorin.is-a-geek.org/projects/kconfig-frontends @@ -35,19 +36,21 @@ with the name `keyval`. You can, of course, replace the name This function loads a file consisting of a series of `key=value` lines and returns a dictionary object. -`keyval.load()` makes no attempt at parsing the values in the file. -In particular boolean and integer values will be represented as strings, -and strings will keep any quoting that is present in the input file. It -can be useful to create a [`configuration_data()`](#configuration_data) -object from the dictionary and use methods such as `get_unquoted()`. +`keyval.load()` makes no attempt at parsing the values in the file. In +particular boolean and integer values will be represented as strings, +and strings will keep any quoting that is present in the input file. +It can be useful to create a +[`configuration_data()`](#configuration_data) object from the +dictionary and use methods such as `get_unquoted()`. Kconfig frontends usually have ".config" as the default name for the -configuration file. However, placing the configuration file in the source -directory limits the user to one configuration per source directory. -In order to allow separate configurations for each build directory, as is -the Meson standard, `meson.build` should not hardcode ".config" as the -argument to `kconfig.load()`, and should instead make the argument to -`kconfig.load()` a [project build option](Build-options.md). +configuration file. However, placing the configuration file in the +source directory limits the user to one configuration per source +directory. In order to allow separate configurations for each build +directory, as is the Meson standard, `meson.build` should not hardcode +".config" as the argument to `kconfig.load()`, and should instead make +the argument to `kconfig.load()` a [project build +option](Build-options.md). * The first (and only) argument is the path to the configuration file to load (usually ".config"). |