xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision b0c110b4)
114cf11afSPaul Mackerras#
214cf11afSPaul Mackerras# Makefile for ppc-specific library files..
314cf11afSPaul Mackerras#
414cf11afSPaul Mackerras
58555a002SAnton Blanchardifeq ($(CONFIG_PPC64),y)
68555a002SAnton BlanchardEXTRA_CFLAGS		+= -mno-minimal-toc
78555a002SAnton Blanchardendif
88555a002SAnton Blanchard
91a3c061eSStephen Rothwellifeq ($(CONFIG_PPC_MERGE),y)
10a0e60b20SDavid Gibsonobj-y			:= string.o strcase.o
11a0e60b20SDavid Gibsonobj-$(CONFIG_PPC32)	+= div64.o copy_32.o checksum_32.o
121a3c061eSStephen Rothwellendif
1340ef8cbcSPaul Mackerras
1412a39407SStephen Rothwellobj-$(CONFIG_PPC64)	+= checksum_64.o copypage_64.o copyuser_64.o \
15a0e60b20SDavid Gibson			   memcpy_64.o usercopy_64.o mem_64.o string.o \
16a0e60b20SDavid Gibson			   strcase.o
17f78541dcSPaul Mackerrasobj-$(CONFIG_XMON)	+= sstep.o
18f78541dcSPaul Mackerras
19ecc81e0fSStephen Rothwellifeq ($(CONFIG_PPC64),y)
20ecc81e0fSStephen Rothwellobj-$(CONFIG_SMP)	+= locks.o
21a0d8bf9cSStephen Rothwellobj-$(CONFIG_DEBUG_KERNEL) += sstep.o
22ecc81e0fSStephen Rothwellendif
23b0c110b4SVitaly Bordug
24b0c110b4SVitaly Bordug# Temporary hack until we have migrated to asm-powerpc
25b0c110b4SVitaly Bordugifeq ($(CONFIG_PPC_MERGE),y)
26b0c110b4SVitaly Bordugobj-$(CONFIG_CPM2)	+= rheap.o
27b0c110b4SVitaly Bordugendif
28