summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.com>2016-11-22 16:34:32 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-03-20 09:42:20 -0400
commite62c527efb07fa62a549cb03109a4d0265cedce2 (patch)
tree2cab2ab6e4a471b8934bd669bb0a7fdd9cf73ba8
parent5e40f0fd234f36564881b03d28deaa69653ae9f2 (diff)
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>
-rw-r--r--arch/sh/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 336f33a419d9..280bbff12102 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -94,7 +94,8 @@ defaultimage-$(CONFIG_SH_7206_SOLUTION_ENGINE) := vmlinux
94defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux 94defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux
95 95
96# Set some sensible Kbuild defaults 96# Set some sensible Kbuild defaults
97KBUILD_IMAGE := $(defaultimage-y) 97boot := arch/sh/boot
98KBUILD_IMAGE := $(boot)/$(defaultimage-y)
98 99
99# 100#
100# Choosing incompatible machines durings configuration will result in 101# Choosing incompatible machines durings configuration will result in
@@ -186,8 +187,6 @@ cpuincdir-y += cpu-common # Must be last
186drivers-y += arch/sh/drivers/ 187drivers-y += arch/sh/drivers/
187drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ 188drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/
188 189
189boot := arch/sh/boot
190
191cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ 190cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \
192 $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) 191 $(foreach d, $(machdir-y), -Iarch/sh/include/$(d))
193 192
@@ -211,7 +210,7 @@ BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.xz uImage.lzo \
211 romImage 210 romImage
212PHONY += $(BOOT_TARGETS) 211PHONY += $(BOOT_TARGETS)
213 212
214all: $(KBUILD_IMAGE) 213all: $(notdir $(KBUILD_IMAGE))
215 214
216$(BOOT_TARGETS): vmlinux 215$(BOOT_TARGETS): vmlinux
217 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 216 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@