blob: 116b03a4563608b00077707ae303106852374d8b [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)
Sam Ravnborg74b469f2007-10-25 19:42:04 +020014 include $(srctree)/arch/x86/Makefile_32
15else
16 include $(srctree)/arch/x86/Makefile_64
17endif
18
19
20