aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/include/nolibc
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-04-16 14:06:16 +0200
committerThomas Weißschuh <linux@weissschuh.net>2025-04-19 14:22:19 +0200
commit060525302ba9ee56dfbcb4149395a1e510a4ced9 (patch)
tree285a847253a8a4d16bba9803c66c9687c131621f /tools/include/nolibc
parentselftests/nolibc: enable UBSAN if available (diff)
downloadwireguard-linux-060525302ba9ee56dfbcb4149395a1e510a4ced9.tar.xz
wireguard-linux-060525302ba9ee56dfbcb4149395a1e510a4ced9.zip
tools/nolibc: prepare for headers in subdirectories
To support headers in subdirectories (like sys/), their subdirectory needs to be preserved during installation into the sysroot. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250416-nolibc-split-sys-v1-1-a069a3f1d145@linutronix.de Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/include/nolibc')
-rw-r--r--tools/include/nolibc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/Makefile b/tools/include/nolibc/Makefile
index f9702877ac21..f562cb53be10 100644
--- a/tools/include/nolibc/Makefile
+++ b/tools/include/nolibc/Makefile
@@ -72,7 +72,7 @@ help:
headers:
$(Q)mkdir -p $(OUTPUT)sysroot
$(Q)mkdir -p $(OUTPUT)sysroot/include
- $(Q)cp $(all_files) $(OUTPUT)sysroot/include/
+ $(Q)cp --parents $(all_files) $(OUTPUT)sysroot/include/
$(Q)if [ "$(ARCH)" = "x86" ]; then \
sed -e \
's,^#ifndef _NOLIBC_ARCH_X86_64_H,#if !defined(_NOLIBC_ARCH_X86_64_H) \&\& defined(__x86_64__),' \