diff options
-rw-r--r-- | scripts/package/builddeb | 4 | ||||
-rwxr-xr-x | scripts/package/mkspec | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 5f1e2fc7f171..49b74e1ee12d 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -66,7 +66,9 @@ else | |||
66 | cp System.map "$tmpdir/boot/System.map-$version" | 66 | cp System.map "$tmpdir/boot/System.map-$version" |
67 | cp .config "$tmpdir/boot/config-$version" | 67 | cp .config "$tmpdir/boot/config-$version" |
68 | # Not all arches include the boot path in KBUILD_IMAGE | 68 | # Not all arches include the boot path in KBUILD_IMAGE |
69 | if ! cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"; then | 69 | if [ -e $KBUILD_IMAGE ]; then |
70 | cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" | ||
71 | else | ||
70 | cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" | 72 | cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" |
71 | fi | 73 | fi |
72 | fi | 74 | fi |
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 15440f55aef6..e1c1d5b8ca70 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec | |||
@@ -70,7 +70,7 @@ echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules' | |||
70 | echo 'mkdir -p $RPM_BUILD_ROOT/lib/firmware' | 70 | echo 'mkdir -p $RPM_BUILD_ROOT/lib/firmware' |
71 | echo "%endif" | 71 | echo "%endif" |
72 | 72 | ||
73 | echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} KBUILD_SRC= modules_install' | 73 | echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{?_smp_mflags} KBUILD_SRC= modules_install' |
74 | echo "%ifarch ia64" | 74 | echo "%ifarch ia64" |
75 | echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/efi/vmlinuz-$KERNELRELEASE" | 75 | echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/efi/vmlinuz-$KERNELRELEASE" |
76 | echo 'ln -s '"efi/vmlinuz-$KERNELRELEASE" '$RPM_BUILD_ROOT'"/boot/" | 76 | echo 'ln -s '"efi/vmlinuz-$KERNELRELEASE" '$RPM_BUILD_ROOT'"/boot/" |