Commit d1f0ae5e2e45e74cff4c3bdefb0fc77608cdfeec
Committed by
Ingo Molnar
1 parent
3ee8da87ba
Exists in
master
and in
7 other branches
x86: standardize Kbuild rules
Introducing this Kbuild file allow us to: make arch/x86/ And thus building all the core part of x86. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Jaswinder Singh Rajput <jaswinder@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 2 changed files with 18 additions and 17 deletions Side-by-side Diff
arch/x86/Kbuild
1 | + | |
2 | +obj-$(CONFIG_KVM) += kvm/ | |
3 | + | |
4 | +# Xen paravirtualization support | |
5 | +obj-$(CONFIG_XEN) += xen/ | |
6 | + | |
7 | +# lguest paravirtualization support | |
8 | +obj-$(CONFIG_LGUEST_GUEST) += lguest/ | |
9 | + | |
10 | +obj-y += kernel/ | |
11 | +obj-y += mm/ | |
12 | + | |
13 | +obj-y += crypto/ | |
14 | +obj-y += vdso/ | |
15 | +obj-$(CONFIG_IA32_EMULATION) += ia32/ |
arch/x86/Makefile
... | ... | @@ -7,8 +7,6 @@ |
7 | 7 | KBUILD_DEFCONFIG := $(ARCH)_defconfig |
8 | 8 | endif |
9 | 9 | |
10 | -core-$(CONFIG_KVM) += arch/x86/kvm/ | |
11 | - | |
12 | 10 | # BITS is used as extension for files which are available in a 32 bit |
13 | 11 | # and a 64 bit version to simplify shared Makefiles. |
14 | 12 | # e.g.: obj-y += foo_$(BITS).o |
... | ... | @@ -118,21 +116,8 @@ |
118 | 116 | |
119 | 117 | libs-y += arch/x86/lib/ |
120 | 118 | |
121 | -# Sub architecture files that needs linking first | |
122 | -core-y += $(fcore-y) | |
123 | - | |
124 | -# Xen paravirtualization support | |
125 | -core-$(CONFIG_XEN) += arch/x86/xen/ | |
126 | - | |
127 | -# lguest paravirtualization support | |
128 | -core-$(CONFIG_LGUEST_GUEST) += arch/x86/lguest/ | |
129 | - | |
130 | -core-y += arch/x86/kernel/ | |
131 | -core-y += arch/x86/mm/ | |
132 | - | |
133 | -core-y += arch/x86/crypto/ | |
134 | -core-y += arch/x86/vdso/ | |
135 | -core-$(CONFIG_IA32_EMULATION) += arch/x86/ia32/ | |
119 | +# See arch/x86/Kbuild for content of core part of the kernel | |
120 | +core-y += arch/x86/ | |
136 | 121 | |
137 | 122 | # drivers-y are linked after core-y |
138 | 123 | drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ |