Skip to content

Commit e62c527

Browse files
Michal Marekmasahir0y
authored andcommitted
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>
1 parent 5e40f0f commit e62c527

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎arch/sh/Makefile‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ defaultimage-$(CONFIG_SH_7206_SOLUTION_ENGINE) := vmlinux
9494
defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux
9595

9696
# Set some sensible Kbuild defaults
97-
KBUILD_IMAGE := $(defaultimage-y)
97+
boot := arch/sh/boot
98+
KBUILD_IMAGE := $(boot)/$(defaultimage-y)
9899

99100
#
100101
# Choosing incompatible machines durings configuration will result in
@@ -186,8 +187,6 @@ cpuincdir-y += cpu-common # Must be last
186187
drivers-y += arch/sh/drivers/
187188
drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/
188189

189-
boot := arch/sh/boot
190-
191190
cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \
192191
$(foreach d, $(machdir-y), -Iarch/sh/include/$(d))
193192

@@ -211,7 +210,7 @@ BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.xz uImage.lzo \
211210
romImage
212211
PHONY += $(BOOT_TARGETS)
213212

214-
all: $(KBUILD_IMAGE)
213+
all: $(notdir $(KBUILD_IMAGE))
215214

216215
$(BOOT_TARGETS): vmlinux
217216
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@

0 commit comments

Comments
 (0)