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 | |
Torsten Duwe | 9a7841a | 2016-03-03 15:26:58 +1100 | [diff] [blame] | 9 | CFLAGS_REMOVE_code-patching.o = $(CC_FLAGS_FTRACE) |
| 10 | CFLAGS_REMOVE_feature-fixups.o = $(CC_FLAGS_FTRACE) |
Steven Rostedt | f1eecf0 | 2008-11-26 15:54:46 -0500 | [diff] [blame] | 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),) |
Christophe Leroy | 03bc8b0 | 2015-09-22 16:34:23 +0200 | [diff] [blame] | 25 | obj-y += checksum_$(CONFIG_WORD_SIZE).o checksum_wrappers.o |
Anton Blanchard | 7a332b0 | 2013-09-23 12:04:51 +1000 | [diff] [blame] | 26 | endif |
| 27 | |
Suzuki K. Poulose | 5e249d4 | 2013-01-07 00:26:57 +0000 | [diff] [blame] | 28 | obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o |
Paul Mackerras | f78541dc | 2005-10-28 22:53:37 +1000 | [diff] [blame] | 29 | |
Sylvain Munaut | 1088a20 | 2007-09-16 20:53:25 +1000 | [diff] [blame] | 30 | obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o |
Michael Ellerman | aaddd3e | 2008-06-24 11:32:21 +1000 | [diff] [blame] | 31 | |
Michael Ellerman | 362e770 | 2008-06-24 11:33:03 +1000 | [diff] [blame] | 32 | obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o |
Anton Blanchard | ef1313d | 2013-10-14 21:03:58 +1100 | [diff] [blame] | 33 | |
| 34 | obj-$(CONFIG_ALTIVEC) += xor_vmx.o |
Anton Blanchard | 1fb3f5a | 2015-05-26 08:53:26 +1000 | [diff] [blame] | 35 | CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) |
Michael Ellerman | 1dcee55 | 2014-12-22 15:18:43 +1100 | [diff] [blame] | 36 | |
| 37 | obj-$(CONFIG_PPC64) += $(obj64-y) |