Root/
Source at commit 694c7fbe86b8a9c91392e505afcb9fcfc91deccc created 13 years 12 days ago. By Maarten ter Huurne, MIPS: JZ4740: Add cpufreq support | |
---|---|
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 | |
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 |
28 | |
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 |
32 | |
33 | LIBGCC_PATH := \ |
34 | $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name) |
35 | |
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 |
43 | |
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 |
53 | |
54 | head-y := arch/tile/kernel/head_$(BITS).o |
55 | |
56 | libs-y += arch/tile/lib/ |
57 | libs-y += $(LIBGCC_PATH) |
58 | |
59 | # See arch/tile/Kbuild for content of core part of the kernel |
60 | core-y += arch/tile/ |
61 | |
62 | core-$(CONFIG_TILE_GXIO) += arch/tile/gxio/ |
63 | |
64 | ifdef TILERA_ROOT |
65 | INSTALL_PATH ?= $(TILERA_ROOT)/tile/boot |
66 | endif |
67 | |
68 | install: |
69 | install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE) |
70 | install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE) |
71 | install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE) |
72 | |
73 | define archhelp |
74 | echo ' install - install kernel into $(INSTALL_PATH)' |
75 | endef |
76 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9