um: make sure to have generated headers for target
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 06:37:17 +0000 (02:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Nov 2017 21:19:51 +0000 (16:19 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/um/Makefile

index b76fcce397a11c44891658ceab02cedf244d44fa..e54dda8a036388438bcac0302d6dcf0259ef8a96 100644 (file)
@@ -116,8 +116,15 @@ endef
 KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
 
 archheaders:
+       $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
+                   kbuild-file=$(HOST_DIR)/include/asm/Kbuild \
+                   obj=$(HOST_DIR)/include/generated/asm
+       $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
+                   kbuild-file=$(HOST_DIR)/include/uapi/asm/Kbuild \
+                   obj=$(HOST_DIR)/include/generated/uapi/asm
        $(Q)$(MAKE) KBUILD_SRC= ARCH=$(HEADER_ARCH) archheaders
 
+
 archprepare: include/generated/user_constants.h
 
 LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static