[PATCH] um: Generate "generic-y" header files for $(HEADER_ARCH)
From: Geert Uytterhoeven
Date: Sun Jun 01 2014 - 04:40:28 EST
UM needs to perform header file generation for $(HEADER_ARCH), in addition
to the standard $(ARCH).
Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
Prerequisite for "x86/uapi: Use Kbuild logic to include <asm-generic/types.h>"
https://lkml.org/lkml/2013/11/25/229
Else it fails with:
In file included from include/linux/types.h:5:0,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/uapi/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory
arch/um/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 36e658a4291c..4a6caa4bc633 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -113,6 +113,12 @@ KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
archheaders:
$(Q)$(MAKE) -C '$(srctree)' KBUILD_SRC= \
ARCH=$(HEADER_ARCH) O='$(objtree)' archheaders
+ $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
+ SRCARCH=$(HEADER_ARCH) src=asm \
+ obj=arch/$(HEADER_ARCH)/include/generated/asm
+ $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
+ SRCARCH=$(HEADER_ARCH) src=uapi/asm \
+ obj=arch/$(HEADER_ARCH)/include/generated/uapi/asm
archprepare: include/generated/user_constants.h
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/