0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 NM := $(NM) -B
0012
0013 LDFLAGS_vmlinux := -static -N
0014 CHECKFLAGS += -D__alpha__
0015 cflags-y := -pipe -mno-fp-regs -ffixed-8
0016 cflags-y += $(call cc-option, -fno-jump-tables)
0017
0018 cpuflags-$(CONFIG_ALPHA_EV4) := -mcpu=ev4
0019 cpuflags-$(CONFIG_ALPHA_EV5) := -mcpu=ev5
0020 cpuflags-$(CONFIG_ALPHA_EV56) := -mcpu=ev56
0021 cpuflags-$(CONFIG_ALPHA_POLARIS) := -mcpu=pca56
0022 cpuflags-$(CONFIG_ALPHA_SX164) := -mcpu=pca56
0023 cpuflags-$(CONFIG_ALPHA_EV6) := -mcpu=ev6
0024 cpuflags-$(CONFIG_ALPHA_EV67) := -mcpu=ev67
0025
0026
0027
0028
0029 cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev5
0030
0031 cflags-y += $(cpuflags-y)
0032
0033
0034
0035
0036
0037 KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
0038
0039 head-y := arch/alpha/kernel/head.o
0040
0041 libs-y += arch/alpha/lib/
0042
0043
0044 LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
0045 export LIBS_Y
0046
0047 boot := arch/alpha/boot
0048
0049
0050 all boot: $(boot)/vmlinux.gz
0051
0052 $(boot)/vmlinux.gz: vmlinux
0053 $(Q)$(MAKE) $(build)=$(boot) $@
0054
0055 bootimage bootpfile bootpzfile: vmlinux
0056 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
0057
0058 archheaders:
0059 $(Q)$(MAKE) $(build)=arch/alpha/kernel/syscalls all
0060
0061 define archhelp
0062 echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
0063 echo ' bootimage - SRM bootable image (arch/alpha/boot/bootimage)'
0064 echo ' bootpfile - BOOTP bootable image (arch/alpha/boot/bootpfile)'
0065 echo ' bootpzfile - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
0066 endef