diff options
author | Anton Blanchard <anton@samba.org> | 2013-09-22 22:04:51 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:48:39 -0400 |
commit | 7a332b0c9a59e0b0777dec55eefdda0f9a24ac52 (patch) | |
tree | 102250f85f5f245f5a208b76a7adae05a679368b /arch/powerpc/lib | |
parent | 52055d07ce0a465949552c9c5d65d2b8b37672c5 (diff) |
powerpc: Use generic checksum code in little endian
We need to fix some endian issues in our checksum code. For now
just enable the generic checksum routines for little endian builds.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r-- | arch/powerpc/lib/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 450433276699..33ab26112123 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile | |||
@@ -10,15 +10,20 @@ CFLAGS_REMOVE_code-patching.o = -pg | |||
10 | CFLAGS_REMOVE_feature-fixups.o = -pg | 10 | CFLAGS_REMOVE_feature-fixups.o = -pg |
11 | 11 | ||
12 | obj-y := string.o alloc.o \ | 12 | obj-y := string.o alloc.o \ |
13 | checksum_$(CONFIG_WORD_SIZE).o crtsavres.o | 13 | crtsavres.o |
14 | obj-$(CONFIG_PPC32) += div64.o copy_32.o | 14 | obj-$(CONFIG_PPC32) += div64.o copy_32.o |
15 | obj-$(CONFIG_HAS_IOMEM) += devres.o | 15 | obj-$(CONFIG_HAS_IOMEM) += devres.o |
16 | 16 | ||
17 | obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \ | 17 | obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \ |
18 | memcpy_64.o usercopy_64.o mem_64.o string.o \ | 18 | memcpy_64.o usercopy_64.o mem_64.o string.o \ |
19 | checksum_wrappers_64.o hweight_64.o \ | 19 | hweight_64.o \ |
20 | copyuser_power7.o string_64.o copypage_power7.o \ | 20 | copyuser_power7.o string_64.o copypage_power7.o \ |
21 | memcpy_power7.o | 21 | memcpy_power7.o |
22 | ifeq ($(CONFIG_GENERIC_CSUM),) | ||
23 | obj-y += checksum_$(CONFIG_WORD_SIZE).o | ||
24 | obj-$(CONFIG_PPC64) += checksum_wrappers_64.o | ||
25 | endif | ||
26 | |||
22 | obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o | 27 | obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o |
23 | 28 | ||
24 | ifeq ($(CONFIG_PPC64),y) | 29 | ifeq ($(CONFIG_PPC64),y) |