Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 242c5ab0 authored by Guillem Jover's avatar Guillem Jover Committed by Michal Marek
Browse files

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: default avatarGuillem Jover <guillem@hadrons.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent aa42abed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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