]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-xen-build: only move hypervisor to xeninstall
authorWei Liu <wei.liu2@citrix.com>
Mon, 23 Feb 2015 12:03:16 +0000 (12:03 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 23 Feb 2015 15:32:04 +0000 (15:32 +0000)
... so that we can leave xenpolicy-* in tools tarball.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
ts-xen-build

index b1f29c6188c8637af85ab707312312f0f9de2e82..532faaf3794537885efb719f921932a45c8afe60 100755 (executable)
@@ -146,6 +146,19 @@ sub collectversions () {
 }
 
 sub divide () {
+    # Only move hv to xeninstall, so that we can have
+    # xenpolicy in tools tarball.
+    #
+    # The files inside boot/ after `make dist' are
+    # xen-$XEN_VERSION: Xen binary
+    # xen: symlink to xen-$XEN_VERSION
+    # xen-$MAJOR: symlink to xen-$XEN_VERSION
+    # xen-$MAJOR.$MINOR: symlink to xen-$XEN_VERSION
+    # xen-sym-$XEN_VERSION: Xen symbol
+    # xenpolicy-$XEN_VERSION: flask policy binary
+    #
+    # So the following snippet will leave xenpolicy* in
+    # install/boot and get packaged to tools tarball.
     target_cmd_build($ho, 100, $builddir, <<END);
         cd xen/dist
         mkdir xeninstall
@@ -155,7 +168,8 @@ sub divide () {
         if test -d install/boot; then
             if test -f install/boot/xen.gz || test -f install/boot/xen; then
                 mkdir xeninstall/boot
-                mv install/boot/xen* xeninstall/boot/.
+                mv install/boot/xen-* xeninstall/boot/.
+                mv install/boot/xen xeninstall/boot/.
             fi
         fi
 END