<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/examples/defconfig.py, branch v14.1.1a2</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v14.1.1a2</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v14.1.1a2'/>
<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>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>Consistently use 'kconf' instead of 'conf'</title>
<updated>2018-02-06T02:05:07Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-02-06T02:05:07Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=66058f3a3d4ac3b63861d8574be753eece44779e'/>
<id>urn:sha1:66058f3a3d4ac3b63861d8574be753eece44779e</id>
<content type='text'>
The examples had some leftovers from Kconfiglib 1.
</content>
</entry>
<entry>
<title>Consistently use 0/1/2 for tristate values</title>
<updated>2017-10-30T00:14:20Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-10-29T23:50:09Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=989e9f77cfe8caabc7ac241572e9b52682901135'/>
<id>urn:sha1:989e9f77cfe8caabc7ac241572e9b52682901135</id>
<content type='text'>
Easier to work with, allowing e.g. direct comparisons with &lt; and &gt;. Make
set_value() take 0, 1, 2 for bool and tristate symbols, and fix other
APIs to match.

Also:

  - Add introductions to various concepts in the module docstring.
    Document some more attributes. Still TODOs.

  - Rename the Config class to Kconfig.

  - Escape " and \ in the name of constant symbols when printing them.
    Also make the (un)escaping 100% consistent with how the C tools do
    it (\ before non-magic character should be unescaped too).

  - Clean up the escaping/unescaping code and provide two public
    escape()/unescape() functions.

  - Export the original MODULES-independent type in orig_type. It's
    needed for printing symbols in the reparsable __str__() Kconfig
    format with just public APIs.

  - Lots of other minor reorganizing and nits all over.
</content>
</entry>
<entry>
<title>Kconfiglib 2 backup</title>
<updated>2017-10-24T17:24:08Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-10-09T21:05:00Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=dd0e227216e247d2040cdd40bf7397702880cdc4'/>
<id>urn:sha1:dd0e227216e247d2040cdd40bf7397702880cdc4</id>
<content type='text'>
WIP
</content>
</entry>
<entry>
<title>Make all examples Python 3-friendly.</title>
<updated>2015-06-20T20:06:49Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2015-06-20T19:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=1c416093518c7c358096802e911c00d29a810b18'/>
<id>urn:sha1:1c416093518c7c358096802e911c00d29a810b18</id>
<content type='text'>
print -&gt; print().

Skip 'from __future__ import print_function' by only having a single
argument (to avoid interpretation as tuples in Python 2). Keeps the
examples simple.
</content>
</entry>
<entry>
<title>Move examples into separate directory.</title>
<updated>2012-12-06T16:01:29Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2012-12-06T16:01:09Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=c805e3143bada2df897927996ae23a469cf83eb3'/>
<id>urn:sha1:c805e3143bada2df897927996ae23a469cf83eb3</id>
<content type='text'>
</content>
</entry>
</feed>
