blob: 5bb89c828070173a3b20496435b65c3928f18515 [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 Blanchard8555a002006-06-10 20:23:54 +10007ifeq ($(CONFIG_PPC64),y)
8EXTRA_CFLAGS += -mno-minimal-toc
9endif
10
Steven Rostedtf1eecf02008-11-26 15:54:46 -050011CFLAGS_REMOVE_code-patching.o = -pg
12CFLAGS_REMOVE_feature-fixups.o = -pg
13
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100014obj-y := string.o alloc.o \
Stephen Rothwell7fca5dc2010-06-29 20:08:42 +000015 checksum_$(CONFIG_WORD_SIZE).o crtsavres.o
16obj-$(CONFIG_PPC32) += div64.o copy_32.o
Paul Mackerras0d4b6b92008-05-12 22:57:51 +100017obj-$(CONFIG_HAS_IOMEM) += devres.o
Paul Mackerras40ef8cb2005-10-10 22:50:37 +100018
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100019obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \
David S. Millerded220b2007-03-29 01:18:42 -070020 memcpy_64.o usercopy_64.o mem_64.o string.o
Paul Mackerras0016a4c2010-06-15 14:48:58 +100021obj-$(CONFIG_XMON) += sstep.o ldstfp.o
22obj-$(CONFIG_KPROBES) += sstep.o ldstfp.o
K.Prasad5aae8a52010-06-15 11:35:19 +053023obj-$(CONFIG_HAVE_HW_BREAKPOINT) += sstep.o ldstfp.o
Paul Mackerrasf78541dc2005-10-28 22:53:37 +100024
Stephen Rothwellecc81e02005-10-27 16:45:38 +100025ifeq ($(CONFIG_PPC64),y)
26obj-$(CONFIG_SMP) += locks.o
27endif
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