<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/tests/sub, branch v14.1.1a3</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v14.1.1a3</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v14.1.1a3'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2019-10-29T17:30:46Z</updated>
<entry>
<title>Add public helpers for generating "&lt;name&gt; (defined at ...)" strings</title>
<updated>2019-10-29T17:30:46Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-10-29T15:41:03Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=e1ccf19f9f5fc896dfeef15883d2cb455cbbb937'/>
<id>urn:sha1:e1ccf19f9f5fc896dfeef15883d2cb455cbbb937</id>
<content type='text'>
Have Symbol/Choice.name_and_loc return strings like

    "MY_SYM (defined at foo:1, bar:2)"
    "&lt;choice&gt; (defined at foo:4)"

I've added a function like that in at least four different scripts now,
so that's probably a sign that it's a worthwhile helper.

Clean up the tests/Klocation tests a bit while adding tests.
</content>
</entry>
<entry>
<title>Fix obscure crash with rsource and $srctree pointing to a symlink</title>
<updated>2019-06-01T04:21:54Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-01T02:15:04Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=92791a3fe15bb2d5c14039fbd531be73255f0c6d'/>
<id>urn:sha1:92791a3fe15bb2d5c14039fbd531be73255f0c6d</id>
<content type='text'>
Sourcing a file with an absolute path and using rsource in it triggered
a relpath() between the absolute path and $srctree. Since e.g.
symlink/../bar/ = bar/ is not guaranteed for symlinks, this could lead
to the rsource'd file not being found if $srctree pointed to a symlink.

Switch to a simpler, more textual method for stripping $srctree from
glob results, which should be robust against symlink shenanigans. This
also makes the code a bit easier to follow.

Discovered by Marc Herbert.

Piggyback some minor cleanup.
</content>
</entry>
<entry>
<title>Add a globbing source statement</title>
<updated>2018-03-13T04:04:44Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2018-03-13T02:24:41Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=daac69dc05217d024fbe021447629fa2b3d95b70'/>
<id>urn:sha1:daac69dc05217d024fbe021447629fa2b3d95b70</id>
<content type='text'>
'gsource' works like 'source', but takes a glob pattern and sources all
matching files. Works as a no-op if no files match, and hence doubles as
an include-if-exists function, similar to '-include' in 'make'.

Add a 'grsource' statement as well, mirroring 'rsource'.

Came up in https://github.com/ulfalizer/Kconfiglib/pull/40.
</content>
</entry>
<entry>
<title>Implement 'rsource' statement ('source' with relative path)</title>
<updated>2018-02-27T08:04:36Z</updated>
<author>
<name>Roman</name>
<email>ztcoils@gmail.com</email>
</author>
<published>2018-02-27T08:04:36Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=aea0232a56d9a9d2611b79ea9c67e0d9d49b183f'/>
<id>urn:sha1:aea0232a56d9a9d2611b79ea9c67e0d9d49b183f</id>
<content type='text'>
The 'rsource' statement works like 'source', but looks relative to the
Kconfig file that has the 'rsource' rather than relative to the base
Kconfig file. Using 'rsource' makes it possible to move subtrees with
Kconfig files around without breaking references to other Kconfig files.

So far, this is a Kconfiglib-exclusive feature.</content>
</entry>
<entry>
<title>Fix get_defconfig_filename() $srctree search order</title>
<updated>2017-09-24T09:37:42Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2017-09-24T07:49:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=799e6d4e1a4e4a4f59e58298bbb9c01d286159dc'/>
<id>urn:sha1:799e6d4e1a4e4a4f59e58298bbb9c01d286159dc</id>
<content type='text'>
Previously, $srctree/path/to/defconfig would be looked up before
/path/to/defconfig, and the code wouldn't check if /path/to/defconfig
was an absolute path ($srctree is ignored otherwise). Sloppy old
oversights. The behavior now fully matches the C implementation.

Also fix some related things:

 - An 'if m' suffices to select a defconfig. We previously required 'y'.

 - Make the code less hacky and possibly more Windows-friendly by using
   os.path.relpath() to de-absolutize paths, and stop using
   os.path.normpath() as it could change the meaning of paths that
   contain symbolic links.

 - Explain what happens if 'option defconfig_list' is set on multiple
   symbols and print a warning in that case.

 - Fix get_srctree(). It would previously return "." instead of None if
   $srctree was unset at parse time. Somehow forgot to to test this. The
   code is now much more straightforward.
</content>
</entry>
</feed>
