diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-21 08:13:34 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:54 -0500 |
commit | c2f1755becdc7c78ca07a516d358d9fa7a0a2707 (patch) | |
tree | d99afdda49e85a6d3e33e1e4830900eb0505bad5 | |
parent | e2e96299a7c3257a6df36659414d1f6fbda53511 (diff) |
sh: Tidy up KBUILD_IMAGE for sh64.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/Makefile | 29 |
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 | # |
16 | isa-y := any | 12 | isa-y := any |
17 | isa-$(CONFIG_SH_DSP) := sh | 13 | isa-$(CONFIG_SH_DSP) := sh |
@@ -67,16 +63,15 @@ cflags-y += $(isaflags-y) -ffreestanding | |||
67 | cflags-$(CONFIG_MORE_COMPILE_OPTIONS) += \ | 63 | cflags-$(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 | ||
70 | OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -R .stab -R .stabstr -S | 66 | OBJCOPYFLAGS := -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 | 70 | defaultimage-$(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 | # | ||
77 | KBUILD_DEFCONFIG := r7780rp_defconfig | ||
78 | 71 | ||
79 | KBUILD_IMAGE := arch/sh/boot/zImage | 72 | # Set some sensible Kbuild defaults |
73 | KBUILD_DEFCONFIG := r7780rp_defconfig | ||
74 | KBUILD_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 | |||
214 | maketools: include/linux/version.h FORCE | 209 | maketools: 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 | ||
217 | all: zImage | 212 | all: $(KBUILD_IMAGE) |
218 | 213 | ||
219 | zImage uImage uImage.srec vmlinux.srec: vmlinux | 214 | zImage uImage uImage.srec vmlinux.srec: vmlinux |
220 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 215 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |