From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com ([192.55.52.93]:18104 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932716Ab1LFBGL (ORCPT ); Mon, 5 Dec 2011 20:06:11 -0500 From: "H. Peter Anvin" Subject: [PATCH 1/3] um: Run host archheaders, allow use of host generated headers Date: Mon, 5 Dec 2011 17:05:47 -0800 Message-Id: <1323133549-13590-2-git-send-email-hpa@linux.intel.com> In-Reply-To: <1323133549-13590-1-git-send-email-hpa@linux.intel.com> References: <1323133549-13590-1-git-send-email-hpa@linux.intel.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Jeff Dike , Richard Weinberger Cc: Ingo Molnar , Thomas Gleixner , user-mode-linux-devel@lists.sourceforge.net, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, "H. Peter Anvin" From: "H. Peter Anvin" Run the "archheaders" target for the host architecture, for architectures (like x86, now) that want to generate some of the necessary header files. Add $(HOST_DIR)/include/generated to the include path so we then pick them up. Signed-off-by: H. Peter Anvin --- arch/um/Makefile | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/um/Makefile b/arch/um/Makefile index 7730af6..00210e9 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -64,7 +64,8 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ #This will adjust *FLAGS accordingly to the platform. include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) -KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include +KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ + -I$(HOST_DIR)/include/generated # -Derrno=kernel_errno - This turns all kernel references to errno into # kernel_errno to separate them from the libc errno. This allows -fno-common @@ -96,6 +97,10 @@ endef KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig +archheaders: + $(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \ + ARCH=$(SUBARCH) O='$(objtree)' archheaders + archprepare: include/generated/user_constants.h LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static -- 1.7.6.4