]> 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>
Fri, 27 Feb 2015 11:06:51 +0000 (11:06 +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>
---
Changes in v13:
1. Use find rune to get list of files to move.

ts-xen-build

index b61b4cacc19ce5d6d97206e9a472c534b6564861..e757f680145cdf5ed47087dbffab8c1d69d8063d 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.gz/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 if xsm is enabled
+    #
+    # 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/.
+                mvfiles=`find install/boot -name 'xen[a-z]*' -prune -o -name 'xen*' -print`
+                mv \$mvfiles xeninstall/boot/.
             fi
         fi
 END