2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# alpha/Makefile
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
|
|
# for more details.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1994 by Linus Torvalds
|
|
|
|
#
|
|
|
|
|
|
|
|
NM := $(NM) -B
|
|
|
|
|
|
|
|
LDFLAGS_vmlinux := -static -N #-relax
|
2018-05-31 04:48:38 +08:00
|
|
|
CHECKFLAGS += -D__alpha__
|
2013-04-07 17:36:10 +08:00
|
|
|
cflags-y := -pipe -mno-fp-regs -ffixed-8
|
2008-06-21 07:26:21 +08:00
|
|
|
cflags-y += $(call cc-option, -fno-jump-tables)
|
2007-10-16 16:26:33 +08:00
|
|
|
|
2007-12-18 08:19:57 +08:00
|
|
|
cpuflags-$(CONFIG_ALPHA_EV56) := -mcpu=ev56
|
2007-10-16 16:26:33 +08:00
|
|
|
cpuflags-$(CONFIG_ALPHA_POLARIS) := -mcpu=pca56
|
|
|
|
cpuflags-$(CONFIG_ALPHA_SX164) := -mcpu=pca56
|
2007-12-18 08:19:57 +08:00
|
|
|
cpuflags-$(CONFIG_ALPHA_EV6) := -mcpu=ev6
|
|
|
|
cpuflags-$(CONFIG_ALPHA_EV67) := -mcpu=ev67
|
2007-10-16 16:26:33 +08:00
|
|
|
# If GENERIC, make sure to turn off any instruction set extensions that
|
2023-12-14 01:00:54 +08:00
|
|
|
# the host compiler might have on by default.
|
|
|
|
cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev56 -mtune=ev6
|
2007-10-16 16:26:33 +08:00
|
|
|
|
|
|
|
cflags-y += $(cpuflags-y)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
# For TSUNAMI, we must have the assembler not emulate our instructions.
|
|
|
|
# The same is true for IRONGATE, POLARIS, PYXIS.
|
|
|
|
# BWX is most important, but we don't really want any emulation ever.
|
2007-10-15 04:21:35 +08:00
|
|
|
KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
libs-y += arch/alpha/lib/
|
|
|
|
|
|
|
|
# export what is needed by arch/alpha/boot/Makefile
|
|
|
|
LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
|
|
|
|
export LIBS_Y
|
|
|
|
|
|
|
|
boot := arch/alpha/boot
|
|
|
|
|
|
|
|
#Default target when executing make with no arguments
|
|
|
|
all boot: $(boot)/vmlinux.gz
|
|
|
|
|
|
|
|
$(boot)/vmlinux.gz: vmlinux
|
|
|
|
$(Q)$(MAKE) $(build)=$(boot) $@
|
|
|
|
|
|
|
|
bootimage bootpfile bootpzfile: vmlinux
|
|
|
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
|
|
|
|
2018-11-13 17:31:53 +08:00
|
|
|
archheaders:
|
|
|
|
$(Q)$(MAKE) $(build)=arch/alpha/kernel/syscalls all
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
define archhelp
|
|
|
|
echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
|
|
|
|
echo ' bootimage - SRM bootable image (arch/alpha/boot/bootimage)'
|
|
|
|
echo ' bootpfile - BOOTP bootable image (arch/alpha/boot/bootpfile)'
|
|
|
|
echo ' bootpzfile - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
|
|
|
|
endef
|