84f3fb7a2a
The traditional 68000 processors and the newer reduced instruction set ColdFire processors do not support the 32*32->64 multiply or the 64/32->32 divide instructions. This is not a difference based on the presence of a hardware MMU or not. Create a new config symbol to mark that a CPU type doesn't support the longer multiply/divide instructions. Use this then as a basis for using the fast 64bit based divide (in div64.h) and for linking in the extra libgcc functions that may be required (mulsi3, divsi3, etc). Signed-off-by: Greg Ungerer <gerg@uclinux.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
17 lines
350 B
Makefile
17 lines
350 B
Makefile
|
|
#
|
|
# Makefile for m68k-specific library files..
|
|
#
|
|
|
|
lib-y := ashldi3.o ashrdi3.o lshrdi3.o muldi3.o \
|
|
memcpy.o memset.o memmove.o
|
|
|
|
lib-$(CONFIG_MMU) += string.o uaccess.o
|
|
lib-$(CONFIG_CPU_HAS_NO_MULDIV64) += mulsi3.o divsi3.o udivsi3.o
|
|
lib-$(CONFIG_CPU_HAS_NO_MULDIV64) += modsi3.o umodsi3.o
|
|
|
|
ifndef CONFIG_GENERIC_CSUM
|
|
lib-y += checksum.o
|
|
endif
|
|
|