x86/x32: Fix the binutils auto-detect
authorIngo Molnar <mingo@elte.hu>
Tue, 28 Feb 2012 09:35:06 +0000 (10:35 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 28 Feb 2012 09:35:06 +0000 (10:35 +0100)
Fix:

 arch/x86/Makefile:96: *** recipe commences before first target.  Stop.

Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: H. J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/1329696488-16970-1-git-send-email-hpa@zytor.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Makefile

index 31bb1eb1216a7a416e8137da957bb3a0bcdf35d6..968dbe24a255453bb3bb3768cd76f2f72b424bcc 100644 (file)
@@ -88,13 +88,13 @@ ifdef CONFIG_X86_X32
                        $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" - && \
                        $(OBJCOPY) -O elf32-x86-64 "$$TMP" "$$TMPO" && \
                        $(LD) -m elf32_x86_64 "$$TMPO" -o "$$TMP",y,n)
-       ifeq ($(x32_ld_ok),y)
-               CONFIG_X86_X32_ABI := y
-               KBUILD_AFLAGS += -DCONFIG_X86_X32_ABI
-               KBUILD_CFLAGS += -DCONFIG_X86_X32_ABI
-       else
-               $(warning CONFIG_X86_X32 enabled but no binutils support)
-       endif
+        ifeq ($(x32_ld_ok),y)
+                CONFIG_X86_X32_ABI := y
+                KBUILD_AFLAGS += -DCONFIG_X86_X32_ABI
+                KBUILD_CFLAGS += -DCONFIG_X86_X32_ABI
+        else
+                $(warning CONFIG_X86_X32 enabled but no binutils support)
+        endif
 endif
 export CONFIG_X86_X32_ABI