blob: 166a6a0ad54406858f66cbb1cdd093650ceb9678 [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
matt mooney4108d9b2010-09-22 20:51:09 +00007ccflags-$(CONFIG_PPC64) := -mno-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 Blanchard64ff3122010-08-12 16:28:09 +000019 checksum_wrappers_64.o hweight_64.o
Paul Mackerras0016a4c2010-06-15 14:48:58 +100020obj-$(CONFIG_XMON) += sstep.o ldstfp.o
21obj-$(CONFIG_KPROBES) += sstep.o ldstfp.o
K.Prasad5aae8a52010-06-15 11:35:19 +053022obj-$(CONFIG_HAVE_HW_BREAKPOINT) += sstep.o ldstfp.o
Paul Mackerrasf78541d2005-10-28 22:53:37 +100023
Stephen Rothwellecc81e02005-10-27 16:45:38 +100024ifeq ($(CONFIG_PPC64),y)
25obj-$(CONFIG_SMP) += locks.o
26endif
Vitaly Bordugb0c110b2006-09-21 22:18:53 +040027
Sylvain Munaut1088a202007-09-16 20:53:25 +100028obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o
Michael Ellermanaaddd3e2008-06-24 11:32:21 +100029
30obj-y += code-patching.o
Michael Ellerman51c52e82008-06-24 11:32:36 +100031obj-y += feature-fixups.o
Michael Ellerman362e7702008-06-24 11:33:03 +100032obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o