]> 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 12:15:03 +0000 (12:15 +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..48d9ddd2f2a7df9047ba23ebf50ca043bade8d89 100755 (executable)
@@ -155,7 +155,21 @@ 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/.
+                # Only move hv to xeninstal, 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.
+                mv install/boot/xen-* xeninstall/boot/.
+                mv install/boot/xen xeninstall/boot/.
             fi
         fi
 END