2005-04-17 02:20:36 +04:00
# 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
2008-07-08 00:30:35 +04:00
# Undefine sparc when processing vmlinux.lds - it is used
# And teach CPP we are doing 64 bit builds (for this case)
CPPFLAGS_vmlinux.lds += -m64 -Usparc
2005-04-17 02:20:36 +04:00
LDFLAGS := -m elf64_sparc
2008-02-14 11:37:21 +03:00
KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu= ultrasparc -mcmodel= medlow \
-ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
-Wa,--undeclared-regs
2008-02-14 11:58:44 +03:00
KBUILD_CFLAGS += $( call cc-option,-mtune= ultrasparc3)
2008-02-14 11:37:21 +03:00
KBUILD_AFLAGS += -m64 -mcpu= ultrasparc -Wa,--undeclared-regs
2005-04-17 02:20:36 +04:00
i f e q ( $( CONFIG_MCOUNT ) , y )
2007-10-15 00:21:35 +04:00
KBUILD_CFLAGS += -pg
2005-04-17 02:20:36 +04:00
e n d i f
head-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o
core-y += arch/sparc64/kernel/ arch/sparc64/mm/
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)
d e f i n e a r c h h e l p
echo '* vmlinux - Standard sparc64 kernel'
echo ' vmlinux.aout - a.out kernel for sparc64'
echo ' tftpboot.img - Image prepared for tftp'
e n d e f