diff options
author | Guillem Jover <guillem@hadrons.org> | 2010-09-03 06:33:28 +0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-09-06 15:29:02 +0400 |
commit | 242c5ab08c8414539ed57bde90e93accd8353825 (patch) | |
tree | 48288705b31c9fba8bc30a9bc53fece47e9178cc /scripts/package/builddeb | |
parent | aa42abedc321040301541b865a018af9fa848873 (diff) | |
download | linux-242c5ab08c8414539ed57bde90e93accd8353825.tar.xz |
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: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/package/builddeb')
-rw-r--r-- | scripts/package/builddeb | 4 |
1 files changed, 3 insertions, 1 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 cp System.map "$tmpdir/boot/System.map-$version" cp .config "$tmpdir/boot/config-$version" # 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" fi fi |