2007-10-25 17:42:04 +00:00
|
|
|
# Unified Makefile for i386 and x86_64
|
|
|
|
|
2007-10-25 18:31:19 +00:00
|
|
|
# select defconfig based on actual architecture
|
2007-11-12 19:14:19 +00:00
|
|
|
ifeq ($(ARCH),x86)
|
|
|
|
KBUILD_DEFCONFIG := i386_defconfig
|
|
|
|
else
|
|
|
|
KBUILD_DEFCONFIG := $(ARCH)_defconfig
|
|
|
|
endif
|
2007-10-25 18:31:19 +00:00
|
|
|
|
2007-11-12 19:14:19 +00:00
|
|
|
# No need to remake these files
|
2007-10-25 17:42:04 +00:00
|
|
|
$(srctree)/arch/x86/Makefile%: ;
|
|
|
|
|
2007-11-12 19:14:19 +00:00
|
|
|
ifeq ($(CONFIG_X86_32),y)
|
2007-11-19 22:58:57 +00:00
|
|
|
UTS_MACHINE := i386
|
2007-10-25 17:42:04 +00:00
|
|
|
include $(srctree)/arch/x86/Makefile_32
|
|
|
|
else
|
2007-11-19 22:58:57 +00:00
|
|
|
UTS_MACHINE := x86_64
|
2007-10-25 17:42:04 +00:00
|
|
|
include $(srctree)/arch/x86/Makefile_64
|
|
|
|
endif
|