[kteam-tools][PATCH 6/6] git-build-kernel: special case no .orig tarball for "-signed" src packages
Kamal Mostafa
kamal at canonical.com
Tue Jul 31 20:07:57 UTC 2018
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
git-build-kernel/git-build-kernel | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 5b17c48..62d2714 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -130,10 +130,16 @@ touch "$WORKDIR/building"
trap "rm -rf $WORKDIR/building $BUILDDIR" 0
[ $do_source_pkg = 1 ] && {
- orig_tarball="${SRCPKG}_${VERSION%%-*}.orig.tar.gz"
- # Careful: $ORIG_TARBALLS_DIR must be accessible from within the chroot.
- # (Alternately, use "cp -p" instead of "ln -s" if that's not an option)
- ln -s $ORIG_TARBALLS_DIR/$orig_tarball $WORKDIR/
+ ### HACK Special case for linux-signed, which has no .orig tarball
+ if [ ${SRCPKG/-signed} != $SRCPKG ]
+ then
+ srcpkg_debopts="--no-tgz-check $srcpkg_debopts"
+ else
+ orig_tarball="${SRCPKG}_${VERSION%%-*}.orig.tar.gz"
+ # Careful: $ORIG_TARBALLS_DIR must be accessible from within the chroot.
+ # (Alternately, use "cp -p" instead of "ln -s" if that's not an option)
+ ln -s $ORIG_TARBALLS_DIR/$orig_tarball $WORKDIR/
+ fi
}
###
@@ -194,7 +200,7 @@ show_elapsed &
fakeroot debian/rules clean
if [ $do_source_pkg = 1 ]
then
- debuild -S -I -i -uc -us $srcpkg_debopts
+ debuild $srcpkg_debopts -S -I -i -uc -us
else
debian/rules build
fakeroot debian/rules $TARGETS
--
2.7.4
More information about the kernel-team
mailing list