<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/examples, branch v10.32.1</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v10.32.1</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v10.32.1'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2018-12-08T02:28:52Z</updated>
<entry>
<title>Make {load,write}_config(filename=None) implement the standard behavior</title>
<updated>2018-12-08T02:28:52Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-12-07T23:41:01Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7b4f72fa7a19b7c38312a6f6fd553ca45f04e9a6'/>
<id>urn:sha1:7b4f72fa7a19b7c38312a6f6fd553ca45f04e9a6</id>
<content type='text'>
Make the previously obligatory 'filename' argument to load_config() and
write_config() default to None, and have that implement the behavior
you'd usually want: read/write either KCONFIG_CONFIG or ".config" if
unset, and read the 'option defconfig_list' configuration file if
KCONFIG_CONFIG/".config" doesn't exist.

For load_config(), filename=None also allows the configuration file to
be missing without raising an error. load_config() returns True if a
local configuration file was loaded, which is useful to check in the
menuconfig (if no local configuration file exists, we always want to
prompt for saving the configuration when exiting).

Also add a 'verbose' argument (default True) to load_config() and
read_config() that makes them print which files were read/written in
filename=None mode.

Also generalize olddefconfig.py and oldconfig.py to not require there to
already be a local configuration file. This was a bit silly for
olddefconfig.py in particular.

Remove the examples/defconfig.py script. It's a duplicate of
olddefconfig.py.
</content>
</entry>
<entry>
<title>Link Zephyr's kconfig.py from merge_config.py example</title>
<updated>2018-11-21T04:32:22Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-11-21T04:32:22Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=80c8324e9946a08016dfd0ea2b2bf8adfc334c9b'/>
<id>urn:sha1:80c8324e9946a08016dfd0ea2b2bf8adfc334c9b</id>
<content type='text'>
Helps to have a fancier example too.
</content>
</entry>
<entry>
<title>Add support for KCONFIG_ALLCONFIG</title>
<updated>2018-11-17T18:03:36Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-11-17T08:21:13Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=b65baa47f69ae4c3993876a7edf0da0075aa70ff'/>
<id>urn:sha1:b65baa47f69ae4c3993876a7edf0da0075aa70ff</id>
<content type='text'>
This allows some symbol values to be forced while running
all{def,no,yes,mod}config.py. See Documentation/kbuild/kconfig.txt in
the Linux kernel.

Add a helper function load_allconfig() to Kconfiglib to avoid code
duplication in the tools.

Also add functions for enabling/disabling the warning that's generated
when a symbol is assigned multiple times in a (set of) .config files and
the values differ. It should be disabled when merging the
KCONFIG_ALLCONFIG configuration file. Previously, only the warning
generated when the assigned values are identical could be disabled.

Disable all warnings related to assigning a symbol multiple times in
examples/merge_config.py as well.
</content>
</entry>
<entry>
<title>Fix comment formatting in help_grep.py</title>
<updated>2018-09-28T14:51:17Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-28T14:50:49Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=3673ffb8fbd283948821601a0d9b6ec724984474'/>
<id>urn:sha1:3673ffb8fbd283948821601a0d9b6ec724984474</id>
<content type='text'>
Consistently indent with tabs, like in the actual output.
</content>
</entry>
<entry>
<title>Use a consistent import style in the examples</title>
<updated>2018-09-27T17:54:45Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-27T17:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7bbd12d306bba4d7fd47905cf2d0b4e3f7bdabbd'/>
<id>urn:sha1:7bbd12d306bba4d7fd47905cf2d0b4e3f7bdabbd</id>
<content type='text'>
Do the PEP 8 ordering thingy with standard library imports first.
</content>
</entry>
<entry>
<title>Simplify the defconfig and eval_expr examples a bit</title>
<updated>2018-09-27T17:47:52Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-27T16:51:07Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=d0ebcc592c74995957f3b7f46408fb3a528142f4'/>
<id>urn:sha1:d0ebcc592c74995957f3b7f46408fb3a528142f4</id>
<content type='text'>
Style nits.
</content>
</entry>
<entry>
<title>Update some examples to use node_iter()</title>
<updated>2018-09-15T01:07:11Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-15T00:19:34Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=35a60b786c646c846d9bad6a5f15711acc9a62c6'/>
<id>urn:sha1:35a60b786c646c846d9bad6a5f15711acc9a62c6</id>
<content type='text'>
Simplifies the code. Should promote new APIs.

Also fix list_undefined.py for recent kernels. More environment
variables are referenced now.
</content>
</entry>
<entry>
<title>Clean up kernel Makefile patch and add new targets</title>
<updated>2018-09-08T17:33:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-09-08T15:25:51Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=374f48873424f9167f508a53a80f3ea1c2d41c46'/>
<id>urn:sha1:374f48873424f9167f508a53a80f3ea1c2d41c46</id>
<content type='text'>
Add two new targets:

 - 'make kmenuconfig' runs the menuconfig interface

 - 'make dumpvarsconfig' lists all referenced environment variables
   together with their values (assuming they used the preprocessor
   syntax)

Remove the 'kconfiglibtestconfig' target, which is no longer used.

Also clean up the target definitions. The joys of ancient code.
</content>
</entry>
<entry>
<title>Add a generic node iterator</title>
<updated>2018-08-22T21:57:17Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-08-22T20:08:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7dae98803a6fc5d08041d1387e2e0d83fc0eb0ed'/>
<id>urn:sha1:7dae98803a6fc5d08041d1387e2e0d83fc0eb0ed</id>
<content type='text'>
Suggested by Mitja Horvat (pinkfluid) in
https://github.com/ulfalizer/Kconfiglib/pull/50.

Kconfig.node_iter() iterates through all menu nodes in the menu tree in
Kconfig order. This saves scripts the trouble of implementing their own
tree walking code.

Have node_iter() take a 'unique_syms' flag that can be enabled to only
include symbols defined in multiple locations once. This is often what
you want when generating output (and is used by write_config()). Order
is still preserved.

Piggyback a fix to a syntax error test comment. Parsing has been
tightened up now.
</content>
</entry>
<entry>
<title>Introduce Kconfig.unique_defined_syms and Kconfig.unique_choices</title>
<updated>2018-08-22T18:05:11Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-08-22T00:25:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=d2c1430c91c574dc0dfd84f3652c8d9af8c77568'/>
<id>urn:sha1:d2c1430c91c574dc0dfd84f3652c8d9af8c77568</id>
<content type='text'>
These are the same as Kconfig.defined_syms and Kconfig.choices, except
duplicates are removed. Kconfig order is still preserved.

This is almost always what you want when iterating through symbols and
choices, as it potentially saves work, avoids generating duplicates when
writing output, and still preserves Kconfig order for readability.

The old attributes will be kept for backwards compatibility (maybe
there's some rare cases where they could be useful too). They're created
internally anyway.
</content>
</entry>
</feed>
