aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2010-10-14 15:16:59 -0400
committerChris Metcalf <cmetcalf@tilera.com>2010-10-14 15:16:59 -0400
commit45123f7e74e004848da765f3182cd401a38d354d (patch)
treef546a5d605f73b4d546da156009737ef234fdc74 /arch/tile
parenta4dbc5ee52e8741522a2f87067b80116c6c7a934 (diff)
arch/tile: various top-level Makefile cleanups
Avoid a compile failure if CONFIG_DEBUG_EXTRA_FLAGS is empty (""); provide an "install" hook as well as a matching archhelp target; and some minor whitespace cleanup. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/tile/Makefile b/arch/tile/Makefile
index fd8f6bb5face..a700f7f6cf5b 100644
--- a/arch/tile/Makefile
+++ b/arch/tile/Makefile
@@ -26,8 +26,9 @@ $(error Set TILERA_ROOT or CROSS_COMPILE when building $(ARCH) on $(HOST_ARCH))
26 endif 26 endif
27endif 27endif
28 28
29 29ifneq ($(CONFIG_DEBUG_EXTRA_FLAGS),"")
30KBUILD_CFLAGS += $(CONFIG_DEBUG_EXTRA_FLAGS) 30KBUILD_CFLAGS += $(CONFIG_DEBUG_EXTRA_FLAGS)
31endif
31 32
32LIBGCC_PATH := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 33LIBGCC_PATH := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
33 34
@@ -49,6 +50,18 @@ head-y := arch/tile/kernel/head_$(BITS).o
49libs-y += arch/tile/lib/ 50libs-y += arch/tile/lib/
50libs-y += $(LIBGCC_PATH) 51libs-y += $(LIBGCC_PATH)
51 52
52
53# See arch/tile/Kbuild for content of core part of the kernel 53# See arch/tile/Kbuild for content of core part of the kernel
54core-y += arch/tile/ 54core-y += arch/tile/
55
56ifdef TILERA_ROOT
57INSTALL_PATH ?= $(TILERA_ROOT)/tile/boot
58endif
59
60install:
61 install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE)
62 install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE)
63 install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE)
64
65define archhelp
66 echo ' install - install kernel into $(INSTALL_PATH)'
67endef