Skip to contentSkip to conversation

arm64: Use full path in KBUILD_IMAGE definition

PATCH In review Michal Marek 5 participants 20 messages Nov 22, 2016 – Mar 20, 2017

Subsystems (5)
Arm (32-bit) Kbuild arm64 SuperH +1 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 arm64: 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 Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm64/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/Makefile +3 -3
index 3635b8662724..80b6866bcacb 100644
@@ -94,12 +94,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)/$@
Signature · 1 line
2.10.0
#1 lore raw

PATCH 2/6 arm: 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 Russell King <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/Makefile +4 -4
index 6be9ee148b78..f3fa2cafca15 100644
@@ -296,10 +296,11 @@ drivers-$(CONFIG_OPROFILE)      += arch/arm/oprofile/
 libs-y				:= arch/arm/lib/ $(libs-y)
 
 # Default target when executing plain make
+boot := arch/arm/boot
 ifeq ($(CONFIG_XIP_KERNEL),y)
-KBUILD_IMAGE := xipImage
+KBUILD_IMAGE := $(boot)/xipImage
 else
-KBUILD_IMAGE := zImage
+KBUILD_IMAGE := $(boot)/zImage
 endif
 
 # Build the DT binary blobs if we have OF configured
@@ -307,9 +308,8 @@ ifeq ($(CONFIG_USE_OF),y)
 KBUILD_DTBS := dtbs
 endif
 
-all:	$(KBUILD_IMAGE) $(KBUILD_DTBS)
+all:	$(notdir $(KBUILD_IMAGE)) $(KBUILD_DTBS)
 
-boot := arch/arm/boot
 
 archprepare:
 	$(Q)$(MAKE) $(build)=arch/arm/tools include/generated/mach-types.h
Signature · 1 line
2.10.0
#3 lore raw

PATCH 3/6 arc: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

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 Vineet Gupta <vgupta at synopsys.com>
Cc linux-snps-arc at lists.infradead.org
Signed-off-by Michal Marek <mmarek at suse.com>
---
 arch/arc/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arc/Makefile +2 -2
index 19cce226d1a8..44ef35d33956 100644
@@ -123,9 +123,9 @@ libs-y		+= arch/arc/lib/ $(LIBGCC)
 boot		:= arch/arc/boot
 
 #default target for make without any arguments.
-KBUILD_IMAGE	:= bootpImage
+KBUILD_IMAGE	:= $(boot)/bootpImage
 
-all:	$(KBUILD_IMAGE)
+all:	bootpImage
 bootpImage: vmlinux
 
 boot_targets += uImage uImage.bin uImage.gz
Signature · 1 line
2.10.0
#7 lore raw

PATCH 4/6 sh: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

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.

---
 arch/sh/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
arch/sh/Makefile +3 -4
index 336f33a419d9..280bbff12102 100644
@@ -94,7 +94,8 @@ defaultimage-$(CONFIG_SH_7206_SOLUTION_ENGINE)	:= vmlinux
 defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE)	:= vmlinux
 
 # 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
@@ -186,8 +187,6 @@ cpuincdir-y			+= cpu-common	# Must be last
 drivers-y			+= arch/sh/drivers/
 drivers-$(CONFIG_OPROFILE)	+= arch/sh/oprofile/
 
-boot := arch/sh/boot
-
 cflags-y	+= $(foreach d, $(cpuincdir-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
 PHONY += $(BOOT_TARGETS)
 
-all: $(KBUILD_IMAGE)
+all: $(notdir $(KBUILD_IMAGE))
 
 $(BOOT_TARGETS): vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
Signature · 1 line
2.10.0
#11 lore raw

PATCH 6/6 deb-pkg: Remove the KBUILD_IMAGE workaround

In reply to Michal Marek

The arch Makefile are fixed to set KBUILD_IMAGE to the full patch, so the workaround is no longer needed.

---
 scripts/package/builddeb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
scripts/package/builddeb +1 -6
index 8ea9fd2b6573..dab997343f1a 100755
@@ -143,12 +143,7 @@ else
 	cp System.map "$tmpdir/boot/System.map-$version"
 	cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
 fi
-# Not all arches include the boot path in KBUILD_IMAGE
-if [ -e $KBUILD_IMAGE ]; then
-	cp $KBUILD_IMAGE "$tmpdir/$installed_image_path"
-else
-	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
-fi
+cp "$($MAKE -s image_name)" "$tmpdir/$installed_image_path"
 
 if grep -q "^CONFIG_OF=y" $KCONFIG_CONFIG ; then
 	# Only some architectures with OF support have this target
Signature · 1 line
2.10.0
#9 lore raw

PATCH 5/6 unicore32: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

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.

---
 arch/unicore32/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/unicore32/Makefile +2 -2
index b6f5c4c1eaf9..98a5ca43ae87 100644
@@ -43,9 +43,9 @@ boot			:= arch/unicore32/boot
 
 # Default defconfig and target when executing plain make
 KBUILD_DEFCONFIG	:= $(ARCH)_defconfig
-KBUILD_IMAGE		:= zImage
+KBUILD_IMAGE		:= $(boot)/zImage
 
-all:	$(KBUILD_IMAGE)
+all:	zImage
 
 zImage Image uImage: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
Signature · 1 line
2.10.0
#4 lore raw

Re: [PATCH 3/6] arc: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

Hi Michal,

Quoted 25 lines · Michal Marek

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 Vineet Gupta <vgupta at synopsys.com>
Cc linux-snps-arc at lists.infradead.org
Signed-off-by Michal Marek <mmarek at suse.com>

---
?arch/arc/Makefile | 4 ++--
?1 file changed, 2 insertions(+), 2 deletions(-)

arch/arc/Makefile +0 -0
index 19cce226d1a8..44ef35d33956 100644
@@ -123,9 +123,9 @@ libs-y		+= arch/arc/lib/ $(LIBGCC)

?boot := arch/arc/boot
?
?#default target for make without any arguments.

arch/arc/Makefile +1 -1
-KBUILD_IMAGE	:= bootpImage
+KBUILD_IMAGE	:= $(boot)/bootpImage

?

arch/arc/Makefile +1 -1
-all:	$(KBUILD_IMAGE)
+all:	bootpImage
Quoted 3 lines

?bootpImage: vmlinux
?
?boot_targets += uImage uImage.bin uImage.gz

I tried to find any examples on how that?KBUILD_IMAGE thingy is used but to no avail. It looks like for ARC "bootpImage" makes not much sense and if you really want to get something useful in .deb/.rpm most probably something like below may work much better:
------------------------>8--------------------------
KBUILD_IMAGE := $(boot)/uImage
------------------------>8--------------------------

And I don't know context of KBUILD_IMAGE usage but in case of ARC our default target is "vmlinux" so I'm not sure then if KBUILD_IMAGE may point to non-default target.

For example in "arch/avr32/Makefile" I see more complicated construction:
------------------------>8--------------------------
? ? ? ? ? ? ?KBUILD_IMAGE := $(boot)/uImage
vmlinux.elf: KBUILD_IMAGE := $(boot)/vmlinux.elf
vmlinux.cso: KBUILD_IMAGE := $(boot)/vmlinux.cso
uImage.srec: KBUILD_IMAGE := $(boot)/uImage.srec uImage:??????KBUILD_IMAGE := $(boot)/uImage ------------------------>8--------------------------
and may imagine that we need something similar for ARC obviously with default being "$(boot)/vmlinux".

-Alexey

Reviewed-by on v1 6/6
#12 lore raw

Re: [PATCH 6/6] deb-pkg: Remove the KBUILD_IMAGE workaround

In reply to Michal Marek
Quoted 5 lines · Michal Marek

The arch Makefile are fixed to set KBUILD_IMAGE to the full patch, so the workaround is no longer needed.

---

Thanks for cleaning this up.

Quoted 28 lines
 scripts/package/builddeb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
scripts/package/builddeb +1 -7
index 8ea9fd2b6573..dab997343f1a 100755
@@ -143,12 +143,7 @@ else
        cp System.map "$tmpdir/boot/System.map-$version"
        cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
 fi
-# Not all arches include the boot path in KBUILD_IMAGE
-if [ -e $KBUILD_IMAGE ]; then
-       cp $KBUILD_IMAGE "$tmpdir/$installed_image_path"
-else
-       cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
-fi
+cp "$($MAKE -s image_name)" "$tmpdir/$installed_image_path"
 
 if grep -q "^CONFIG_OF=y" $KCONFIG_CONFIG ; then
        # Only some architectures with OF support have this target
--

2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Re: [PATCH 3/6] arc: Use full path in KBUILD_IMAGE definition

In reply to Alexey Brodkin

Dne 23.11.2016 v 20:40 Alexey Brodkin napsal(a):

Quoted 11 lines
Quoted 11 lines
arch/arc/Makefile +1 -1
index 19cce226d1a8..44ef35d33956 100644
@@ -123,9 +123,9 @@ libs-y		+= arch/arc/lib/ $(LIBGCC)
 boot		:= arch/arc/boot
 
 #default target for make without any arguments.
-KBUILD_IMAGE	:= bootpImage
+KBUILD_IMAGE	:= $(boot)/bootpImage
 
Quoted 8 lines

arch/arc/Makefile libs-y += arch/arc/lib/ $(LIBGCC) · line 131

Quoted 5 lines
arch/arc/Makefile +1 -1
-all:	$(KBUILD_IMAGE)
+all:	bootpImage
 bootpImage: vmlinux
 
 boot_targets += uImage uImage.bin uImage.gz

I tried to find any examples on how that KBUILD_IMAGE thingy is used but to no avail.

Ho Alexey,

see scripts/pacakge/{builddeb,buildtar,mkspec}. mkspec calls make image_name, which in turn outputs $KBUILD_IMAGE.

Quoted 10 lines

It looks like for ARC "bootpImage" makes not much
sense and if you really want to get something useful in .deb/.rpm most probably something like below may work much better:
------------------------>8--------------------------
KBUILD_IMAGE := $(boot)/uImage
------------------------>8--------------------------

And I don't know context of KBUILD_IMAGE usage but in case of ARC our default target is "vmlinux" so I'm not sure then if KBUILD_IMAGE may point to non-default target.

Right, this will not work for make rpm-pkg, since it calls make with no explicit target and expects the file pointed to by KBUILD_IMAGE to exist afterward. This will work if you also change the 'all' target to depend on uImage.

Quoted 8 lines

For example in "arch/avr32/Makefile" I see more complicated construction:
------------------------>8--------------------------

             KBUILD_IMAGE := $(boot)/uImage
vmlinux.elf: KBUILD_IMAGE := $(boot)/vmlinux.elf
vmlinux.cso: KBUILD_IMAGE := $(boot)/vmlinux.cso
uImage.srec: KBUILD_IMAGE := $(boot)/uImage.srec
uImage:      KBUILD_IMAGE := $(boot)/uImage

------------------------>8--------------------------

Right, but the packaging targets will only build and package uImage. The other redefinitions are there only for the avr32 install rule:

install: vmlinux

	$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
Quoted 2 lines

and may imagine that we need something similar for ARC obviously with default being "$(boot)/vmlinux".

What some other architectures do is that the image format is selected via Kconfig and not on the make command line. E.g. arm and sh do this.

Michal

#13 lore raw

Re: [PATCH 6/6] deb-pkg: Remove the KBUILD_IMAGE workaround

In reply to Riku Voipio

Dne 25.11.2016 v 13:12 Riku Voipio napsal(a):

Quoted 9 lines · Michal Marek
Quoted 5 lines

The arch Makefile are fixed to set KBUILD_IMAGE to the full patch, so the workaround is no longer needed.

---

Thanks for cleaning this up.

Note that this will only be merged once the individual arch patches have been picked up.

Michal

#15 lore raw
In reply to Michal Marek

Hi Michael,

Quoted 5 lines · Michal Marek

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.

Quoted 7 lines
---
 arch/arm64/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

What's the plan for this patch? I'm happy to merge it, but I don't see the rest of the series queued anywhere.

Thanks,

Will

Quoted 23 lines
arch/arm64/Makefile +3 -3
index 3635b8662724..80b6866bcacb 100644
@@ -94,12 +94,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)/$@
Signature · 1 line
2.10.0
#16 lore raw

Dne 10.3.2017 v 18:58 Will Deacon napsal(a):

Quoted 16 lines

Hi Michael,

Quoted 5 lines · Michal Marek

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.

Quoted 7 lines
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm64/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 1 line

What's the plan for this patch? I'm happy to merge it,

Great, please merge it.

Quoted 2 lines

but I don't see
the rest of the series queued anywhere.

I'll see what remains and submit the rest via the kbuild tree.

Thanks,
Michal

#17 lore raw

Hi Will, Michal,

2017-03-11 6:20 GMT+09:00 Michal Marek <[email protected]>:

Quoted 25 lines

Dne 10.3.2017 v 18:58 Will Deacon napsal(a):

Quoted 16 lines

Hi Michael,

Quoted 5 lines · Michal Marek

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.

Quoted 7 lines
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm64/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 1 line

What's the plan for this patch? I'm happy to merge it,

Great, please merge it.

Quoted 2 lines

but I don't see
the rest of the series queued anywhere.

Quoted 8 lines

I'll see what remains and submit the rest via the kbuild tree.

Thanks,
Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

I like this approach, rather than fixing scripts/package/mkspec.

So, how shall we handle this series?

I am OK with getting 1/6 in through arm64 tree,
but 6/6 will be postponed in the case.

If Will issues Acked-by, I can pick-up the whole series to linux-kbuild.

Signature · 2 lines
Best Regards
Masahiro Yamada
Acked-by
#18 lore raw
Quoted 32 lines · Masahiro Yamada

2017-03-11 6:20 GMT+09:00 Michal Marek <[email protected]>:

Quoted 15 lines

Dne 10.3.2017 v 18:58 Will Deacon napsal(a):

Quoted 14 lines · Michal Marek
Quoted 12 lines

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.

---
 arch/arm64/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 1 line

What's the plan for this patch? I'm happy to merge it,

Great, please merge it.

Quoted 2 lines

but I don't see
the rest of the series queued anywhere.

I'll see what remains and submit the rest via the kbuild tree.

I like this approach, rather than fixing scripts/package/mkspec.

So, how shall we handle this series?

Quoted 7 lines

I am OK with getting 1/6 in through arm64 tree,
but 6/6 will be postponed in the case.

If Will issues Acked-by, I can pick-up the whole series to linux-kbuild.

Ok, that works for me too. For the first patch:

So please take this via linux-kbuild.

Will

#19 lore raw

2017-03-20 21:13 GMT+09:00 Will Deacon <[email protected]>:

Quoted 41 lines · Masahiro Yamada
Quoted 32 lines

2017-03-11 6:20 GMT+09:00 Michal Marek <[email protected]>:

Quoted 15 lines

Dne 10.3.2017 v 18:58 Will Deacon napsal(a):

Quoted 14 lines · Michal Marek
Quoted 12 lines

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 <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm64/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 1 line

What's the plan for this patch? I'm happy to merge it,

Great, please merge it.

Quoted 2 lines

but I don't see
the rest of the series queued anywhere.

I'll see what remains and submit the rest via the kbuild tree.

I like this approach, rather than fixing scripts/package/mkspec.

So, how shall we handle this series?

Quoted 7 lines

I am OK with getting 1/6 in through arm64 tree,
but 6/6 will be postponed in the case.

If Will issues Acked-by, I can pick-up the whole series to linux-kbuild.

Quoted 7 lines

Ok, that works for me too. For the first patch:

So please take this via linux-kbuild.

Will

Applied to linux-kbuild/misc. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

Re: [PATCH 2/6] arm: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

2016-11-23 6:34 GMT+09:00 Michal Marek <[email protected]>:

Quoted 8 lines

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 Russell King <[email protected]>
Cc linux-arm-kernel at lists.infradead.org

Applied to linux-kbuild/misc. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada
#6 lore raw

Re: [PATCH 3/6] arc: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

2016-11-23 6:34 GMT+09:00 Michal Marek <mmarek at suse.com>:

Quoted 8 lines

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 Vineet Gupta <vgupta at synopsys.com>
Cc linux-snps-arc at lists.infradead.org
Signed-off-by Michal Marek <mmarek at suse.com>

Applied to linux-kbuild/misc. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada
#8 lore raw

Re: [PATCH 4/6] sh: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

2016-11-23 6:34 GMT+09:00 Michal Marek <[email protected]>:

Quoted 9 lines

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.

Applied to linux-kbuild/misc. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada
#10 lore raw

Re: [PATCH 5/6] unicore32: Use full path in KBUILD_IMAGE definition

In reply to Michal Marek

2016-11-23 6:34 GMT+09:00 Michal Marek <[email protected]>:

Quoted 7 lines

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.

Applied to linux-kbuild/misc. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada
#14 lore raw

Re: [PATCH 6/6] deb-pkg: Remove the KBUILD_IMAGE workaround

In reply to Michal Marek

2016-11-25 23:22 GMT+09:00 Michal Marek <[email protected]>:

Quoted 5 lines

Dne 25.11.2016 v 13:12 Riku Voipio napsal(a):

Quoted 4 lines · Michal Marek
Quoted 3 lines

The arch Makefile are fixed to set KBUILD_IMAGE to the full patch, so the workaround is no longer needed.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

---

Thanks for cleaning this up.

Note that this will only be merged once the individual arch patches have been picked up.

Applied to linux-kbuild/misc. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada