Skip to content

Commit 593d33f

Browse files
committed
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>
1 parent f71baa1 commit 593d33f

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎arch/mips/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ obj- := $(platform-)
1616

1717
obj-y += kernel/
1818
obj-y += mm/
19-
obj-y += math-emu/
2019

2120
ifdef CONFIG_KVM
2221
obj-y += kvm/

‎arch/mips/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ OBJCOPYFLAGS += --remove-section=.reginfo
251251
head-y := arch/mips/kernel/head.o
252252

253253
libs-y += arch/mips/lib/
254+
libs-y += arch/mips/math-emu/
254255

255256
# See arch/mips/Kbuild for content of core part of the kernel
256257
core-y += arch/mips/

‎arch/mips/math-emu/Makefile‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# Makefile for the Linux/MIPS kernel FPU emulation.
33
#
44

5-
obj-y := cp1emu.o ieee754d.o ieee754dp.o ieee754sp.o ieee754.o \
6-
ieee754xcpt.o dp_div.o dp_mul.o dp_sub.o dp_add.o dp_fsp.o \
7-
dp_cmp.o dp_simple.o dp_tint.o dp_fint.o dp_tlong.o dp_flong.o \
8-
sp_div.o sp_mul.o sp_sub.o sp_add.o sp_fdp.o sp_cmp.o sp_simple.o \
9-
sp_tint.o sp_fint.o sp_tlong.o sp_flong.o dp_sqrt.o sp_sqrt.o \
10-
kernel_linkage.o dsemul.o
5+
obj-y += cp1emu.o ieee754dp.o ieee754sp.o ieee754.o ieee754xcpt.o dp_div.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_fint.o dp_tlong.o dp_flong.o sp_div.o sp_mul.o sp_sub.o \
8+
sp_add.o sp_fdp.o sp_cmp.o sp_simple.o sp_tint.o sp_fint.o \
9+
sp_tlong.o sp_flong.o kernel_linkage.o dsemul.o
10+
11+
lib-y += ieee754d.o dp_sqrt.o sp_sqrt.o
1112

1213
obj-$(CONFIG_DEBUG_FS) += me-debugfs.o

0 commit comments

Comments
 (0)