Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: Use full path in KBUILD_IMAGE definition

The KBUILD_IMAGE variable is used by the rpm and deb-pkg targets, which
expect it to point to the image file in the build directory. The
builddeb script has a workaround for architectures which only provide
the basename, but let's provide a clean interface for packaging tools.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

authored by

Michal Marek and committed by
Masahiro Yamada
e62c527e 5e40f0fd

+3 -4
+3 -4
arch/sh/Makefile
··· 94 94 defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux 95 95 96 96 # Set some sensible Kbuild defaults 97 - KBUILD_IMAGE := $(defaultimage-y) 97 + boot := arch/sh/boot 98 + KBUILD_IMAGE := $(boot)/$(defaultimage-y) 98 99 99 100 # 100 101 # Choosing incompatible machines durings configuration will result in ··· 187 186 drivers-y += arch/sh/drivers/ 188 187 drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ 189 188 190 - boot := arch/sh/boot 191 - 192 189 cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ 193 190 $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) 194 191 ··· 210 211 romImage 211 212 PHONY += $(BOOT_TARGETS) 212 213 213 - all: $(KBUILD_IMAGE) 214 + all: $(notdir $(KBUILD_IMAGE)) 214 215 215 216 $(BOOT_TARGETS): vmlinux 216 217 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@