xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision f1eecf0e)
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
9*f1eecf0eSSteven RostedtCFLAGS_REMOVE_code-patching.o = -pg
10*f1eecf0eSSteven RostedtCFLAGS_REMOVE_feature-fixups.o = -pg
11*f1eecf0eSSteven Rostedt
122578bfaeSStephen Rothwellobj-y			:= string.o alloc.o \
132578bfaeSStephen Rothwell			   checksum_$(CONFIG_WORD_SIZE).o
14da3de6dfSKumar Galaobj-$(CONFIG_PPC32)	+= div64.o copy_32.o crtsavres.o
150d4b6b90SPaul Mackerrasobj-$(CONFIG_HAS_IOMEM)	+= devres.o
1640ef8cbcSPaul Mackerras
172578bfaeSStephen Rothwellobj-$(CONFIG_PPC64)	+= copypage_64.o copyuser_64.o \
18ded220bdSDavid S. Miller			   memcpy_64.o usercopy_64.o mem_64.o string.o
19f78541dcSPaul Mackerrasobj-$(CONFIG_XMON)	+= sstep.o
2082090035SKumar Galaobj-$(CONFIG_KPROBES)	+= sstep.o
215902ebceSVitaly Bordugobj-$(CONFIG_NOT_COHERENT_CACHE)	+= dma-noncoherent.o
22f78541dcSPaul Mackerras
23ecc81e0fSStephen Rothwellifeq ($(CONFIG_PPC64),y)
24ecc81e0fSStephen Rothwellobj-$(CONFIG_SMP)	+= locks.o
25ecc81e0fSStephen Rothwellendif
26b0c110b4SVitaly Bordug
271088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
28aaddd3eaSMichael Ellerman
29aaddd3eaSMichael Ellermanobj-y			+= code-patching.o
3051c52e86SMichael Ellermanobj-y			+= feature-fixups.o
31362e7701SMichael Ellermanobj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
32