diff options
author | Mark Brown <broonie@kernel.org> | 2023-04-06 17:19:11 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-04-11 14:10:47 -0600 |
commit | 9e38be732da8fe3c970c2c9f6169d5aa38bf0d72 (patch) | |
tree | 1136070c6bca0391a538e42812716cb3fbef67a6 /tools/testing/selftests/arm64 | |
parent | 322759f98336b2c12113c3052289c5d83ff9b572 (diff) | |
download | linux-stable-9e38be732da8fe3c970c2c9f6169d5aa38bf0d72.tar.gz linux-stable-9e38be732da8fe3c970c2c9f6169d5aa38bf0d72.tar.bz2 linux-stable-9e38be732da8fe3c970c2c9f6169d5aa38bf0d72.zip |
kselftest: Support nolibc
Rather than providing headers for inclusion which replace any offered by
the system nolibc is provided in the form of a header which should be added
to the build via the compiler command line. In order to build with nolibc
we need to not include the standard C headers, especially not stdio.h where
the definitions of stdout, stdin and stderr will actively conflict with
nolibc.
Add an include guard which suppresses the inclusion of the standard headers
when building with nolibc, allowing us to build tests using the nolibc
headers. This allows us to avoid open coding of KTAP output for
selftests that need to use nolibc in order to test interfaces that are
controlled by libc.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/arm64')
0 files changed, 0 insertions, 0 deletions