blob: 7902802a19a56a7ee27d3f1e5ba8e4eacf3f5f6f [file] [log] [blame]
Paul Mackerras14cf11a2005-09-26 16:04:21 +10001#
2# Makefile for ppc-specific library files..
3#
4
Michael Ellermanba55bd72009-06-09 20:48:51 +00005subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
6
Anton Blanchard1fbe9cf2012-11-26 17:41:08 +00007ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
Anton Blanchard8555a002006-06-10 20:23:54 +10008
Steven Rostedtf1eecf02008-11-26 15:54:46 -05009CFLAGS_REMOVE_code-patching.o = -pg
10CFLAGS_REMOVE_feature-fixups.o = -pg
11
Michael Ellerman564ec2f2014-12-22 15:14:24 +110012obj-y += string.o alloc.o crtsavres.o ppc_ksyms.o code-patching.o \
13 feature-fixups.o
14
Stephen Rothwell7fca5dc2010-06-29 20:08:42 +000015obj-$(CONFIG_PPC32) += div64.o copy_32.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100016
Michael Ellerman1dcee552014-12-22 15:18:43 +110017obj64-y += copypage_64.o copyuser_64.o usercopy_64.o mem_64.o hweight_64.o \
18 copyuser_power7.o string_64.o copypage_power7.o memcpy_power7.o \
19 memcpy_64.o memcmp_64.o
20
21obj64-$(CONFIG_SMP) += locks.o
22obj64-$(CONFIG_ALTIVEC) += vmx-helper.o
23
Anton Blanchard7a332b02013-09-23 12:04:51 +100024ifeq ($(CONFIG_GENERIC_CSUM),)
25obj-y += checksum_$(CONFIG_WORD_SIZE).o
26obj-$(CONFIG_PPC64) += checksum_wrappers_64.o
27endif
28
Suzuki K. Poulose5e249d42013-01-07 00:26:57 +000029obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o
Paul Mackerrasf78541d2005-10-28 22:53:37 +100030
Sylvain Munaut1088a202007-09-16 20:53:25 +100031obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
Michael Ellermanaaddd3e2008-06-24 11:32:21 +100032
Michael Ellerman362e7702008-06-24 11:33:03 +100033obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
Anton Blanchardef1313d2013-10-14 21:03:58 +110034
35obj-$(CONFIG_ALTIVEC) += xor_vmx.o
36CFLAGS_xor_vmx.o += -maltivec -mabi=altivec
Michael Ellerman1dcee552014-12-22 15:18:43 +110037
38obj-$(CONFIG_PPC64) += $(obj64-y)