kbuild, deb-pkg: fix 'file not found' error when building .deb package for arm
authorFrans Pop <elendil@planet.nl>
Wed, 22 Apr 2009 23:09:04 +0000 (01:09 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 9 Jun 2009 20:37:36 +0000 (22:37 +0200)
Not all architectures prepend the $(boot) path in $(KBUILD_IMAGE).
Allow for that fact in the builddeb script. Example is arm.

Signed-off-by: Frans Pop <elendil@planet.nl>
Acked-by: maximilian attems <max@stro.at>
Cc: Andres Salomon <dilinger@debian.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/package/builddeb

index feebd69c2eea540fd95ec90e0b86e33c1eb37d7d..4876ff3154a1d2ec5bbd190f066cf6e98d23f6b2 100644 (file)
@@ -53,7 +53,10 @@ if [ "$ARCH" = "um" ] ; then
 else 
        cp System.map "$tmpdir/boot/System.map-$version"
        cp .config "$tmpdir/boot/config-$version"
-       cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
+       # Not all arches include the boot path in KBUILD_IMAGE
+       if ! cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"; then
+               cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
+       fi
 fi
 
 if grep -q '^CONFIG_MODULES=y' .config ; then