ia64/linux-2.6.18-xen.hg

annotate arch/x86_64/Makefile @ 854:950b9eb27661

usbback: fix urb interval value for interrupt urbs.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 06 13:51:20 2009 +0100 (2009-04-06)
parents cc9a5c793b53
children
rev   line source
ian@0 1 #
ian@0 2 # x86_64/Makefile
ian@0 3 #
ian@0 4 # This file is included by the global makefile so that you can add your own
ian@0 5 # architecture-specific flags and dependencies. Remember to do have actions
ian@0 6 # for "archclean" and "archdep" for cleaning up and making dependencies for
ian@0 7 # this architecture
ian@0 8 #
ian@0 9 # This file is subject to the terms and conditions of the GNU General Public
ian@0 10 # License. See the file "COPYING" in the main directory of this archive
ian@0 11 # for more details.
ian@0 12 #
ian@0 13 # Copyright (C) 1994 by Linus Torvalds
ian@0 14 #
ian@0 15 # 19990713 Artur Skawina <skawina@geocities.com>
ian@0 16 # Added '-march' and '-mpreferred-stack-boundary' support
ian@0 17 # 20000913 Pavel Machek <pavel@suse.cz>
ian@0 18 # Converted for x86_64 architecture
ian@0 19 # 20010105 Andi Kleen, add IA32 compiler.
ian@0 20 # ....and later removed it again....
ian@0 21 #
ian@0 22 # $Id: Makefile,v 1.31 2002/03/22 15:56:07 ak Exp $
ian@0 23
ian@0 24 LDFLAGS := -m elf_x86_64
ian@0 25 OBJCOPYFLAGS := -O binary -R .note -R .comment -S
ian@0 26 LDFLAGS_vmlinux :=
ian@0 27 CHECKFLAGS += -D__x86_64__ -m64
ian@0 28
ian@0 29 cflags-y :=
ian@0 30 cflags-kernel-y :=
ian@0 31 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8)
ian@0 32 cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona)
ian@0 33 cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic)
ian@0 34
ian@0 35 cflags-y += -m64
ian@0 36 cflags-y += -mno-red-zone
ian@0 37 cflags-y += -mcmodel=kernel
ian@0 38 cflags-y += -pipe
ian@0 39 cflags-kernel-$(CONFIG_REORDER) += -ffunction-sections
ian@0 40 # this makes reading assembly source easier, but produces worse code
ian@0 41 # actually it makes the kernel smaller too.
ian@0 42 cflags-y += -fno-reorder-blocks
ian@0 43 cflags-y += -Wno-sign-compare
ian@0 44 ifneq ($(CONFIG_UNWIND_INFO),y)
ian@0 45 cflags-y += -fno-asynchronous-unwind-tables
ian@0 46 endif
ian@0 47 ifneq ($(CONFIG_DEBUG_INFO),y)
ian@0 48 # -fweb shrinks the kernel a bit, but the difference is very small
ian@0 49 # it also messes up debugging, so don't use it for now.
ian@0 50 #cflags-y += $(call cc-option,-fweb)
ian@0 51 endif
ian@0 52 # -funit-at-a-time shrinks the kernel .text considerably
ian@0 53 # unfortunately it makes reading oopses harder.
ian@0 54 cflags-y += $(call cc-option,-funit-at-a-time)
ian@0 55 # prevent gcc from generating any FP code by mistake
ian@0 56 cflags-y += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
ian@0 57
ian@0 58 CFLAGS += $(cflags-y)
ian@0 59 CFLAGS_KERNEL += $(cflags-kernel-y)
ian@0 60 AFLAGS += -m64
ian@0 61
ian@0 62 head-y := arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o
ian@0 63
ian@0 64 libs-y += arch/x86_64/lib/
ian@0 65 core-y += arch/x86_64/kernel/ \
ian@0 66 arch/x86_64/mm/ \
ian@0 67 arch/x86_64/crypto/
ian@0 68 core-$(CONFIG_IA32_EMULATION) += arch/x86_64/ia32/
ian@0 69 drivers-$(CONFIG_PCI) += arch/x86_64/pci/
ian@0 70 drivers-$(CONFIG_OPROFILE) += arch/x86_64/oprofile/
ian@0 71
ian@0 72 boot := arch/x86_64/boot
ian@0 73
kfraser@215 74 PHONY += bzImage bzlilo vmlinuz install archmrproper \
ian@0 75 fdimage fdimage144 fdimage288 isoimage archclean
ian@0 76
ian@26 77 ifdef CONFIG_XEN
keir@342 78 CPPFLAGS := -D__XEN_INTERFACE_VERSION__=$(CONFIG_XEN_INTERFACE_VERSION) \
keir@342 79 -Iinclude$(if $(KBUILD_SRC),2)/asm/mach-xen $(CPPFLAGS)
kfraser@52 80 LDFLAGS_vmlinux := -e startup_64
ian@26 81 #Default target when executing "make"
ian@26 82 all: vmlinuz
ian@26 83
kfraser@215 84 BOOTIMAGE := $(boot)/vmlinuz
kfraser@215 85 KBUILD_IMAGE := $(BOOTIMAGE)
kfraser@215 86
ian@26 87 vmlinuz: vmlinux
kfraser@215 88 $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
ian@26 89 else
ian@0 90 #Default target when executing "make"
ian@0 91 all: bzImage
ian@0 92
ian@0 93 BOOTIMAGE := arch/x86_64/boot/bzImage
ian@0 94 KBUILD_IMAGE := $(BOOTIMAGE)
ian@0 95
ian@0 96 bzImage: vmlinux
ian@0 97 $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
ian@0 98
ian@0 99 bzlilo: vmlinux
ian@0 100 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zlilo
ian@0 101
ian@0 102 bzdisk: vmlinux
ian@0 103 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zdisk
ian@0 104
ian@0 105 fdimage fdimage144 fdimage288 isoimage: vmlinux
ian@0 106 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@
kfraser@215 107 endif
ian@0 108
ian@0 109 install:
ian@0 110 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@
ian@0 111
ian@0 112 archclean:
ian@0 113 $(Q)$(MAKE) $(clean)=$(boot)
ian@0 114
ian@0 115 define archhelp
ian@0 116 echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
ian@0 117 echo ' install - Install kernel using'
ian@0 118 echo ' (your) ~/bin/installkernel or'
ian@0 119 echo ' (distribution) /sbin/installkernel or'
ian@0 120 echo ' install to $$(INSTALL_PATH) and run lilo'
ian@0 121 echo ' bzdisk - Create a boot floppy in /dev/fd0'
ian@0 122 echo ' fdimage - Create a boot floppy image'
ian@0 123 echo ' isoimage - Create a boot CD-ROM image'
ian@0 124 endef
ian@0 125
ian@0 126 CLEAN_FILES += arch/$(ARCH)/boot/fdimage \
ian@0 127 arch/$(ARCH)/boot/image.iso \
ian@0 128 arch/$(ARCH)/boot/mtools.conf
ian@0 129
ian@0 130