Thread (4 messages) 4 messages, 3 authors, 2016-09-29
STALE3530d

[PATCH] arm64: set path to Image.gz in the mkspec to avoid rpm build issue

From: Will Deacon <hidden>
Date: 2016-09-28 09:49:13

[Adding Michal Marek]

On Tue, Sep 27, 2016 at 08:53:47AM -0700, Vadim Lomovtsev wrote:
quoted hunk ↗ jump to hunk
In addition to http://www.spinics.net/lists/arm-kernel/msg527466.html

While building rpm-pkg target it fails to copy kernel image
from default location to rpm buildroot directory.

Since we have arch variable set to aarch64 while Image.gz
is located at arch/arm64/boot it's necessary to specify
correct path to cp command as it implemeted for ppc64 build.

Signed-off-by: Vadim Lomovtsev <redacted>
---
 scripts/package/mkspec | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index 57673ba..2f2bc7e 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -101,9 +101,13 @@ echo "%ifarch ppc64"
 echo "cp vmlinux arch/powerpc/boot"
 echo "cp arch/powerpc/boot/"'$KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE"
 echo "%else"
+echo "%ifarch aarch64"
+echo "cp arch/arm64/boot/"'$KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE"
+echo "%else"
 echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE"
 echo "%endif"
 echo "%endif"
+echo "%endif"
 
 echo 'make %{?_smp_mflags} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr KBUILD_SRC= headers_install'
 echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE"
-- 
1.8.3.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help