cciss: Mask off error bits of c->busaddr in cmd_special_free when calling pci_free_co...
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / tile / Makefile
blob17acce70569b01aaf7de554a66c0f7e6e8a47157
2 # This file is subject to the terms and conditions of the GNU General Public
3 # License. See the file "COPYING" in the main directory of this archive
4 # for more details.
6 # This file is included by the global makefile so that you can add your own
7 # architecture-specific flags and dependencies. Remember to do have actions
8 # for "archclean" and "archdep" for cleaning up and making dependencies for
9 # this architecture
11 # If building with TILERA_ROOT set (i.e. using the Tilera Multicore
12 # Development Environment) we can set CROSS_COMPILE based on that.
13 # If we're not cross-compiling, make sure we're on the right architecture.
14 # Only bother to test for a few common targets, to avoid useless errors.
15 ifeq ($(CROSS_COMPILE),)
16 ifdef TILERA_ROOT
17 CROSS_COMPILE := $(TILERA_ROOT)/bin/tile-
18 else
19 goals := $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all)
20 ifneq ($(strip $(filter vmlinux modules all,$(goals))),)
21 HOST_ARCH := $(shell uname -m)
22 ifneq ($(HOST_ARCH),$(ARCH))
23 $(error Set TILERA_ROOT or CROSS_COMPILE when building $(ARCH) on $(HOST_ARCH))
24 endif
25 endif
26 endif
27 endif
29 ifneq ($(CONFIG_DEBUG_EXTRA_FLAGS),"")
30 KBUILD_CFLAGS += $(CONFIG_DEBUG_EXTRA_FLAGS)
31 endif
33 LIBGCC_PATH := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
35 # Provide the path to use for "make defconfig".
36 KBUILD_DEFCONFIG := $(ARCH)_defconfig
38 # Used as a file extension when useful, e.g. head_$(BITS).o
39 # Not needed for (e.g.) "$(CC) -m32" since the compiler automatically
40 # uses the right default anyway.
41 export BITS
42 ifeq ($(CONFIG_TILEGX),y)
43 BITS := 64
44 else
45 BITS := 32
46 endif
48 head-y := arch/tile/kernel/head_$(BITS).o
50 libs-y += arch/tile/lib/
51 libs-y += $(LIBGCC_PATH)
53 # See arch/tile/Kbuild for content of core part of the kernel
54 core-y += arch/tile/
56 core-$(CONFIG_KVM) += arch/tile/kvm/
58 ifdef TILERA_ROOT
59 INSTALL_PATH ?= $(TILERA_ROOT)/tile/boot
60 endif
62 install:
63 install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE)
64 install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE)
65 install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE)
67 define archhelp
68 echo ' install - install kernel into $(INSTALL_PATH)'
69 endef