blob: 7aa1dc6d67c88f73067ff4be2ab6bf7ee204c9c1 [file] [log] [blame]
Sam Ravnborg74b469f2007-10-25 19:42:04 +02001# Unified Makefile for i386 and x86_64
2
Sam Ravnborg2266cfd2007-10-25 20:31:19 +02003# select defconfig based on actual architecture
Sam Ravnborgd746d642007-11-12 20:14:19 +01004ifeq ($(ARCH),x86)
5 KBUILD_DEFCONFIG := i386_defconfig
6else
7 KBUILD_DEFCONFIG := $(ARCH)_defconfig
8endif
Sam Ravnborg2266cfd2007-10-25 20:31:19 +02009
Sam Ravnborgd746d642007-11-12 20:14:19 +010010# No need to remake these files
Sam Ravnborg74b469f2007-10-25 19:42:04 +020011$(srctree)/arch/x86/Makefile%: ;
12
Sam Ravnborgd746d642007-11-12 20:14:19 +010013ifeq ($(CONFIG_X86_32),y)
Andreas Herrmann8c6531f2007-11-19 23:58:57 +010014 UTS_MACHINE := i386
Sam Ravnborg74b469f2007-10-25 19:42:04 +020015 include $(srctree)/arch/x86/Makefile_32
16else
Andreas Herrmann8c6531f2007-11-19 23:58:57 +010017 UTS_MACHINE := x86_64
Sam Ravnborg74b469f2007-10-25 19:42:04 +020018 include $(srctree)/arch/x86/Makefile_64
19endif