mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] um: Generate "generic-y" header files for $(HEADER_ARCH)
@ 2014-06-01  8:40 Geert Uytterhoeven
  0 siblings, 0 replies; only message in thread
From: Geert Uytterhoeven @ 2014-06-01  8:40 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: user-mode-linux-devel, linux-kbuild, linux-kernel, Geert Uytterhoeven

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

Signed-off-by: Geert Uytterhoeven <geert@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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-01  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-01  8:40 [PATCH] um: Generate "generic-y" header files for $(HEADER_ARCH) Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®