mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / tile / Makefile
blob8fa0befba32b42d8ab438af8f942bb0bb3f4e9d5
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 # The tile compiler may emit .eh_frame information for backtracing.
30 # In kernel modules, this causes load failures due to unsupported relocations.
31 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
33 LIBGCC_PATH := \
34 $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name)
36 # Provide the path to use for "make defconfig".
37 # We default to the newer TILE-Gx architecture if only "tile" is given.
38 ifeq ($(ARCH),tile)
39 KBUILD_DEFCONFIG := tilegx_defconfig
40 else
41 KBUILD_DEFCONFIG := $(ARCH)_defconfig
42 endif
44 # Used as a file extension when useful, e.g. head_$(BITS).o
45 # Not needed for (e.g.) "$(CC) -m32" since the compiler automatically
46 # uses the right default anyway.
47 export BITS
48 ifeq ($(CONFIG_TILEGX),y)
49 BITS := 64
50 else
51 BITS := 32
52 endif
54 CHECKFLAGS += -m$(BITS)
56 head-y := arch/tile/kernel/head_$(BITS).o
58 libs-y += arch/tile/lib/
59 libs-y += $(LIBGCC_PATH)
61 # See arch/tile/Kbuild for content of core part of the kernel
62 core-y += arch/tile/
64 core-$(CONFIG_TILE_GXIO) += arch/tile/gxio/
66 ifdef TILERA_ROOT
67 INSTALL_PATH ?= $(TILERA_ROOT)/tile/boot
68 endif
70 install:
71 install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE)
72 install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE)
73 install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE)
75 define archhelp
76 echo ' install - install kernel into $(INSTALL_PATH)'
77 endef