Back to home page

OSCL-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__
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 libs-y                          += arch/alpha/lib/
0042 
0043 # export what is needed by arch/alpha/boot/Makefile
0044 LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
0045 export LIBS_Y
0046 
0047 boot := arch/alpha/boot
0048 
0049 #Default target when executing make with no arguments
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