<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/testsuite.py, branch v9.2.0</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v9.2.0</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v9.2.0'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2018-07-20T19:15:23Z</updated>
<entry>
<title>Add KCONFIG_STRICT flag for flagging refs. to undefined syms</title>
<updated>2018-07-20T19:15:23Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-20T02:14:31Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ca89d02ca1639b72c7b74834ff432ab10df58fe9'/>
<id>urn:sha1:ca89d02ca1639b72c7b74834ff432ab10df58fe9</id>
<content type='text'>
Settings KCONFIG_STRICT to y in the environment turns on warnings for
all references to undefined symbols within Kconfig files (with the only
gotcha that hex literals must be prefixed by 0x or 0X, to make it
possible to distinguish them from undefined references).

Always flagging undefined references gets awkward, as some projects
(e.g. the Linux kernel) use multiple Kconfig trees with shared files,
leading to some safe undefined references. It's helpful for other
projects though.

Having KCONFIG_STRICT as an environment variable is handy when multiple
tools are involved.

Piggyback a small README change re. warnings. Kconfiglib now has many
more warnings than the C tools.
</content>
</entry>
<entry>
<title>Add def_int, def_hex, and def_string keywords</title>
<updated>2018-07-18T01:23:43Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-18T01:05:37Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=e08b6957ca935fc97eddd1afda933715016b9b11'/>
<id>urn:sha1:e08b6957ca935fc97eddd1afda933715016b9b11</id>
<content type='text'>
Analogous to def_bool and def_tristate, setting the type and adding a
default at the same time.

This is a Kconfiglib extension. These keywords can be useful in projects
that make use of symbols defined in multiple locations, and remove some
Kconfig inconsistency.
</content>
</entry>
<entry>
<title>Switch to more sensible globbing statements (w/ backwards compatibility)</title>
<updated>2018-07-15T14:15:43Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-15T11:16:47Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=7a428aa415606820a44291f475248b08e3952c4b'/>
<id>urn:sha1:7a428aa415606820a44291f475248b08e3952c4b</id>
<content type='text'>
Instead of having 'source' and 'gsource', have 'source' always glob, but
require the pattern to match at least one file, throwing KconfigError
otherwise.

Have separate 'osource' and 'orsource' statements (the o is for
"optional") for cases where it's okay for the pattern to not match any
files.

This is analogous to 'include' and '-include' in Make.

The biggest flaw with 'gsource' was that there was no way to do a
globbing match while requiring something to match, possibly leading to
subtle failures.

Preserve backwards compatibility by having "gsource" and "grsource" be
aliases for "osource" and "orsource", respectively.

Also include some related changes:

 - Kconfig.srctree is now set to the empty string if $srctree is unset,
   rather than to None. This gives nice behavior with os.path.join() and
   os.path.relpath(), which treat the empty string as the current
   directory (without adding './', for os.path.join()).

 - When $srctree is set, Kconfig files in the current directory will no
   longer override Kconfig files in $srctree when the relative paths
   match. This was likely a bug all along in the C tools, and probably
   only makes sense for .config files.

   I've seen it cause breakage in Zephyr.

 - Clarify the behavior of $srctree in the Kconfig.__init__() docstring.

 - Make MenuNode.filename be relative to $srctree for the Kconfig file
   passed to Kconfig.__init__(). This makes it consistent.

The major version will be bumped later due to the small Kconfig.srctree
API change.
</content>
</entry>
<entry>
<title>Fix absolute $srctree prefixes showing up on gsource'd files</title>
<updated>2018-07-13T16:22:12Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-13T16:22:12Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ac692af07a123b3d623e51df7f1e7a10b88c1ddd'/>
<id>urn:sha1:ac692af07a123b3d623e51df7f1e7a10b88c1ddd</id>
<content type='text'>
When using gsource with $srctree set to an absolute path, the $srctree
prefix would show up in MenuNode.filename, trickling its way into e.g.
generated documentation.

This was due to a broken test: os.path.isabs() was checked after joining
the pattern with $srctree, making it mistake an absolute $srctree for an
absolute path in the Kconfig file.

Fix the test.
</content>
</entry>
<entry>
<title>Warn if int/hex 'default' is outside active 'range'</title>
<updated>2018-07-10T12:19:04Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-10T12:16:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=21b5351c3721359dbd28937c95e75ba4b435f0b7'/>
<id>urn:sha1:21b5351c3721359dbd28937c95e75ba4b435f0b7</id>
<content type='text'>
Only out-of-range user values generated warnings before.

The C tools warn for neither of them.
</content>
</entry>
<entry>
<title>Add Kconfig preprocessor</title>
<updated>2018-07-10T05:56:37Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-03T16:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=2433deba7889931c4bae679f116887fe49a2ce04'/>
<id>urn:sha1:2433deba7889931c4bae679f116887fe49a2ce04</id>
<content type='text'>
Implement the Kconfig preprocessor described in
https://github.com/torvalds/linux/blob/master/Documentation/kbuild/kconfig-macro-language.txt
(which is now in linux-next and will appear in Linux 4.18).

A new Kconfig.variables property holds all the preprocessor variables so
that they can be inspected programmatically. Preprocessor variables are
represented by a new Variable class.

With the preprocessor, environment variables are referenced with $(FOO)
instead of $FOO. For backwards compatibility, $FOO is accepted as well
for now (and leaves "$FOO" as-is if FOO doesn't exist). The $FOO syntax
might be dropped at some point in the future (together with a major
version increase). It should be supported for a few months at least.

Some internals were cleaned up too, mostly related to parsing. Some
outdated documentation was fixed as well.
</content>
</entry>
<entry>
<title>Refactor tokenization a bit</title>
<updated>2018-07-02T02:36:17Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-07-02T02:23:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=86a3c2da10491f7cec96a9c2720a5cd92b8aad67'/>
<id>urn:sha1:86a3c2da10491f7cec96a9c2720a5cd92b8aad67</id>
<content type='text'>
Have _tokenize() take the string to tokenize and return a list of
tokens, and handle all the token list management outside.

Simplifies the internal logic a bit. Likely faster too.
</content>
</entry>
<entry>
<title>Turn MenuNode/Symbol/Choice.referenced() into a @property</title>
<updated>2018-06-22T04:02:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-22T03:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=eb6c21a9b33a2d6e2bed9882d4f930d0cab2f03b'/>
<id>urn:sha1:eb6c21a9b33a2d6e2bed9882d4f930d0cab2f03b</id>
<content type='text'>
Having it as a function is inconsistent, since all other read-only
fields use properties. Oversight.

Major version will be bumped to 7, though the function version wasn't in
for long.
</content>
</entry>
<entry>
<title>Add Symbol/Choice.referenced() convenience methods</title>
<updated>2018-06-22T04:02:47Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-22T03:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=f6eb4f435bc594aa58b8f8c066a9e2243c5c8330'/>
<id>urn:sha1:f6eb4f435bc594aa58b8f8c066a9e2243c5c8330</id>
<content type='text'>
Returns the union of the MenuNode.referenced() sets for all the menu
nodes of the symbol/choice.
</content>
</entry>
<entry>
<title>Rename KconfigSyntaxError to KconfigError</title>
<updated>2018-06-19T22:16:16Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-06-19T22:16:16Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=ca89ca0c0c4207590d7ac6a38383d097e4b7c23f'/>
<id>urn:sha1:ca89ca0c0c4207590d7ac6a38383d097e4b7c23f</id>
<content type='text'>
This exception is generated for semantic errors and e.g. when dependency
loops are detected as well, so the name is bad.

Keep the old name as an alias for now for backwards compatibility.
</content>
</entry>
</feed>
