xref: /openbmc/linux/arch/powerpc/lib/Makefile (revision a66086b8)
114cf11afSPaul Mackerras#
214cf11afSPaul Mackerras# Makefile for ppc-specific library files..
314cf11afSPaul Mackerras#
414cf11afSPaul Mackerras
5ba55bd74SMichael Ellermansubdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6ba55bd74SMichael Ellerman
74108d9baSmatt mooneyccflags-$(CONFIG_PPC64)	:= -mno-minimal-toc
88555a002SAnton Blanchard
9f1eecf0eSSteven RostedtCFLAGS_REMOVE_code-patching.o = -pg
10f1eecf0eSSteven RostedtCFLAGS_REMOVE_feature-fixups.o = -pg
11f1eecf0eSSteven Rostedt
122578bfaeSStephen Rothwellobj-y			:= string.o alloc.o \
137fca5dc8SStephen Rothwell			   checksum_$(CONFIG_WORD_SIZE).o crtsavres.o
147fca5dc8SStephen Rothwellobj-$(CONFIG_PPC32)	+= div64.o copy_32.o
150d4b6b90SPaul Mackerrasobj-$(CONFIG_HAS_IOMEM)	+= devres.o
1640ef8cbcSPaul Mackerras
172578bfaeSStephen Rothwellobj-$(CONFIG_PPC64)	+= copypage_64.o copyuser_64.o \
18fdd374b6SAnton Blanchard			   memcpy_64.o usercopy_64.o mem_64.o string.o \
19a66086b8SAnton Blanchard			   checksum_wrappers_64.o hweight_64.o \
20a66086b8SAnton Blanchard			   copyuser_power7.o
210016a4cfSPaul Mackerrasobj-$(CONFIG_XMON)	+= sstep.o ldstfp.o
220016a4cfSPaul Mackerrasobj-$(CONFIG_KPROBES)	+= sstep.o ldstfp.o
235aae8a53SK.Prasadobj-$(CONFIG_HAVE_HW_BREAKPOINT)	+= sstep.o ldstfp.o
24f78541dcSPaul Mackerras
25ecc81e0fSStephen Rothwellifeq ($(CONFIG_PPC64),y)
26ecc81e0fSStephen Rothwellobj-$(CONFIG_SMP)	+= locks.o
27a66086b8SAnton Blanchardobj-$(CONFIG_ALTIVEC)	+= copyuser_power7_vmx.o
28ecc81e0fSStephen Rothwellendif
29b0c110b4SVitaly Bordug
301088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
31aaddd3eaSMichael Ellerman
32aaddd3eaSMichael Ellermanobj-y			+= code-patching.o
3351c52e86SMichael Ellermanobj-y			+= feature-fixups.o
34362e7701SMichael Ellermanobj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
35