Skip to content

Commit

Permalink
x86: unify arch/x86/mm/Makefile
Browse files Browse the repository at this point in the history
Unify arch/x86/mm/Makefile between 32 and 64 bits.

All configuration variables that are protected by Kconfig constraints
have been put in the common part of the Makefile; however, the NUMA
files are totally different between 32 and 64 bits and are handled via
an ifdef.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
H. Peter Anvin authored and Ingo Molnar committed Apr 17, 2008
1 parent ee7ae7a commit 2596e0f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
14 changes: 12 additions & 2 deletions arch/x86/mm/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
obj-y := init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o

obj-$(CONFIG_X86_32) += pgtable_32.o

obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o

obj-$(CONFIG_HIGHMEM) += highmem_32.o

ifeq ($(CONFIG_X86_32),y)
include ${srctree}/arch/x86/mm/Makefile_32
obj-$(CONFIG_NUMA) += discontig_32.o
else
include ${srctree}/arch/x86/mm/Makefile_64
obj-$(CONFIG_NUMA) += numa_64.o
obj-$(CONFIG_K8_NUMA) += k8topology_64.o
obj-$(CONFIG_ACPI_NUMA) += srat_64.o
endif
9 changes: 0 additions & 9 deletions arch/x86/mm/Makefile_32

This file was deleted.

9 changes: 0 additions & 9 deletions arch/x86/mm/Makefile_64

This file was deleted.

0 comments on commit 2596e0f

Please sign in to comment.