Sam Ravnborg | 74b469f | 2007-10-25 19:42:04 +0200 | [diff] [blame] | 1 | # Unified Makefile for i386 and x86_64 |
| 2 | |
Sam Ravnborg | 2266cfd | 2007-10-25 20:31:19 +0200 | [diff] [blame] | 3 | # select defconfig based on actual architecture |
Sam Ravnborg | d746d64 | 2007-11-12 20:14:19 +0100 | [diff] [blame] | 4 | ifeq ($(ARCH),x86) |
| 5 | KBUILD_DEFCONFIG := i386_defconfig |
| 6 | else |
| 7 | KBUILD_DEFCONFIG := $(ARCH)_defconfig |
| 8 | endif |
Sam Ravnborg | 2266cfd | 2007-10-25 20:31:19 +0200 | [diff] [blame] | 9 | |
Sam Ravnborg | d746d64 | 2007-11-12 20:14:19 +0100 | [diff] [blame] | 10 | # No need to remake these files |
Sam Ravnborg | 74b469f | 2007-10-25 19:42:04 +0200 | [diff] [blame] | 11 | $(srctree)/arch/x86/Makefile%: ; |
| 12 | |
Sam Ravnborg | d746d64 | 2007-11-12 20:14:19 +0100 | [diff] [blame] | 13 | ifeq ($(CONFIG_X86_32),y) |
Andreas Herrmann | 8c6531f | 2007-11-19 23:58:57 +0100 | [diff] [blame] | 14 | UTS_MACHINE := i386 |
Sam Ravnborg | 74b469f | 2007-10-25 19:42:04 +0200 | [diff] [blame] | 15 | include $(srctree)/arch/x86/Makefile_32 |
| 16 | else |
Andreas Herrmann | 8c6531f | 2007-11-19 23:58:57 +0100 | [diff] [blame] | 17 | UTS_MACHINE := x86_64 |
Sam Ravnborg | 74b469f | 2007-10-25 19:42:04 +0200 | [diff] [blame] | 18 | include $(srctree)/arch/x86/Makefile_64 |
| 19 | endif |