mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
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>
This commit is contained in:
parent
5e40f0fd23
commit
e62c527efb
1 changed files with 3 additions and 4 deletions
|
@ -94,7 +94,8 @@ defaultimage-$(CONFIG_SH_7206_SOLUTION_ENGINE) := vmlinux
|
||||||
defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux
|
defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux
|
||||||
|
|
||||||
# Set some sensible Kbuild defaults
|
# Set some sensible Kbuild defaults
|
||||||
KBUILD_IMAGE := $(defaultimage-y)
|
boot := arch/sh/boot
|
||||||
|
KBUILD_IMAGE := $(boot)/$(defaultimage-y)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Choosing incompatible machines durings configuration will result in
|
# Choosing incompatible machines durings configuration will result in
|
||||||
|
@ -186,8 +187,6 @@ cpuincdir-y += cpu-common # Must be last
|
||||||
drivers-y += arch/sh/drivers/
|
drivers-y += arch/sh/drivers/
|
||||||
drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/
|
drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/
|
||||||
|
|
||||||
boot := arch/sh/boot
|
|
||||||
|
|
||||||
cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \
|
cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \
|
||||||
$(foreach d, $(machdir-y), -Iarch/sh/include/$(d))
|
$(foreach d, $(machdir-y), -Iarch/sh/include/$(d))
|
||||||
|
|
||||||
|
@ -211,7 +210,7 @@ BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.xz uImage.lzo \
|
||||||
romImage
|
romImage
|
||||||
PHONY += $(BOOT_TARGETS)
|
PHONY += $(BOOT_TARGETS)
|
||||||
|
|
||||||
all: $(KBUILD_IMAGE)
|
all: $(notdir $(KBUILD_IMAGE))
|
||||||
|
|
||||||
$(BOOT_TARGETS): vmlinux
|
$(BOOT_TARGETS): vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
||||||
|
|
Loading…
Add table
Reference in a new issue