blob: 4504332766990147fdbfef302baac7919ec179fa [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
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100012obj-y := string.o alloc.o \
Stephen Rothwell7fca5dc2010-06-29 20:08:42 +000013 checksum_$(CONFIG_WORD_SIZE).o crtsavres.o
14obj-$(CONFIG_PPC32) += div64.o copy_32.o
Paul Mackerras0d4b6b92008-05-12 22:57:51 +100015obj-$(CONFIG_HAS_IOMEM) += devres.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100016
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100017obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \
Anton Blanchardfdd374b2010-08-02 20:09:52 +000018 memcpy_64.o usercopy_64.o mem_64.o string.o \
Anton Blancharda66086b2011-12-07 20:11:45 +000019 checksum_wrappers_64.o hweight_64.o \
Anton Blanchardb3f271e2012-05-30 20:22:09 +000020 copyuser_power7.o string_64.o copypage_power7.o \
21 memcpy_power7.o
Suzuki K. Poulose5e249d42013-01-07 00:26:57 +000022obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o
Paul Mackerrasf78541dc2005-10-28 22:53:37 +100023
Stephen Rothwellecc81e02005-10-27 16:45:38 +100024ifeq ($(CONFIG_PPC64),y)
25obj-$(CONFIG_SMP) += locks.o
Anton Blanchard6f7839e2012-05-29 19:31:24 +000026obj-$(CONFIG_ALTIVEC) += vmx-helper.o
Stephen Rothwellecc81e02005-10-27 16:45:38 +100027endif
Vitaly Bordugb0c110b2006-09-21 22:18:53 +040028
Sylvain Munaut1088a202007-09-16 20:53:25 +100029obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
Michael Ellermanaaddd3e2008-06-24 11:32:21 +100030
31obj-y += code-patching.o
Michael Ellerman51c52e82008-06-24 11:32:36 +100032obj-y += feature-fixups.o
Michael Ellerman362e7702008-06-24 11:33:03 +100033obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o