sparc: prepare mm/ for unification
- rename files where sparc64 has similar files to _32.c - Restructure Makefile - Sneak in -Werror as we have for sparc64 Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7c979c49c9
commit
c37ddd936d
|
@ -1,17 +1,21 @@
|
||||||
# Makefile for the linux Sparc-specific parts of the memory manager.
|
# Makefile for the linux Sparc-specific parts of the memory manager.
|
||||||
#
|
#
|
||||||
|
|
||||||
EXTRA_AFLAGS := -ansi
|
asflags-y := -ansi
|
||||||
|
ccflags-y := -Werror
|
||||||
|
|
||||||
obj-y := fault.o init.o loadmmu.o generic.o extable.o btfixup.o \
|
obj-y := fault_$(BITS).o
|
||||||
srmmu.o iommu.o io-unit.o hypersparc.o viking.o tsunami.o swift.o
|
obj-y += init_$(BITS).o
|
||||||
|
obj-$(CONFIG_SPARC32) += loadmmu.o
|
||||||
|
obj-y += generic_$(BITS).o
|
||||||
|
obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o
|
||||||
|
obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o
|
||||||
|
|
||||||
ifdef CONFIG_HIGHMEM
|
# Only used by sparc32
|
||||||
obj-y += highmem.o
|
obj-$(CONFIG_HIGHMEM) += highmem.o
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef CONFIG_SMP
|
ifdef CONFIG_SMP
|
||||||
obj-y += nosun4c.o
|
obj-$(CONFIG_SPARC32) += nosun4c.o
|
||||||
else
|
else
|
||||||
obj-y += sun4c.o
|
obj-$(CONFIG_SPARC32) += sun4c.o
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue