提交 242c5ab0 编写于 作者: G Guillem Jover 提交者: Michal Marek

kbuild, deb-pkg: Check if KBUILD_IMAGE exists before copying it

Avoid an error when doing cp over the image when it does not contain
the full path to the file.
Signed-off-by: NGuillem Jover <guillem@hadrons.org>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 aa42abed
...@@ -66,7 +66,9 @@ else ...@@ -66,7 +66,9 @@ else
cp System.map "$tmpdir/boot/System.map-$version" cp System.map "$tmpdir/boot/System.map-$version"
cp .config "$tmpdir/boot/config-$version" cp .config "$tmpdir/boot/config-$version"
# Not all arches include the boot path in KBUILD_IMAGE # Not all arches include the boot path in KBUILD_IMAGE
if ! cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"; then if [ -e $KBUILD_IMAGE ]; then
cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
else
cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
fi fi
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册