Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 1 | # |
| 2 | # Makefile for ppc-specific library files.. |
| 3 | # |
| 4 | |
Michael Ellerman | ba55bd7 | 2009-06-09 20:48:51 +0000 | [diff] [blame] | 5 | subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror |
| 6 | |
Anton Blanchard | 1fbe9cf | 2012-11-26 17:41:08 +0000 | [diff] [blame] | 7 | ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) |
Anton Blanchard | 8555a00 | 2006-06-10 20:23:54 +1000 | [diff] [blame] | 8 | |
Steven Rostedt | f1eecf0 | 2008-11-26 15:54:46 -0500 | [diff] [blame] | 9 | CFLAGS_REMOVE_code-patching.o = -pg |
| 10 | CFLAGS_REMOVE_feature-fixups.o = -pg |
| 11 | |
Michael Ellerman | 564ec2f | 2014-12-22 15:14:24 +1100 | [diff] [blame] | 12 | obj-y += string.o alloc.o crtsavres.o ppc_ksyms.o code-patching.o \ |
| 13 | feature-fixups.o |
| 14 | |
Stephen Rothwell | 7fca5dc | 2010-06-29 20:08:42 +0000 | [diff] [blame] | 15 | obj-$(CONFIG_PPC32) += div64.o copy_32.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 16 | |
Michael Ellerman | 1dcee55 | 2014-12-22 15:18:43 +1100 | [diff] [blame] | 17 | obj64-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 | |
| 21 | obj64-$(CONFIG_SMP) += locks.o |
| 22 | obj64-$(CONFIG_ALTIVEC) += vmx-helper.o |
| 23 | |
Anton Blanchard | 7a332b0 | 2013-09-23 12:04:51 +1000 | [diff] [blame] | 24 | ifeq ($(CONFIG_GENERIC_CSUM),) |
| 25 | obj-y += checksum_$(CONFIG_WORD_SIZE).o |
| 26 | obj-$(CONFIG_PPC64) += checksum_wrappers_64.o |
| 27 | endif |
| 28 | |
Suzuki K. Poulose | 5e249d4 | 2013-01-07 00:26:57 +0000 | [diff] [blame] | 29 | obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o |
Paul Mackerras | f78541d | 2005-10-28 22:53:37 +1000 | [diff] [blame] | 30 | |
Sylvain Munaut | 1088a20 | 2007-09-16 20:53:25 +1000 | [diff] [blame] | 31 | obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o |
Michael Ellerman | aaddd3e | 2008-06-24 11:32:21 +1000 | [diff] [blame] | 32 | |
Michael Ellerman | 362e770 | 2008-06-24 11:33:03 +1000 | [diff] [blame] | 33 | obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o |
Anton Blanchard | ef1313d | 2013-10-14 21:03:58 +1100 | [diff] [blame] | 34 | |
| 35 | obj-$(CONFIG_ALTIVEC) += xor_vmx.o |
| 36 | CFLAGS_xor_vmx.o += -maltivec -mabi=altivec |
Michael Ellerman | 1dcee55 | 2014-12-22 15:18:43 +1100 | [diff] [blame] | 37 | |
| 38 | obj-$(CONFIG_PPC64) += $(obj64-y) |