sh: Tidy up KBUILD_IMAGE for sh64.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
e2e96299a7
commit
c2f1755bec
1 changed files with 12 additions and 17 deletions
|
@ -1,17 +1,13 @@
|
||||||
# $Id: Makefile,v 1.35 2004/04/15 03:39:20 sugioka Exp $
|
|
||||||
#
|
#
|
||||||
# This file is subject to the terms and conditions of the GNU General Public
|
# arch/sh/Makefile
|
||||||
# License. See the file "COPYING" in the main directory of this archive
|
|
||||||
# for more details.
|
|
||||||
#
|
#
|
||||||
# Copyright (C) 1999 Kaz Kojima
|
# Copyright (C) 1999 Kaz Kojima
|
||||||
# Copyright (C) 2002, 2003, 2004 Paul Mundt
|
# Copyright (C) 2002, 2003, 2004 Paul Mundt
|
||||||
# Copyright (C) 2002 M. R. Brown
|
# Copyright (C) 2002 M. R. Brown
|
||||||
#
|
#
|
||||||
# This file is included by the global makefile so that you can add your own
|
# This file is subject to the terms and conditions of the GNU General Public
|
||||||
# architecture-specific flags and dependencies. Remember to do have actions
|
# License. See the file "COPYING" in the main directory of this archive
|
||||||
# for "archclean" and "archdep" for cleaning up and making dependencies for
|
# for more details.
|
||||||
# this architecture
|
|
||||||
#
|
#
|
||||||
isa-y := any
|
isa-y := any
|
||||||
isa-$(CONFIG_SH_DSP) := sh
|
isa-$(CONFIG_SH_DSP) := sh
|
||||||
|
@ -67,16 +63,15 @@ cflags-y += $(isaflags-y) -ffreestanding
|
||||||
cflags-$(CONFIG_MORE_COMPILE_OPTIONS) += \
|
cflags-$(CONFIG_MORE_COMPILE_OPTIONS) += \
|
||||||
$(shell echo $(CONFIG_COMPILE_OPTIONS) | sed -e 's/"//g')
|
$(shell echo $(CONFIG_COMPILE_OPTIONS) | sed -e 's/"//g')
|
||||||
|
|
||||||
OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -R .stab -R .stabstr -S
|
OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment \
|
||||||
|
-R .stab -R .stabstr -S
|
||||||
|
|
||||||
#
|
# Give the various platforms the opportunity to set default image types
|
||||||
# arch/sh/defconfig doesn't reflect any real hardware, and as such should
|
defaultimage-$(CONFIG_SUPERH32) := arch/sh/boot/zImage
|
||||||
# never be used by anyone. Use a board-specific defconfig that has a
|
|
||||||
# reasonable chance of being current instead.
|
# Set some sensible Kbuild defaults
|
||||||
#
|
|
||||||
KBUILD_DEFCONFIG := r7780rp_defconfig
|
KBUILD_DEFCONFIG := r7780rp_defconfig
|
||||||
|
KBUILD_IMAGE := $(defaultimage-y)
|
||||||
KBUILD_IMAGE := arch/sh/boot/zImage
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Choosing incompatible machines durings configuration will result in
|
# Choosing incompatible machines durings configuration will result in
|
||||||
|
@ -214,7 +209,7 @@ PHONY += maketools FORCE
|
||||||
maketools: include/linux/version.h FORCE
|
maketools: include/linux/version.h FORCE
|
||||||
$(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h
|
$(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h
|
||||||
|
|
||||||
all: zImage
|
all: $(KBUILD_IMAGE)
|
||||||
|
|
||||||
zImage uImage uImage.srec vmlinux.srec: vmlinux
|
zImage uImage uImage.srec vmlinux.srec: vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
||||||
|
|
Loading…
Add table
Reference in a new issue