Back to home page

LXR

 
 

    


0001 #
0002 # alpha/Makefile
0003 #
0004 # This file is subject to the terms and conditions of the GNU General Public
0005 # License.  See the file "COPYING" in the main directory of this archive
0006 # for more details.
0007 #
0008 # Copyright (C) 1994 by Linus Torvalds
0009 #
0010 
0011 NM := $(NM) -B
0012 
0013 LDFLAGS_vmlinux := -static -N #-relax
0014 CHECKFLAGS      += -D__alpha__ -m64
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 # If GENERIC, make sure to turn off any instruction set extensions that
0026 # the host compiler might have on by default.  Given that EV4 and EV5
0027 # have the same instruction set, prefer EV5 because an EV5 schedule is
0028 # more likely to keep an EV4 processor busy than vice-versa.
0029 cpuflags-$(CONFIG_ALPHA_GENERIC)        := -mcpu=ev5
0030 
0031 cflags-y                                += $(cpuflags-y)
0032 
0033 
0034 # For TSUNAMI, we must have the assembler not emulate our instructions.
0035 # The same is true for IRONGATE, POLARIS, PYXIS.
0036 # BWX is most important, but we don't really want any emulation ever.
0037 KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
0038 
0039 head-y := arch/alpha/kernel/head.o
0040 
0041 core-y                          += arch/alpha/kernel/ arch/alpha/mm/
0042 core-$(CONFIG_MATHEMU)          += arch/alpha/math-emu/
0043 drivers-$(CONFIG_OPROFILE)      += arch/alpha/oprofile/
0044 libs-y                          += arch/alpha/lib/
0045 
0046 # export what is needed by arch/alpha/boot/Makefile
0047 LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
0048 export LIBS_Y
0049 
0050 boot := arch/alpha/boot
0051 
0052 #Default target when executing make with no arguments
0053 all boot: $(boot)/vmlinux.gz
0054 
0055 $(boot)/vmlinux.gz: vmlinux
0056         $(Q)$(MAKE) $(build)=$(boot) $@
0057 
0058 bootimage bootpfile bootpzfile: vmlinux
0059         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
0060 
0061 archclean:
0062         $(Q)$(MAKE) $(clean)=$(boot)
0063 
0064 define archhelp
0065   echo '* boot          - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
0066   echo '  bootimage     - SRM bootable image (arch/alpha/boot/bootimage)'
0067   echo '  bootpfile     - BOOTP bootable image (arch/alpha/boot/bootpfile)'
0068   echo '  bootpzfile    - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
0069 endef