[klibc] [PATCH] Update header locations for uapi & generated
Robin H. Johnson
robbat2 at gentoo.org
Thu Dec 26 15:29:08 PST 2013
In the v3.6 kernel, many of the headers were split out into a uapi variant.
klibc should be using those variants to compile.
There is also a generated subdir, to seperate out generated headers.
The old kernel header location needs to be included as well, because
linux/compiler.h is available only in the base include directory.
Signed-off-by: Robin H. Johnson <robbat2 at gentoo.org>
---
scripts/Kbuild.klibc | 10 ++++++++--
usr/klibc/arch/i386/MCONFIG | 5 ++++-
usr/klibc/arch/ppc/MCONFIG | 5 ++++-
usr/klibc/arch/ppc64/MCONFIG | 5 ++++-
usr/klibc/arch/x86_64/MCONFIG | 5 ++++-
5 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index f500d53..989a065 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -77,7 +77,10 @@ KLIBCLDFLAGS :=
KLIBCCFLAGS :=
# Defaults for arch to override
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/generated/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/generated \
+ -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include
# Arch specific definitions for klibc
include $(srctree)/$(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG
@@ -113,7 +116,10 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \
# kernel include paths
KLIBCKERNELSRC ?= $(srctree)
KLIBCKERNELOBJ ?= $(objtree)
-KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \
+KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include/uapi \
+ -I$(KLIBCKERNELSRC)/include/generated/uapi \
+ -I$(KLIBCKERNELSRC)/include/generated \
+ -I$(KLIBCKERNELSRC)/include \
$(if $(KBUILD_SRC),-I$(KLIBCKERNELOBJ)/include2 \
-I$(KLIBCKERNELOBJ)/include -I$(srctree)/include) \
$(KLIBCARCHINCFLAGS)
diff --git a/usr/klibc/arch/i386/MCONFIG b/usr/klibc/arch/i386/MCONFIG
index 1150ece..eb7a5e9 100644
--- a/usr/klibc/arch/i386/MCONFIG
+++ b/usr/klibc/arch/i386/MCONFIG
@@ -33,4 +33,7 @@ KLIBCBITSIZE = 32
KLIBCSHAREDFLAGS = -Ttext 0x06000200
# Asm includes for i386 are in the merged x86 tree
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/x86/include/generated/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/x86/include/generated \
+ -I$(KLIBCKERNELOBJ)/arch/x86/include
diff --git a/usr/klibc/arch/ppc/MCONFIG b/usr/klibc/arch/ppc/MCONFIG
index 6630df7..ac52157 100644
--- a/usr/klibc/arch/ppc/MCONFIG
+++ b/usr/klibc/arch/ppc/MCONFIG
@@ -23,7 +23,10 @@ KLIBCBITSIZE = 32
KLIBCSHAREDFLAGS = -Ttext 0x0f800200
# The kernel so far has both asm-ppc* and asm-powerpc.
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/powerpc/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/powerpc/include/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/powerpc/include/generated/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/powerpc/include/generated \
+ -I$(KLIBCKERNELOBJ)/arch/powerpc/include
# The asm include files live in asm-powerpc
KLIBCASMARCH = powerpc
diff --git a/usr/klibc/arch/ppc64/MCONFIG b/usr/klibc/arch/ppc64/MCONFIG
index 1331e05..a58bac3 100644
--- a/usr/klibc/arch/ppc64/MCONFIG
+++ b/usr/klibc/arch/ppc64/MCONFIG
@@ -21,7 +21,10 @@ KLIBCBITSIZE = 64
KLIBCSHAREDFLAGS = -Ttext 0x0f000200
# The kernel so far has both asm-ppc* and asm-powerpc.
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/powerpc/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/powerpc/include/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/powerpc/include/generated/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/powerpc/include/generated \
+ -I$(KLIBCKERNELOBJ)/arch/powerpc/include
# The asm include files live in asm-powerpc
KLIBCASMARCH = powerpc
diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG
index d4ff5ea..90cca2c 100644
--- a/usr/klibc/arch/x86_64/MCONFIG
+++ b/usr/klibc/arch/x86_64/MCONFIG
@@ -36,4 +36,7 @@ KLIBCLDFLAGS = -m elf_x86_64
KLIBCSHAREDFLAGS = -Ttext 0x00200200 -z max-page-size=0x100000
# Asm includes for x86_64 are in the merged x86 tree
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/x86/include/generated/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/x86/include/generated \
+ -I$(KLIBCKERNELOBJ)/arch/x86/include
--
1.8.5.2
More information about the klibc
mailing list