Skip to contentSkip to conversation

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

PATCH New Vadim Lomovtsev 3 participants 4 messages Sep 27, 2016 – Sep 29, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

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

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.

---
 scripts/package/mkspec | 4 ++++
 1 file changed, 4 insertions(+)
scripts/package/mkspec +4 -0
index 57673ba..2f2bc7e 100755
@@ -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"
Signature · 1 line
1.8.3.1
#1 lore raw

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

[Adding Michal Marek]

Quoted 41 lines · Vadim Lomovtsev

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.

---
 scripts/package/mkspec | 4 ++++
 1 file changed, 4 insertions(+)
scripts/package/mkspec +4 -0
index 57673ba..2f2bc7e 100755
@@ -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"
Signature · 7 lines
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
#2 lore raw

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

Quoted 11 lines · Will Deacon

[Adding Michal Marek]

Quoted 8 lines · Vadim Lomovtsev

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.

The variable should point to the actual file. ppc64 should be fixed as well.

Michal

#3 lore raw

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

Quoted 9 lines · Michal Marek
Quoted 8 lines · Will Deacon

[Adding Michal Marek]

Quoted 5 lines · Vadim Lomovtsev

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.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

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.

The variable should point to the actual file. ppc64 should be fixed as well.

Michal

Understood. Thanks for feed-back.

Vadim