diff options
author | Michal Marek <mmarek@suse.com> | 2016-11-22 16:34:32 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-03-20 09:42:20 -0400 |
commit | e62c527efb07fa62a549cb03109a4d0265cedce2 (patch) | |
tree | 2cab2ab6e4a471b8934bd669bb0a7fdd9cf73ba8 | |
parent | 5e40f0fd234f36564881b03d28deaa69653ae9f2 (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/Makefile | 7 |
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 | |||
94 | defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux | 94 | defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux |
95 | 95 | ||
96 | # Set some sensible Kbuild defaults | 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 | # 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 | |||
186 | drivers-y += arch/sh/drivers/ | 187 | drivers-y += arch/sh/drivers/ |
187 | drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ | 188 | drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ |
188 | 189 | ||
189 | boot := arch/sh/boot | ||
190 | |||
191 | cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ | 190 | cflags-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 |
212 | PHONY += $(BOOT_TARGETS) | 211 | PHONY += $(BOOT_TARGETS) |
213 | 212 | ||
214 | all: $(KBUILD_IMAGE) | 213 | all: $(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)/$@ |