<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/kconfiglib.py, branch v4.0.0</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v4.0.0</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v4.0.0'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2018-03-11T06:29:19Z</updated>
<entry>
<title>Add minimal configuration file generation support</title>
<updated>2018-03-11T06:29:19Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T19:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=652f11b60f7b738440fe0e919d4de0c188e80395'/>
<id>urn:sha1:652f11b60f7b738440fe0e919d4de0c188e80395</id>
<content type='text'>
Works like 'make savedefconfig' in the C tools. Call it
write_min_config() rather than write_defconfig() to be a bit more
explicit.

Add a test similar to test_defconfig that compares Kconfiglib minimal
configuration output against the C implementation, for all defconfig
files.

Disable the tests for now. The C tools have a bug that causes an
incorrect configuration to be generated for tristate choices in some
cases. They will be re-enabled once those are fixed.
</content>
</entry>
<entry>
<title>Properly remember y user values for choice symbols</title>
<updated>2018-03-11T02:01:50Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-11T01:45:14Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0bd841def7f3911771afa2346acae4938033ace9'/>
<id>urn:sha1:0bd841def7f3911771afa2346acae4938033ace9</id>
<content type='text'>
Commit e8b4ecb ("Don't special-case user_value for choice symbols set to
y") was meant to make user_value reflect an y value assigned to a choice
symbol, but didn't get it right for load_config() with replace=True: The
user value was set at first, but was then unset again due to a misplaced
'_was_set = True' assignment.

This commit makes y choice symbol user values always be remembered. The
correctness of generated files was not affected, since the user
selection of a choice is actually remembered as Choice.user_selection.
The previous commit just turned into a no-op for load_config() with
replace=True.
</content>
</entry>
<entry>
<title>Use comments instead of docstrings for internal functions</title>
<updated>2018-03-05T22:44:48Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T21:56:53Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=b499d06a8513ba599ca72d4d7bb6ae7fb6f1a9f9'/>
<id>urn:sha1:b499d06a8513ba599ca72d4d7bb6ae7fb6f1a9f9</id>
<content type='text'>
The original idea was that it might be handy to look up docstrings for
internal functions from the Python prompt (or an IDE) while figuring out
the code.

Not sure it's that useful in practice though. Comments shorten the code
a bit, and might make it clearer at a glance that the function is
internal.
</content>
</entry>
<entry>
<title>Move 'val' initialization a bit later in tri_value()</title>
<updated>2018-03-05T19:51:27Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T19:51:27Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=80767d52e5ab3c2669b96749c49d80a34f1b2fb5'/>
<id>urn:sha1:80767d52e5ab3c2669b96749c49d80a34f1b2fb5</id>
<content type='text'>
Makes it harder to miss.
</content>
</entry>
<entry>
<title>Remove _get_* prefix from internal worker functions</title>
<updated>2018-03-05T19:44:11Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T19:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=f692b56aab1e30f05f7ebbdefb402bf2557949dd'/>
<id>urn:sha1:f692b56aab1e30f05f7ebbdefb402bf2557949dd</id>
<content type='text'>
The _get_* prefixes don't improve readability and are inconsistent: All
other getters are simply named after the thing they fetch.

Leftover from Kconfiglib 1.
</content>
</entry>
<entry>
<title>Fix defconfig_list-related comment typo</title>
<updated>2018-03-05T03:13:14Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T03:13:14Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7488e4f2d2865398e7317c67e433dfe30e976f4b'/>
<id>urn:sha1:7488e4f2d2865398e7317c67e433dfe30e976f4b</id>
<content type='text'>
s/the defconfig_list/the defconfig_list symbol/
</content>
</entry>
<entry>
<title>Do not write the defconfig_list symbol to .config</title>
<updated>2018-03-05T03:09:59Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T02:58:45Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=bbe3aee9ca336515ff6679eea44277339a9e43e4'/>
<id>urn:sha1:bbe3aee9ca336515ff6679eea44277339a9e43e4</id>
<content type='text'>
Mirrors the following change to the C tools, now in linux-next:

commit c21a6e352766005d42c1ccae32b31e0438903eb9
Author: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Date:   Sat Feb 17 03:38:32 2018 +0900

    kconfig: set SYMBOL_AUTO to the symbol marked with defconfig_list

    The 'defconfig_list' is a weird attribute.  If the '.config' is
    missing, conf_read_simple() iterates over all visible defaults,
    then it uses the first one for which fopen() succeeds.

    config DEFCONFIG_LIST
            string
            depends on !UML
            option defconfig_list
            default "/lib/modules/$UNAME_RELEASE/.config"
            default "/etc/kernel-config"
            default "/boot/config-$UNAME_RELEASE"
            default "$ARCH_DEFCONFIG"
            default "arch/$ARCH/defconfig"

    However, like other symbols, the first visible default is always
    written out to the .config file.  This might be different from what
    has been actually used.

    For example, on my machine, the third one "/boot/config-$UNAME_RELEASE"
    is opened, like follows:

      $ rm .config
      $ make oldconfig 2&gt;/dev/null
      scripts/kconfig/conf  --oldconfig Kconfig
      #
      # using defaults found in /boot/config-4.4.0-112-generic
      #
      *
      * Restart config...
      *
      *
      * IRQ subsystem
      *
      Expose irq internals in debugfs (GENERIC_IRQ_DEBUGFS) [N/y/?] (NEW)

    However, the resulted .config file contains the first one since it is
    visible:

      $ grep CONFIG_DEFCONFIG_LIST .config
      CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

    In order to stop confusing people, prevent this CONFIG option from
    being written to the .config file.

    Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>Simplify sync_deps() value tests</title>
<updated>2018-03-05T03:09:54Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-05T02:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=51194d6fd5e276e61094120033aa3e14f23cbd18'/>
<id>urn:sha1:51194d6fd5e276e61094120033aa3e14f23cbd18</id>
<content type='text'>
Use the result from the initial str_value call in more places.

Also add a comment to make it clear how _write_to_conf is calculated,
mirroring the ones in write_config() and write_autoconf().
</content>
</entry>
<entry>
<title>_write_old_vals() consistency nit</title>
<updated>2018-03-03T22:32:18Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-03T22:32:18Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=3358706024fd13676308a0059328ede32a8f0ed5'/>
<id>urn:sha1:3358706024fd13676308a0059328ede32a8f0ed5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify initial auto.conf setup</title>
<updated>2018-03-03T21:35:23Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-03T21:27:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=d8576f60af14ea39d9cc2138cbd0310b6975b055'/>
<id>urn:sha1:d8576f60af14ea39d9cc2138cbd0310b6975b055</id>
<content type='text'>
Instead of creating an empty initial auto.conf and immediately loading
it, look for a missing auto.conf in _load_old_vals() and treat that the
same as an empty auto.conf (by returning after clearing the old values).

The initial auto.conf will then be written as normal by
_write_old_vals().

Also flesh out the sync_deps() docstring a bit:

 - Make it clear that sync_deps() should be run at each build

 - Be more explicit about what it means for a symbol to have changed
   (different output in autoconf.h)
</content>
</entry>
</feed>
