]> code.ossystems Code Review - openembedded-core.git/commitdiff
Switch to bblayers configuration
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 22 Mar 2010 18:11:41 +0000 (18:11 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 22 Mar 2010 18:11:41 +0000 (18:11 +0000)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
build/conf/bblayers.conf.sample [new file with mode: 0644]
build/conf/local.conf.sample
meta-moblin/conf/layer.conf [new file with mode: 0644]
meta/conf/layer.conf [new file with mode: 0644]
scripts/poky-env-internal

diff --git a/build/conf/bblayers.conf.sample b/build/conf/bblayers.conf.sample
new file mode 100644 (file)
index 0000000..3ea6eda
--- /dev/null
@@ -0,0 +1,5 @@
+BBFILES ?= ""
+BBLAYERS = " \
+  ${OEROOT}/meta \
+  ${OEROOT}/meta-moblin \
+  "
index e195b33b88bf9b82c1042cc1b92e7523714ae0b0..959a3b9a3e857b4f9cdbbba44bea707e9b452b62 100644 (file)
@@ -2,16 +2,6 @@
 DL_DIR ?= "${OEROOT}/sources"
 # Where to cache Poky's built staging output
 PSTAGE_DIR ?= "${OEROOT}/pstage"
-BBFILES += "\
-    ${OEROOT}/meta/packages/*/*.bb \
-    ${OEROOT}/meta-moblin/packages/*/*.bb"
-
-BBFILE_COLLECTIONS = "normal moblin"
-BBFILE_PATTERN_normal = "^${OEROOT}/meta/"
-BBFILE_PATTERN_moblin = "^${OEROOT}/meta-moblin/"
-
-BBFILE_PRIORITY_normal = "5"
-BBFILE_PRIORITY_moblin = "5"
 
 # Uncomment and set to allow bitbake to execute multiple tasks at once.
 # For a quadcore, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
diff --git a/meta-moblin/conf/layer.conf b/meta-moblin/conf/layer.conf
new file mode 100644 (file)
index 0000000..ce5b0ac
--- /dev/null
@@ -0,0 +1,9 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH := "${BBPATH}${LAYERDIR}"
+
+# We have a packages directory, add to BBFILES
+BBFILES := "${BBFILES} ${LAYERDIR}/packages/*/*.bb"
+
+BBFILE_COLLECTIONS += "moblin"
+BBFILE_PATTERN_moblin := "^${OEROOT}/meta-moblin/"
+BBFILE_PRIORITY_moblin = "5"
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
new file mode 100644 (file)
index 0000000..567964f
--- /dev/null
@@ -0,0 +1,11 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH := "${BBPATH}${LAYERDIR}"
+
+# We have a packages directory, add to BBFILES
+BBFILES := "${BBFILES} ${LAYERDIR}/packages/*/*.bb"
+
+BBFILE_COLLECTIONS += "normal""
+BBFILE_PATTERN_normal := "^${LAYERDIR}/meta/"
+BBFILE_PRIORITY_normal = "5"
+
+
index 4bfcf63c595284014e8a4ee1fc5447cb05329a33..b931e2932336f43e676d6757c48c2350288efad7 100755 (executable)
@@ -93,11 +93,17 @@ fi
 if [ "x" = "x$POKYLOCALCONF" ]; then
     POKYLOCALCONF="$BUILDDIR/conf/local.conf.sample"
 fi
-
 if ! (test -r "$BUILDDIR/conf/local.conf"); then
     cp -f $POKYLOCALCONF $BUILDDIR/conf/local.conf
 fi
 
+if [ "x" = "x$POKYLAYERCONF" ]; then
+    POKYLAYERCONF="$BUILDDIR/conf/bblayers.conf.sample"
+fi
+if ! (test -r "$BUILDDIR/conf/bblayers.conf"); then
+    cp -f $POKYLAYERCONF $BUILDDIR/conf/bblayers.conf
+fi
+
 export BBPATH OEROOT BUILD_SYS BUILDDIR
 
 # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make