114cf11afSPaul Mackerras# 214cf11afSPaul Mackerras# Makefile for ppc-specific library files.. 314cf11afSPaul Mackerras# 414cf11afSPaul Mackerras 5ba55bd74SMichael Ellermansubdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 6ba55bd74SMichael Ellerman 71fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 88555a002SAnton Blanchard 99a7841aeSTorsten DuweCFLAGS_REMOVE_code-patching.o = $(CC_FLAGS_FTRACE) 109a7841aeSTorsten DuweCFLAGS_REMOVE_feature-fixups.o = $(CC_FLAGS_FTRACE) 11f1eecf0eSSteven Rostedt 12baa25b57SNicholas Pigginobj-y += string.o alloc.o code-patching.o feature-fixups.o 13baa25b57SNicholas Piggin 14efe0160cSNicholas Pigginobj-$(CONFIG_PPC32) += div64.o copy_32.o crtsavres.o 15564ec2f2SMichael Ellerman 16efe0160cSNicholas Piggin# See corresponding test in arch/powerpc/Makefile 17efe0160cSNicholas Piggin# 64-bit linker creates .sfpr on demand for final link (vmlinux), 18efe0160cSNicholas Piggin# so it is only needed for modules, and only for older linkers which 19efe0160cSNicholas Piggin# do not support --save-restore-funcs 20efe0160cSNicholas Pigginifeq ($(call ld-ifversion, -lt, 225000000, y),y) 21efe0160cSNicholas Pigginextra-$(CONFIG_PPC64) += crtsavres.o 22efe0160cSNicholas Pigginendif 2340ef8cbcSPaul Mackerras 243448890cSAl Viroobj64-y += copypage_64.o copyuser_64.o mem_64.o hweight_64.o \ 251dcee55fSMichael Ellerman copyuser_power7.o string_64.o copypage_power7.o memcpy_power7.o \ 261dcee55fSMichael Ellerman memcpy_64.o memcmp_64.o 271dcee55fSMichael Ellerman 281dcee55fSMichael Ellermanobj64-$(CONFIG_SMP) += locks.o 291dcee55fSMichael Ellermanobj64-$(CONFIG_ALTIVEC) += vmx-helper.o 304ceae137SRavi Bangoriaobj64-$(CONFIG_KPROBES_SANITY_TEST) += test_emulate_step.o 311dcee55fSMichael Ellerman 3268201fbbSMichael Ellermanobj-y += checksum_$(BITS).o checksum_wrappers.o 337a332b0cSAnton Blanchard 345e249d45SSuzuki K. Pouloseobj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o 35f78541dcSPaul Mackerras 361088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o 37aaddd3eaSMichael Ellerman 38362e7701SMichael Ellermanobj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o 39ef1313deSAnton Blanchard 40ef1313deSAnton Blanchardobj-$(CONFIG_ALTIVEC) += xor_vmx.o 411fb3f5a7SAnton BlanchardCFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) 421dcee55fSMichael Ellerman 431dcee55fSMichael Ellermanobj-$(CONFIG_PPC64) += $(obj64-y) 44