blob: ba21be15310f3ebd877ad5bf15e8858323932f96 [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
Torsten Duwe9a7841a2016-03-03 15:26:58 +11009CFLAGS_REMOVE_code-patching.o = $(CC_FLAGS_FTRACE)
10CFLAGS_REMOVE_feature-fixups.o = $(CC_FLAGS_FTRACE)
Steven Rostedtf1eecf02008-11-26 15:54:46 -050011
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),)
Christophe Leroy03bc8b02015-09-22 16:34:23 +020025obj-y += checksum_$(CONFIG_WORD_SIZE).o checksum_wrappers.o
Anton Blanchard7a332b02013-09-23 12:04:51 +100026endif
27
Suzuki K. Poulose5e249d42013-01-07 00:26:57 +000028obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o
Paul Mackerrasf78541dc2005-10-28 22:53:37 +100029
Sylvain Munaut1088a202007-09-16 20:53:25 +100030obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
Michael Ellermanaaddd3e2008-06-24 11:32:21 +100031
Michael Ellerman362e7702008-06-24 11:33:03 +100032obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
Anton Blanchardef1313d2013-10-14 21:03:58 +110033
34obj-$(CONFIG_ALTIVEC) += xor_vmx.o
Anton Blanchard1fb3f5a2015-05-26 08:53:26 +100035CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec)
Michael Ellerman1dcee552014-12-22 15:18:43 +110036
37obj-$(CONFIG_PPC64) += $(obj64-y)