]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
tools/nolibc: prepare for headers in subdirectories
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 16 Apr 2025 12:06:16 +0000 (14:06 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 19 Apr 2025 12:22:19 +0000 (14:22 +0200)
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>
tools/include/nolibc/Makefile

index f9702877ac21ab5ad30df1740e40e67f477f3824..f562cb53be10efc4e0758b8836cf3ace5b3c151f 100644 (file)
@@ -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__),' \