arm64: Use full path in KBUILD_IMAGE definition
authorMichal Marek <mmarek@suse.com>
Tue, 22 Nov 2016 21:34:29 +0000 (22:34 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 20 Mar 2017 13:42:12 +0000 (22:42 +0900)
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: Catalin Marinas <catalin.marinas@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Michal Marek <mmarek@suse.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm64/Makefile

index b9a4a934ca057623e0ea436fd9b2c7c0f675fced..adf977fd39f19917da0c63dad5ac2dc0e23ee4ac 100644 (file)
@@ -100,12 +100,12 @@ libs-y            := arch/arm64/lib/ $(libs-y)
 core-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
 
 # Default target when executing plain make
-KBUILD_IMAGE   := Image.gz
+boot           := arch/arm64/boot
+KBUILD_IMAGE   := $(boot)/Image.gz
 KBUILD_DTBS    := dtbs
 
-all:   $(KBUILD_IMAGE) $(KBUILD_DTBS)
+all:   Image.gz $(KBUILD_DTBS)
 
-boot := arch/arm64/boot
 
 Image: vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@