aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/Makefile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2010-05-28 23:09:12 -0400
committerChris Metcalf <cmetcalf@tilera.com>2010-06-04 17:11:18 -0400
commit867e359b97c970a60626d5d76bbe2a8fadbf38fb (patch)
treec5ccbb7f5172e8555977119608ecb1eee3cc37e3 /arch/tile/Makefile
parent5360bd776f73d0a7da571d72a09a03f237e99900 (diff)
arch/tile: core support for Tilera 32-bit chips.
This change is the core kernel support for TILEPro and TILE64 chips. No driver support (except the console driver) is included yet. This includes the relevant Linux headers in asm/; the low-level low-level "Tile architecture" headers in arch/, which are shared with the hypervisor, etc., and are build-system agnostic; and the relevant hypervisor headers in hv/. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/tile/Makefile')
-rw-r--r--arch/tile/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/arch/tile/Makefile b/arch/tile/Makefile
new file mode 100644
index 00000000000..07c4318c062
--- /dev/null
+++ b/arch/tile/Makefile
@@ -0,0 +1,52 @@
1#
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.
5#
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
10
11ifeq ($(CROSS_COMPILE),)
12# If building with TILERA_ROOT set (i.e. using the Tilera Multicore
13# Development Environment) we can set CROSS_COMPILE based on that.
14ifdef TILERA_ROOT
15CROSS_COMPILE = $(TILERA_ROOT)/bin/tile-
16endif
17endif
18
19# If we're not cross-compiling, make sure we're on the right architecture.
20ifeq ($(CROSS_COMPILE),)
21HOST_ARCH = $(shell uname -m)
22ifneq ($(HOST_ARCH),$(ARCH))
23$(error Set TILERA_ROOT or CROSS_COMPILE when building $(ARCH) on $(HOST_ARCH))
24endif
25endif
26
27
28KBUILD_CFLAGS += $(CONFIG_DEBUG_EXTRA_FLAGS)
29
30LIBGCC_PATH := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
31
32# Provide the path to use for "make defconfig".
33KBUILD_DEFCONFIG := $(ARCH)_defconfig
34
35# Used as a file extension when useful, e.g. head_$(BITS).o
36# Not needed for (e.g.) "$(CC) -m32" since the compiler automatically
37# uses the right default anyway.
38export BITS
39ifeq ($(CONFIG_TILEGX),y)
40BITS := 64
41else
42BITS := 32
43endif
44
45head-y := arch/tile/kernel/head_$(BITS).o
46
47libs-y += arch/tile/lib/
48libs-y += $(LIBGCC_PATH)
49
50
51# See arch/tile/Kbuild for content of core part of the kernel
52core-y += arch/tile/