<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/nolibc/Makefile, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2026-01-11T10:17:15Z</updated>
<entry>
<title>selftests/nolibc: also test libc-test through regular selftest framework</title>
<updated>2026-01-11T10:17:15Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-06T11:44:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6fe8360b16acbfb50c703f52568cad46759be2ed'/>
<id>urn:sha1:6fe8360b16acbfb50c703f52568cad46759be2ed</id>
<content type='text'>
Hook up libc-test to the regular selftest build to make sure
nolibc-test.c stays compatible with a normal libc.

As the pattern rule from lib.mk does not handle compiling a target from
a differently named source file, add an explicit rule definition.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-3-f82101c2c505@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: scope custom flags to the nolibc-test target</title>
<updated>2026-01-11T10:17:12Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-06T11:44:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=20c72de1f8a9e338531579bd784371aba4b7dd2c'/>
<id>urn:sha1:20c72de1f8a9e338531579bd784371aba4b7dd2c</id>
<content type='text'>
A new target for 'libc-test' is going to be added which should not be
affected by these options.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-2-f82101c2c505@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: integrate with kselftests</title>
<updated>2025-06-23T20:56:21Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-06-20T21:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb135311083100b6590a7545618cd9760d896a86'/>
<id>urn:sha1:eb135311083100b6590a7545618cd9760d896a86</id>
<content type='text'>
Hook up nolibc-test with the kselftests framework.
This enables CI systems and developers to easily execute the tests.

While nolibc-test does not emit KTAP output itself that is not a problem,
as the kselftest executor will wrap the output in KTAP.

Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250620-nolibc-selftests-v1-4-f6b2ce7c5071@weissschuh.net
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>selftests/nolibc: rename Makefile</title>
<updated>2025-06-23T20:52:02Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-06-20T21:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3adf4f90c9bda3d875ce05721ee4bb91c552faa5'/>
<id>urn:sha1:3adf4f90c9bda3d875ce05721ee4bb91c552faa5</id>
<content type='text'>
The nolibc tests are not real kselftests, they work differently and
provide a different interface. Users trying to use them like real
selftests may be confused and the tests are not executed by CI systems.

To make space for an integration with the kselftest framework, move the
custom tests out of the way.
The custom tests are still useful to keep as they provide functionality
not provided by kselftests.

Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250620-nolibc-selftests-v1-3-f6b2ce7c5071@weissschuh.net
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>selftests/nolibc: split out CFLAGS logic</title>
<updated>2025-06-23T20:51:58Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-06-20T21:39:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a09db6afe292cba6ccb0966d4266b78b1a8a8055'/>
<id>urn:sha1:a09db6afe292cba6ccb0966d4266b78b1a8a8055</id>
<content type='text'>
Some upcoming changes will reuse the CFLAGS.

Split the computation into a reusable Makefile.

Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250620-nolibc-selftests-v1-2-f6b2ce7c5071@weissschuh.net
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>selftests/nolibc: drop implicit defconfig executions</title>
<updated>2025-06-23T20:51:51Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-06-20T21:39:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54c18a8f07aa9dbb66b8b194dd38d2bc55121bfe'/>
<id>urn:sha1:54c18a8f07aa9dbb66b8b194dd38d2bc55121bfe</id>
<content type='text'>
Commit d7d271ec30dd ("selftests/nolibc: execute defconfig before other targets")
accidentally introduced implicit executions of the defconfig target.
These executions were unintentional and come from a misunderstanding of
ordering dependencies.

Drop the dependencies again.

Reported-by: Mark Brown &lt;broonie@kernel.org&gt;
Closes: https://lore.kernel.org/all/3d5128b9-b4b6-4a8e-94ce-ea5ff4ea655b@sirena.org.uk/
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250620-nolibc-selftests-v1-1-f6b2ce7c5071@weissschuh.net
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>selftests/nolibc: make stackprotector probing more robust</title>
<updated>2025-06-10T15:55:34Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-06-09T07:39:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2c765778a2ea953a448816ba7c034f02a2fd6c6'/>
<id>urn:sha1:b2c765778a2ea953a448816ba7c034f02a2fd6c6</id>
<content type='text'>
nolibc only supports symbol-based stackprotectors, based on the global
variable __stack_chk_guard. Support for this differs between
architectures and toolchains. Some use the symbol mode by default, some
require a flag to enable it and some don't support it at all.

Before the nolibc test Makefile required the availability of
"-mstack-protector-guard=global" to enable stackprotectors.
While this flag makes sure that the correct mode is available it doesn't
work where the correct mode is the only supported one and therefore the
flag is not implemented.

Switch to a more dynamic probing mechanism.
This correctly enables stack protectors for mips, loongarch and m68k.

Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250609-nolibc-stackprotector-robust-v1-1-a1cfc92a568a@weissschuh.net
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>tools/nolibc: add namespace functionality</title>
<updated>2025-05-21T13:32:12Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-04-28T12:40:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=256dc7339d466f4d928be48ced6d590a99d447cc'/>
<id>urn:sha1:256dc7339d466f4d928be48ced6d590a99d447cc</id>
<content type='text'>
This is used in various selftests and will be handy when integrating
those with nolibc.

Not all configurations support namespaces, so skip the tests where
necessary.  Also if the tests are running without privileges.
Enable the namespace configuration for those architectures where it is not
enabled by default.

Signed-off-by: Thomas Weißschuh &lt;thomas.weissschuh@linutronix.de&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250428-nolibc-misc-v2-12-3c043eeab06c@linutronix.de
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>tools/nolibc: Add m68k support</title>
<updated>2025-05-21T13:31:54Z</updated>
<author>
<name>Daniel Palmer</name>
</author>
<published>2025-04-26T22:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66a4f9bb1e895aa64f0e786f4cd9864929242e4f'/>
<id>urn:sha1:66a4f9bb1e895aa64f0e786f4cd9864929242e4f</id>
<content type='text'>
Add nolibc support for m68k. Should be helpful for nommu where
linking libc can bloat even hello world to the point where you get
an OOM just trying to load it.

Signed-off-by: Daniel Palmer &lt;daniel@thingy.jp&gt;
Link: https://lore.kernel.org/r/20250426224738.284874-1-daniel@0x0f.com
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>selftests/nolibc: always run nolibc header check</title>
<updated>2025-05-21T13:31:53Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-04-24T11:48:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=443c6467fcd65d10506b473cc6b187f95bcb2b22'/>
<id>urn:sha1:443c6467fcd65d10506b473cc6b187f95bcb2b22</id>
<content type='text'>
Prevent regressions of issues validates by the header check by always
running it together with the nolibc selftests.

Signed-off-by: Thomas Weißschuh &lt;thomas.weissschuh@linutronix.de&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://lore.kernel.org/r/20250424-nolibc-header-check-v1-3-011576b6ed6f@linutronix.de
</content>
</entry>
</feed>
