1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 214cf11afSPaul Mackerras# 314cf11afSPaul Mackerras# Makefile for ppc-specific library files.. 414cf11afSPaul Mackerras# 514cf11afSPaul Mackerras 61fbe9cf2SAnton Blanchardccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 78555a002SAnton Blanchard 89a7841aeSTorsten DuweCFLAGS_REMOVE_code-patching.o = $(CC_FLAGS_FTRACE) 99a7841aeSTorsten DuweCFLAGS_REMOVE_feature-fixups.o = $(CC_FLAGS_FTRACE) 10f1eecf0eSSteven Rostedt 11baa25b57SNicholas Pigginobj-y += string.o alloc.o code-patching.o feature-fixups.o 12baa25b57SNicholas Piggin 139412b234SChristophe Leroyobj-$(CONFIG_PPC32) += div64.o copy_32.o crtsavres.o strlen_32.o 14564ec2f2SMichael Ellerman 157cd01b08SNaveen N. Raoobj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o 167cd01b08SNaveen N. Rao 17efe0160cSNicholas Piggin# See corresponding test in arch/powerpc/Makefile 18efe0160cSNicholas Piggin# 64-bit linker creates .sfpr on demand for final link (vmlinux), 19efe0160cSNicholas Piggin# so it is only needed for modules, and only for older linkers which 20efe0160cSNicholas Piggin# do not support --save-restore-funcs 21efe0160cSNicholas Pigginifeq ($(call ld-ifversion, -lt, 225000000, y),y) 22efe0160cSNicholas Pigginextra-$(CONFIG_PPC64) += crtsavres.o 23efe0160cSNicholas Pigginendif 2440ef8cbcSPaul Mackerras 2515a3204dSNicholas Pigginobj-$(CONFIG_PPC_BOOK3S_64) += copyuser_power7.o copypage_power7.o \ 2615a3204dSNicholas Piggin memcpy_power7.o 2715a3204dSNicholas Piggin 283448890cSAl Viroobj64-y += copypage_64.o copyuser_64.o mem_64.o hweight_64.o \ 292676b89eSChristophe Leroy memcpy_64.o pmem.o 301dcee55fSMichael Ellerman 311dcee55fSMichael Ellermanobj64-$(CONFIG_SMP) += locks.o 321dcee55fSMichael Ellermanobj64-$(CONFIG_ALTIVEC) += vmx-helper.o 334ceae137SRavi Bangoriaobj64-$(CONFIG_KPROBES_SANITY_TEST) += test_emulate_step.o 341dcee55fSMichael Ellerman 35f36bbf21SChristophe Leroyobj-y += checksum_$(BITS).o checksum_wrappers.o \ 362676b89eSChristophe Leroy string_$(BITS).o memcmp_$(BITS).o 377a332b0cSAnton Blanchard 3831bfdb03SPaul Mackerrasobj-y += sstep.o ldstfp.o quad.o 3931bfdb03SPaul Mackerrasobj64-y += quad.o 40f78541dcSPaul Mackerras 411088a209SSylvain Munautobj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o 42aaddd3eaSMichael Ellerman 43362e7701SMichael Ellermanobj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o 44ef1313deSAnton Blanchard 45f718d426SMatt Brownobj-$(CONFIG_ALTIVEC) += xor_vmx.o xor_vmx_glue.o 461fb3f5a7SAnton BlanchardCFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) 471dcee55fSMichael Ellerman 481dcee55fSMichael Ellermanobj-$(CONFIG_PPC64) += $(obj64-y) 49