]>
Commit | Line | Data |
---|---|---|
74b469f2 SR |
1 | # Unified Makefile for i386 and x86_64 |
2 | ||
2266cfd5 | 3 | # select defconfig based on actual architecture |
d746d647 SR |
4 | ifeq ($(ARCH),x86) |
5 | KBUILD_DEFCONFIG := i386_defconfig | |
6 | else | |
7 | KBUILD_DEFCONFIG := $(ARCH)_defconfig | |
8 | endif | |
2266cfd5 | 9 | |
d746d647 | 10 | # No need to remake these files |
74b469f2 SR |
11 | $(srctree)/arch/x86/Makefile%: ; |
12 | ||
d746d647 | 13 | ifeq ($(CONFIG_X86_32),y) |
8c6531f7 | 14 | UTS_MACHINE := i386 |
74b469f2 SR |
15 | include $(srctree)/arch/x86/Makefile_32 |
16 | else | |
8c6531f7 | 17 | UTS_MACHINE := x86_64 |
74b469f2 SR |
18 | include $(srctree)/arch/x86/Makefile_64 |
19 | endif |