From bcf93b4ec71525b598f57092698426c587fdca4c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 Nov 2014 03:37:38 -0500 Subject: [PATCH] x86: do not build relocs tool when installing headers This isn't needed to install headers, so don't bother building it. Otherwise we run into a chicken/egg issue where we need the kernel headers in order to install the kernel headers. It's also a waste of time. Signed-off-by: Mike Frysinger --- arch/x86/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 118e6de..31bf7b5 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -174,8 +174,10 @@ KBUILD_CFLAGS += $(call cc-option,-mno-avx,) KBUILD_CFLAGS += $(mflags-y) KBUILD_AFLAGS += $(mflags-y) +ifneq ($(filter-out headers_install,$(MAKECMDGOALS)),) archscripts: scripts_basic $(Q)$(MAKE) $(build)=arch/x86/tools relocs +endif ### # Syscall table generation -- 2.5.0