aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-24 19:52:46 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-23 09:11:14 -0400
commit593d33fe334761853890f2f84ed41e7c24051de2 (patch)
tree287e46a176c1f28b2676b1efee983542113d8388 /arch
parentf71baa1168ec3440f51e616c107a6615f5d752f8 (diff)
MIPS: math-emu: Move various objects into an ar library.
ieee754d.o contains only debug code and dp_sqrt.o and sp_sqrt.o contain code which for MIPS I/II/III systems we don't want to link. Again the savings can be considerable for some systems: $ mips-linux-size --totals ieee754d.o dp_sqrt.o sp_sqrt.o text data bss dec hex filename 1624 0 0 1624 658 ieee754d.o 2016 0 0 2016 7e0 dp_sqrt.o 736 0 0 736 2e0 sp_sqrt.o 4376 0 0 4376 1118 (TOTALS) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/Kbuild1
-rw-r--r--arch/mips/Makefile1
-rw-r--r--arch/mips/math-emu/Makefile13
3 files changed, 8 insertions, 7 deletions
diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild
index d2cfe45f332b..cc39966ca63d 100644
--- a/arch/mips/Kbuild
+++ b/arch/mips/Kbuild
@@ -16,7 +16,6 @@ obj- := $(platform-)
16 16
17obj-y += kernel/ 17obj-y += kernel/
18obj-y += mm/ 18obj-y += mm/
19obj-y += math-emu/
20 19
21ifdef CONFIG_KVM 20ifdef CONFIG_KVM
22obj-y += kvm/ 21obj-y += kvm/
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 1a5b4032cb66..4852ae97e7df 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -251,6 +251,7 @@ OBJCOPYFLAGS += --remove-section=.reginfo
251head-y := arch/mips/kernel/head.o 251head-y := arch/mips/kernel/head.o
252 252
253libs-y += arch/mips/lib/ 253libs-y += arch/mips/lib/
254libs-y += arch/mips/math-emu/
254 255
255# See arch/mips/Kbuild for content of core part of the kernel 256# See arch/mips/Kbuild for content of core part of the kernel
256core-y += arch/mips/ 257core-y += arch/mips/
diff --git a/arch/mips/math-emu/Makefile b/arch/mips/math-emu/Makefile
index 363ce9bd82ea..016736ed304c 100644
--- a/arch/mips/math-emu/Makefile
+++ b/arch/mips/math-emu/Makefile
@@ -2,11 +2,12 @@
2# Makefile for the Linux/MIPS kernel FPU emulation. 2# Makefile for the Linux/MIPS kernel FPU emulation.
3# 3#
4 4
5obj-y := cp1emu.o ieee754d.o ieee754dp.o ieee754sp.o ieee754.o \ 5obj-y += cp1emu.o ieee754dp.o ieee754sp.o ieee754.o ieee754xcpt.o dp_div.o \
6 ieee754xcpt.o dp_div.o dp_mul.o dp_sub.o dp_add.o dp_fsp.o \ 6 dp_mul.o dp_sub.o dp_add.o dp_fsp.o dp_cmp.o dp_simple.o dp_tint.o \
7 dp_cmp.o dp_simple.o dp_tint.o dp_fint.o dp_tlong.o dp_flong.o \ 7 dp_fint.o dp_tlong.o dp_flong.o sp_div.o sp_mul.o sp_sub.o \
8 sp_div.o sp_mul.o sp_sub.o sp_add.o sp_fdp.o sp_cmp.o sp_simple.o \ 8 sp_add.o sp_fdp.o sp_cmp.o sp_simple.o sp_tint.o sp_fint.o \
9 sp_tint.o sp_fint.o sp_tlong.o sp_flong.o dp_sqrt.o sp_sqrt.o \ 9 sp_tlong.o sp_flong.o kernel_linkage.o dsemul.o
10 kernel_linkage.o dsemul.o 10
11lib-y += ieee754d.o dp_sqrt.o sp_sqrt.o
11 12
12obj-$(CONFIG_DEBUG_FS) += me-debugfs.o 13obj-$(CONFIG_DEBUG_FS) += me-debugfs.o