]> xenbits.xensource.com Git - livepatch-build-tools.git/commitdiff
Require --depends
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 10 May 2016 12:58:14 +0000 (13:58 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 10 May 2016 12:58:14 +0000 (13:58 +0100)
WIth the version of xSplice in Xen 4.7, the build-id dependency is required,
so require the option.

xsplice-build

index 35b9aaeb41cbebeca58383536f159c244377187b..2eb7993f061d92ec1bdc5afe1ee64287f98c1c98 100755 (executable)
@@ -138,10 +138,7 @@ function create_patch()
     fi
 
     # Create a dependency section
-    > depends.bin
-    if [ -n "$DEPENDS" ]; then
-        perl -e "print pack 'VVVZ*H*', 4, 20, 3, 'GNU', '${DEPENDS}'" >> depends.bin
-    fi
+    perl -e "print pack 'VVVZ*H*', 4, 20, 3, 'GNU', '${DEPENDS}'" > depends.bin
 
     echo "Creating patch module..."
     if [ -z "$PRELINK" ]; then
@@ -239,6 +236,7 @@ done
 [ -z "$srcarg" ] && die "Xen directory not given"
 [ -z "$patcharg" ] && die "Patchfile not given"
 [ -z "$outputarg" ] && die "Output directory not given"
+[ -z "$DEPENDS" ] && die "Build-id dependency not given"
 
 SRCDIR="$(realpath -m -- "$srcarg")"
 PATCHFILE="$(realpath -m -- "$patcharg")"