1# 2# Makefile for ppc-specific library files.. 3# 4 5subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror 6 7ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 8 9CFLAGS_REMOVE_code-patching.o = -pg 10CFLAGS_REMOVE_feature-fixups.o = -pg 11 12obj-y := string.o alloc.o \ 13 crtsavres.o ppc_ksyms.o 14obj-$(CONFIG_PPC32) += div64.o copy_32.o 15 16obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \ 17 usercopy_64.o mem_64.o string.o \ 18 hweight_64.o \ 19 copyuser_power7.o string_64.o copypage_power7.o 20ifeq ($(CONFIG_GENERIC_CSUM),) 21obj-y += checksum_$(CONFIG_WORD_SIZE).o 22obj-$(CONFIG_PPC64) += checksum_wrappers_64.o 23endif 24 25obj-$(CONFIG_PPC64) += memcpy_power7.o memcpy_64.o 26 27obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o 28 29ifeq ($(CONFIG_PPC64),y) 30obj-$(CONFIG_SMP) += locks.o 31obj-$(CONFIG_ALTIVEC) += vmx-helper.o 32endif 33 34obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o 35 36obj-y += code-patching.o 37obj-y += feature-fixups.o 38obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o 39 40obj-$(CONFIG_ALTIVEC) += xor_vmx.o 41CFLAGS_xor_vmx.o += -maltivec -mabi=altivec 42