[yocto] [yocto-autobuilder][PATCH 6/6] CreateAutoConf.py: add option for package types

Stefan Stanacar stefanx.stanacar at intel.com
Wed Apr 24 15:29:16 PDT 2013


Using this option we'll be able to select only certain packages
to be built and because the order is important we determine the
image type too. E.g 'packages' : 'deb rpm' will build deb and rpm
packages but the image will use deb as package manager.

Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
---
 .../site-packages/autobuilder/buildsteps/CreateAutoConf.py         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
index fd73a3d..8fbef3e 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
@@ -22,6 +22,7 @@ class CreateAutoConf(ShellCommand):
         self.machine=""
         self.buildapp=""
         self.distro="poky"
+        self.packages=None
         self.buildhistory=False
         self.gplv3=True
         self.multilib=False
@@ -59,7 +60,11 @@ class CreateAutoConf(ShellCommand):
         else:
             if self.distro != "oecore":
                 fout = fout + 'DISTRO = "' + self.distro + '"\n'
-            fout = fout + 'PACKAGE_CLASSES = "package_rpm package_deb package_ipk"\n'
+            if self.packages:
+                self.classes = [ "package_%s" % p for p in self.packages.split() ]
+                fout = fout + 'PACKAGE_CLASSES = "' + " ".join(self.classes) + '"\n'
+            else:
+                fout = fout + 'PACKAGE_CLASSES = "package_rpm package_deb package_ipk"\n'
             fout = fout + 'BB_NUMBER_THREADS = "' + os.environ.get('BB_NUMBER_THREADS') + '"\n'
             fout = fout + 'PARALLEL_MAKE = "-j ' + os.environ.get('PARALLEL_MAKE') + '"\n'
             fout = fout + 'SDKMACHINE ?= "' + self.SDKMACHINE + '"\n'
-- 
1.8.1.4




More information about the yocto mailing list