[gnome-continuous/wip/platform: 4/9] Add separate yocto base for platform



commit 12449464174ed3049a0915798aee9f2373e26af2
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Sep 8 11:23:56 2014 +0200

    Add separate yocto base for platform
    
    This allows us to make the platform image much smaller.

 src/js/tasks/task-build.js |    8 ++++++--
 src/ostree-build-yocto     |    4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index cbc26b0..35be635 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -1222,7 +1222,7 @@ const TaskBuild = new Lang.Class({
         env['SSTATE_DIR'] = sstateDir.get_path();
         ProcUtil.runSync(cmd, cancellable, {env:ProcUtil.objectToEnvironment(env)});
 
-       let componentTypes = ['runtime', 'devel'];
+       let componentTypes = ['runtime', 'devel', 'platform'];
         for (let i = 0; i < componentTypes.length; i++) {
            let componentType = componentTypes[i];
            let treename = Format.vprintf('%s/bases/%s/%s-%s', [this.osname, basename, architecture, 
componentType]);
@@ -1465,15 +1465,19 @@ const TaskBuild = new Lang.Class({
 
                 let baseRuntimeRef = baseName + '/' + architecture + '-runtime';
                 let buildrootRef = baseName + '/' + architecture + '-devel';
+                let platformRef = baseName + '/' + architecture + '-platform';
                let baseRef;
                 if (targetComponentType == 'runtime' || targetComponentType == 'hwtest') {
                     baseRef = baseRuntimeRef;
+                } else if (targetComponentType == 'platform') {
+                    baseRef = platformRef;
                 } else {
                     baseRef = buildrootRef;
                }
                 target['base'] = {'name': baseRef,
                                   'runtime': baseRuntimeRef,
-                                  'devel': buildrootRef};
+                                  'devel': buildrootRef,
+                                  'platform': platformRef};
 
                let targetComponents;
                 if (targetComponentType == 'runtime') {
diff --git a/src/ostree-build-yocto b/src/ostree-build-yocto
index c03e6e0..f29006b 100644
--- a/src/ostree-build-yocto
+++ b/src/ostree-build-yocto
@@ -89,8 +89,8 @@ IMAGEDIR=${builddir}/tmp-eglibc/deploy/images
 mkdir -p "${IMAGEDIR}"
 ln -sf ${repo_path} ${IMAGEDIR}/repo
 
-bitbake gnomeos-contents-{runtime,devel}
+bitbake gnomeos-contents-{runtime,devel,platform}
 
-for basetype in runtime devel; do
+for basetype in runtime devel platform; do
     ln -sf ${builddir}/tmp-eglibc/deploy/images/gnomeos-contents-${basetype}-${MACHINE}.tar.gz 
gnomeos-contents-${basetype}-${architecture}.tar.gz
 done


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