<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/kconfiglib.py, branch v2.4.0</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v2.4.0</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v2.4.0'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2018-01-24T04:01:20Z</updated>
<entry>
<title>Enable universal newlines mode for Python 2</title>
<updated>2018-01-24T04:01:20Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-24T03:57:00Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=b82ea0a0189c21941fc6889d63257d9c26ae02a9'/>
<id>urn:sha1:b82ea0a0189c21941fc6889d63257d9c26ae02a9</id>
<content type='text'>
Use the "U" flag to open() rather than io.open() to avoid a ~14% parsing
performance hit. See comment.
</content>
</entry>
<entry>
<title>Warn if a symbol with unsatisfied deps is selected</title>
<updated>2018-01-24T01:43:07Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-23T23:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=0087b40f6de0d3050fde131588b92e4ea175bd12'/>
<id>urn:sha1:0087b40f6de0d3050fde131588b92e4ea175bd12</id>
<content type='text'>
Mirrors a warning in the C implementation. Make it a bit more
informative and simpler to decode for people who aren't super familiar
with Kconfig.

The warning is printed when/if the symbol is evaluated, e.g. when
writing a .config or C header or accessing Symbol.str/tri_value. It is
not printed if the symbol value has already been calculated and is
cached and up-to-date, which avoids warning spam.

Example:

  config Y_SYMBOL_1
  	def_bool y

  config Y_SYMBOL_2
  	def_bool y

  config SELECTED
  	bool
  	depends on !Y_SYMBOL_1

  config SELECTING_1
  	def_bool y
  	select SELECTED

  # Skipped in warning, because n
  config SELECTING_2
  	def_bool n
  	select SELECTED

  config SELECTING_3
  	def_bool y
  	select SELECTED if Y_SYMBOL_1
  	depends on Y_SYMBOL_2

  # Defined in multiple locations
  config SELECTING_3

Generated warning:

  warning: SELECTED (defined at Kconfig:7) has unsatisfied direct dependencies (!Y_SYMBOL_1), but is currently being selected by the following symbols:
  SELECTING_3 (value: y, defined at Kconfig:20, Kconfig:26), with direct dependencies "y" (value: y) and select condition Y_SYMBOL_1 &amp;&amp; Y_SYMBOL_2 (value: y)
  SELECTING_1 (value: y, defined at Kconfig:11), with direct dependencies "y" (value: y)

Real-world example from test suite:

  warning: NOT_COHERENT_CACHE (defined at arch/powerpc/platforms/Kconfig.cputype:381) has unsatisfied direct dependencies (4xx || PPC_8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON), but is currently being selected by the following symbols:
  AMIGAONE (value: y, defined at arch/powerpc/platforms/amigaone/Kconfig:2), with direct dependencies 6xx &amp;&amp; BROKEN_ON_SMP (value: y) and select condition 6xx &amp;&amp; BROKEN_ON_SMP (value: y)
</content>
</entry>
<entry>
<title>Add some more detail to the module docstring</title>
<updated>2018-01-22T19:45:59Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-22T19:45:07Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ed32010849b38da8d09ea749b1f63dff842e9d56'/>
<id>urn:sha1:ed32010849b38da8d09ea749b1f63dff842e9d56</id>
<content type='text'>
Clarify how to fetch help texts and prompts, mention the no-prompt
warning.
</content>
</entry>
<entry>
<title>Simplify escape()</title>
<updated>2018-01-22T19:04:41Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-22T18:20:13Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=532b561288f6a9628073e68aaa51b87d9c20e838'/>
<id>urn:sha1:532b561288f6a9628073e68aaa51b87d9c20e838</id>
<content type='text'>
The fancy regex isn't really justified. Much faster with replace() too,
though this is an unlikely hotspot.

Could have used a \g&lt;0&gt; backreference to refer to the entire match
instead of using a capturing group too. Hadn't discovered that.

Add some selftests for escape() and unescape() too.
</content>
</entry>
<entry>
<title>Mention user_value in the load_config() docstring</title>
<updated>2018-01-22T17:33:06Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-22T17:33:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=e01cb49d35e5062afb7fe159c8777f74e02aeceb'/>
<id>urn:sha1:e01cb49d35e5062afb7fe159c8777f74e02aeceb</id>
<content type='text'>
Can be handy to check which symbols got set, like merge_config.py does.
</content>
</entry>
<entry>
<title>Fix outdated comments referencing user_str/tri_value</title>
<updated>2018-01-22T04:16:43Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-22T04:16:43Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=27fbded9b4b1b0e7488aeabd4d07471d7f034e0e'/>
<id>urn:sha1:27fbded9b4b1b0e7488aeabd4d07471d7f034e0e</id>
<content type='text'>
Ended up with just user_value in the end before releasing Kconfiglib 2.
</content>
</entry>
<entry>
<title>Add more detail to the write_autoconf() docstring</title>
<updated>2018-01-22T04:13:14Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-22T04:11:23Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=121d4a78475837331e74a967b72b09dd868e468d'/>
<id>urn:sha1:121d4a78475837331e74a967b72b09dd868e468d</id>
<content type='text'>
Same order as for .config files.
</content>
</entry>
<entry>
<title>Add more detail to the write_config() docstring</title>
<updated>2018-01-22T04:02:46Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-22T03:54:00Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=1c3707906b3938ea72d58fa1b0cba6305a6f8176'/>
<id>urn:sha1:1c3707906b3938ea72d58fa1b0cba6305a6f8176</id>
<content type='text'>
Can be handy to know that the order of the assignments matches the
Kconfig files.
</content>
</entry>
<entry>
<title>Micro-optimize _T_HELP parsing</title>
<updated>2018-01-20T05:22:37Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-20T05:22:37Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=f0a87cc0cdf02dbaa733352b052021a48fa42240'/>
<id>urn:sha1:f0a87cc0cdf02dbaa733352b052021a48fa42240</id>
<content type='text'>
Shaves a few % more from _parse_properties().
</content>
</entry>
<entry>
<title>Get rid of _next_help_line()</title>
<updated>2018-01-20T04:19:42Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-01-20T04:05:49Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=707204ac4a5539c9b4d4875d12fec340ba95c1a2'/>
<id>urn:sha1:707204ac4a5539c9b4d4875d12fec340ba95c1a2</id>
<content type='text'>
Speeds things up a bit further.

Rework the unget handling to save the ungotten line directly instead of
using a flag.

Add some help texts to tests/Klocation to make sure the line number is
updated properly for those.
</content>
</entry>
</feed>
