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) |
Sam Ravnborg | 74b469f | 2007-10-25 19:42:04 +0200 | [diff] [blame] | 14 | include $(srctree)/arch/x86/Makefile_32 |
| 15 | else |
| 16 | include $(srctree)/arch/x86/Makefile_64 |
| 17 | endif |
| 18 | |
| 19 | |
| 20 | |