selftests/nolibc: "sysroot" target installs a local copy of the sysroot
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Jul 2022 21:44:48 +0000 (23:44 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:17:45 +0000 (05:17 -0700)
commitb25c5284db0a481a427c9838f32662587d947d27
treea67a167c13adda05c58aa7af1a5a2299b94c1bb9
parent662ea60e373be8a6b8a925b237cdb93a2af353c1
selftests/nolibc: "sysroot" target installs a local copy of the sysroot

It's not convenient to rely on a sysroot built in another directory,
especially when running cross-compilation tests, where one has to
switch back and forth between directories.

Let's make it possible to install the sysroot directly in the test
directory. It's not big and even benefits from being copied by arch
so that it's easier to switch between archs if needed. The new
"sysroot" target does this, it just calls "headers_standalone" from
nolibc to install the sysroot right here.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/Makefile