[PATCH] kvm_installer: build spice from git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 client/virt/kvm_installer.py |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/client/virt/kvm_installer.py b/client/virt/kvm_installer.py
index df47fc0..b7f6291 100644
--- a/client/virt/kvm_installer.py
+++ b/client/virt/kvm_installer.py
@@ -654,6 +654,20 @@ class GitInstaller(SourceDirInstaller):
                              'make sync LINUX=%s' % self.kernel.srcdir,
                              'make']
 
+        self.spice_protocol = GitRepo(installer=self, prefix='spice_protocol',
+            srcdir='spice-protocol',
+            build_steps= ['./autogen.sh',
+                          './configure --prefix=%s' % self.prefix,
+                          'make clean',
+                          'make -j %s' % (make_jobs),
+                          'make install'])
+
+        self.spice = GitRepo(installer=self, prefix='spice', srcdir='spice',
+            build_steps= ['PKG_CONFIG_PATH="%s/lib/pkgconfig:%s/share/pkgconfig" CXXFLAGS=-Wl,--add-needed ./autogen.sh --prefix=%s' % (self.prefix, self.prefix, self.prefix),
+                          'make clean',
+                          'make -j %s' % (make_jobs),
+                          'make install'])
+
         self.userspace = GitRepo(installer=self, prefix='user',
             repo_param='user_git_repo', srcdir='kvm_userspace')
 
@@ -673,7 +687,7 @@ class GitInstaller(SourceDirInstaller):
             logging.error(message)
             raise error.TestError(message)
 
-        for repo in [self.userspace, self.kernel, self.kmod]:
+        for repo in [self.userspace, self.kernel, self.kmod, self.spice_protocol, self.spice]:
             if not repo.repo:
                 continue
             repo.fetch_and_patch()
@@ -686,6 +700,13 @@ class GitInstaller(SourceDirInstaller):
             logging.info('Building KVM modules')
             self.kernel.build()
 
+        if self.spice_protocol.repo:
+            logging.info('Building Spice-protocol')
+            self.spice_protocol.build()
+
+        if self.spice.repo:
+            logging.info('Building Spice')
+            self.spice.build()
 
         logging.info('Building KVM userspace code')
         self.userspace.build()
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux