821f3eff7c
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits) kbuild: introduce ccflags-y, asflags-y and ldflags-y kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP kbuild: enable use of AFLAGS and CFLAGS on commandline kbuild: enable 'make AFLAGS=...' to add additional options to AS kbuild: fix AFLAGS use in h8300 and m68knommu kbuild: check for wrong use of CFLAGS kbuild: enable 'make CFLAGS=...' to add additional options to CC kbuild: fix up CFLAGS usage kbuild: make modpost detect unterminated device id lists kbuild: call export_report from the Makefile kbuild: move Kai Germaschewski to CREDITS kconfig/menuconfig: distinguish between selected-by-another options and comments kconfig: tristate choices with mixed tristate and boolean values include/linux/Kbuild: remove duplicate entries kbuild: kill backward compatibility checks kbuild: kill EXTRA_ARFLAGS kbuild: fix documentation in makefiles.txt kbuild: call make once for all targets when O=.. is used kbuild: pass -g to assembler under CONFIG_DEBUG_INFO kbuild: update _shipped files for kconfig syntax cleanup ... Fix up conflicts in arch/um/sys-{x86_64,i386}/Makefile manually.
68 lines
2.2 KiB
Makefile
68 lines
2.2 KiB
Makefile
#
|
|
# 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
|
|
CHECKFLAGS += -D__alpha__ -m64
|
|
cflags-y := -pipe -mno-fp-regs -ffixed-8 -msmall-data
|
|
|
|
cpuflags-$(CONFIG_ALPHA_EV67) := -mcpu=ev67
|
|
cpuflags-$(CONFIG_ALPHA_EV6) := -mcpu=ev6
|
|
cpuflags-$(CONFIG_ALPHA_POLARIS) := -mcpu=pca56
|
|
cpuflags-$(CONFIG_ALPHA_SX164) := -mcpu=pca56
|
|
cpuflags-$(CONFIG_ALPHA_EV56) := -mcpu=ev56
|
|
cpuflags-$(CONFIG_ALPHA_EV5) := -mcpu=ev5
|
|
cpuflags-$(CONFIG_ALPHA_EV4) := -mcpu=ev4
|
|
# If GENERIC, make sure to turn off any instruction set extensions that
|
|
# the host compiler might have on by default. Given that EV4 and EV5
|
|
# have the same instruction set, prefer EV5 because an EV5 schedule is
|
|
# more likely to keep an EV4 processor busy than vice-versa.
|
|
cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev5
|
|
|
|
cflags-y += $(cpuflags-y)
|
|
|
|
|
|
# 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.
|
|
KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
|
|
|
|
head-y := arch/alpha/kernel/head.o
|
|
|
|
core-y += arch/alpha/kernel/ arch/alpha/mm/
|
|
core-$(CONFIG_MATHEMU) += arch/alpha/math-emu/
|
|
drivers-$(CONFIG_OPROFILE) += arch/alpha/oprofile/
|
|
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)/$@
|
|
|
|
archclean:
|
|
$(Q)$(MAKE) $(clean)=$(boot)
|
|
|
|
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
|