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