966d905634
This gives better heuristics for the cost of a multiply (fixed 5 cycles), rather than the 'ultrasparc' setting (variable, and unpredictable if the second argument is non-constant). Example code size savings: text data bss dec hex filename 3823690 304040 448880 4576610 45d562 vmlinux 3824521 304040 448880 4577441 45d8a1 vmlinux.orig Signed-off-by: David S. Miller <davem@davemloft.net>
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $Id: Makefile,v 1.52 2002/02/09 19:49:31 davem Exp $
|
|
# sparc64/Makefile
|
|
#
|
|
# Makefile for the architecture dependent flags and dependencies on the
|
|
# 64-bit Sparc.
|
|
#
|
|
# Copyright (C) 1996,1998 David S. Miller (davem@caip.rutgers.edu)
|
|
# Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
|
|
#
|
|
|
|
CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -m64
|
|
|
|
CPPFLAGS_vmlinux.lds += -Usparc
|
|
|
|
LDFLAGS := -m elf64_sparc
|
|
|
|
KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
|
|
-ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
|
|
-Wa,--undeclared-regs
|
|
KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3)
|
|
KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs
|
|
|
|
ifeq ($(CONFIG_MCOUNT),y)
|
|
KBUILD_CFLAGS += -pg
|
|
endif
|
|
|
|
head-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o
|
|
|
|
core-y += arch/sparc64/kernel/ arch/sparc64/mm/
|
|
core-$(CONFIG_SOLARIS_EMUL) += arch/sparc64/solaris/
|
|
core-y += arch/sparc64/math-emu/
|
|
libs-y += arch/sparc64/prom/ arch/sparc64/lib/
|
|
drivers-$(CONFIG_OPROFILE) += arch/sparc64/oprofile/
|
|
|
|
boot := arch/sparc64/boot
|
|
|
|
image tftpboot.img vmlinux.aout: vmlinux
|
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
|
|
|
archclean:
|
|
$(Q)$(MAKE) $(clean)=$(boot)
|
|
|
|
define archhelp
|
|
echo '* vmlinux - Standard sparc64 kernel'
|
|
echo ' vmlinux.aout - a.out kernel for sparc64'
|
|
echo ' tftpboot.img - Image prepared for tftp'
|
|
endef
|
|
|