mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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>
This commit is contained in:
parent
8509b5c9fa
commit
060525302b
|
|
@ -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__),' \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user