UM needs to perform header file generation for $(HEADER_ARCH), in addition
to the standard $(ARCH).

Signed-off-by: Geert Uytterhoeven <ge...@linux-m68k.org>
---
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


------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to