aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-21 08:13:34 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:54 -0500
commitc2f1755becdc7c78ca07a516d358d9fa7a0a2707 (patch)
treed99afdda49e85a6d3e33e1e4830900eb0505bad5
parente2e96299a7c3257a6df36659414d1f6fbda53511 (diff)
sh: Tidy up KBUILD_IMAGE for sh64.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/Makefile29
1 files changed, 12 insertions, 17 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index e08d4d27d8d6..3825e226dd64 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -1,17 +1,13 @@
1# $Id: Makefile,v 1.35 2004/04/15 03:39:20 sugioka Exp $
2# 1#
3# This file is subject to the terms and conditions of the GNU General Public 2# arch/sh/Makefile
4# License. See the file "COPYING" in the main directory of this archive
5# for more details.
6# 3#
7# Copyright (C) 1999 Kaz Kojima 4# Copyright (C) 1999 Kaz Kojima
8# Copyright (C) 2002, 2003, 2004 Paul Mundt 5# Copyright (C) 2002, 2003, 2004 Paul Mundt
9# Copyright (C) 2002 M. R. Brown 6# Copyright (C) 2002 M. R. Brown
10# 7#
11# This file is included by the global makefile so that you can add your own 8# This file is subject to the terms and conditions of the GNU General Public
12# architecture-specific flags and dependencies. Remember to do have actions 9# License. See the file "COPYING" in the main directory of this archive
13# for "archclean" and "archdep" for cleaning up and making dependencies for 10# for more details.
14# this architecture
15# 11#
16isa-y := any 12isa-y := any
17isa-$(CONFIG_SH_DSP) := sh 13isa-$(CONFIG_SH_DSP) := sh
@@ -67,16 +63,15 @@ cflags-y += $(isaflags-y) -ffreestanding
67cflags-$(CONFIG_MORE_COMPILE_OPTIONS) += \ 63cflags-$(CONFIG_MORE_COMPILE_OPTIONS) += \
68 $(shell echo $(CONFIG_COMPILE_OPTIONS) | sed -e 's/"//g') 64 $(shell echo $(CONFIG_COMPILE_OPTIONS) | sed -e 's/"//g')
69 65
70OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -R .stab -R .stabstr -S 66OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment \
67 -R .stab -R .stabstr -S
71 68
72# 69# Give the various platforms the opportunity to set default image types
73# arch/sh/defconfig doesn't reflect any real hardware, and as such should 70defaultimage-$(CONFIG_SUPERH32) := arch/sh/boot/zImage
74# never be used by anyone. Use a board-specific defconfig that has a
75# reasonable chance of being current instead.
76#
77KBUILD_DEFCONFIG := r7780rp_defconfig
78 71
79KBUILD_IMAGE := arch/sh/boot/zImage 72# Set some sensible Kbuild defaults
73KBUILD_DEFCONFIG := r7780rp_defconfig
74KBUILD_IMAGE := $(defaultimage-y)
80 75
81# 76#
82# Choosing incompatible machines durings configuration will result in 77# Choosing incompatible machines durings configuration will result in
@@ -214,7 +209,7 @@ PHONY += maketools FORCE
214maketools: include/linux/version.h FORCE 209maketools: include/linux/version.h FORCE
215 $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h 210 $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h
216 211
217all: zImage 212all: $(KBUILD_IMAGE)
218 213
219zImage uImage uImage.srec vmlinux.srec: vmlinux 214zImage uImage uImage.srec vmlinux.srec: vmlinux
220 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 215 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@