[gnome-ostree] ostree-build-yocto: Read LAYERS file



commit 7218965fded504c20d45c54b154266e3837f7628
Author: Colin Walters <walters verbum org>
Date:   Wed Mar 13 09:24:17 2013 -0400

    ostree-build-yocto: Read LAYERS file
    
    This ties the set of layers to build to the git repository, and avoids
    a synchronization point.

 src/ostree-build-yocto |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/ostree-build-yocto b/src/ostree-build-yocto
index 8107e78..d426332 100644
--- a/src/ostree-build-yocto
+++ b/src/ostree-build-yocto
@@ -40,6 +40,12 @@ test -n "${repo_path}" || (usage; exit 1)
 
 . "${srcdir}/oe-init-build-env" "${builddir}"
 
+LAYERNAMES=$(cat ${srcdir}/LAYERS)
+LAYERS=""
+for layername in ${LAYERNAMES}; do
+    LAYERS="${LAYERS} \${OSTREE_SRCDIR}/${layername}"
+done
+
 cat > ${builddir}/conf/bblayers.conf <<EOF
 # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
 # changes incompatibly
@@ -48,12 +54,8 @@ LCONF_VERSION = "6"
 BBPATH = "\${TOPDIR}"
 BBFILES ?= ""
 
-BBLAYERS ?= " \
-  ${srcdir}/meta \
-  ${srcdir}/meta-yocto \
-  ${srcdir}/meta-yocto-bsp \
-  ${srcdir}/meta-gnomeos \
-  "
+OSTREE_SRCDIR = "${srcdir}"
+BBLAYERS ?= "${LAYERS}"
 EOF
 
 case "$architecture" in


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