diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-22 18:11:41 +0000 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-22 18:11:41 +0000 |
| commit | 90040ce7b5bcba842f3d1eca92a2dc150fd296fd (patch) | |
| tree | 3211fcabae23477f9244b28d8d1524dac47f00c6 | |
| parent | 666c753d4bf3d6d1defb4e4326a4264b4625aca0 (diff) | |
| download | poky-90040ce7b5bcba842f3d1eca92a2dc150fd296fd.tar.gz | |
Switch to bblayers configuration
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
| -rw-r--r-- | build/conf/bblayers.conf.sample | 5 | ||||
| -rw-r--r-- | build/conf/local.conf.sample | 10 | ||||
| -rw-r--r-- | meta-moblin/conf/layer.conf | 9 | ||||
| -rw-r--r-- | meta/conf/layer.conf | 11 | ||||
| -rwxr-xr-x | scripts/poky-env-internal | 8 |
5 files changed, 32 insertions, 11 deletions
diff --git a/build/conf/bblayers.conf.sample b/build/conf/bblayers.conf.sample new file mode 100644 index 0000000000..3ea6eda66a --- /dev/null +++ b/build/conf/bblayers.conf.sample | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | BBFILES ?= "" | ||
| 2 | BBLAYERS = " \ | ||
| 3 | ${OEROOT}/meta \ | ||
| 4 | ${OEROOT}/meta-moblin \ | ||
| 5 | " | ||
diff --git a/build/conf/local.conf.sample b/build/conf/local.conf.sample index e195b33b88..959a3b9a3e 100644 --- a/build/conf/local.conf.sample +++ b/build/conf/local.conf.sample | |||
| @@ -2,16 +2,6 @@ | |||
| 2 | DL_DIR ?= "${OEROOT}/sources" | 2 | DL_DIR ?= "${OEROOT}/sources" |
| 3 | # Where to cache Poky's built staging output | 3 | # Where to cache Poky's built staging output |
| 4 | PSTAGE_DIR ?= "${OEROOT}/pstage" | 4 | PSTAGE_DIR ?= "${OEROOT}/pstage" |
| 5 | BBFILES += "\ | ||
| 6 | ${OEROOT}/meta/packages/*/*.bb \ | ||
| 7 | ${OEROOT}/meta-moblin/packages/*/*.bb" | ||
| 8 | |||
| 9 | BBFILE_COLLECTIONS = "normal moblin" | ||
| 10 | BBFILE_PATTERN_normal = "^${OEROOT}/meta/" | ||
| 11 | BBFILE_PATTERN_moblin = "^${OEROOT}/meta-moblin/" | ||
| 12 | |||
| 13 | BBFILE_PRIORITY_normal = "5" | ||
| 14 | BBFILE_PRIORITY_moblin = "5" | ||
| 15 | 5 | ||
| 16 | # Uncomment and set to allow bitbake to execute multiple tasks at once. | 6 | # Uncomment and set to allow bitbake to execute multiple tasks at once. |
| 17 | # For a quadcore, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would | 7 | # 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 index 0000000000..ce5b0ac5e8 --- /dev/null +++ b/meta-moblin/conf/layer.conf | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # We have a conf and classes directory, add to BBPATH | ||
| 2 | BBPATH := "${BBPATH}${LAYERDIR}" | ||
| 3 | |||
| 4 | # We have a packages directory, add to BBFILES | ||
| 5 | BBFILES := "${BBFILES} ${LAYERDIR}/packages/*/*.bb" | ||
| 6 | |||
| 7 | BBFILE_COLLECTIONS += "moblin" | ||
| 8 | BBFILE_PATTERN_moblin := "^${OEROOT}/meta-moblin/" | ||
| 9 | BBFILE_PRIORITY_moblin = "5" | ||
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf new file mode 100644 index 0000000000..567964f1ef --- /dev/null +++ b/meta/conf/layer.conf | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # We have a conf and classes directory, add to BBPATH | ||
| 2 | BBPATH := "${BBPATH}${LAYERDIR}" | ||
| 3 | |||
| 4 | # We have a packages directory, add to BBFILES | ||
| 5 | BBFILES := "${BBFILES} ${LAYERDIR}/packages/*/*.bb" | ||
| 6 | |||
| 7 | BBFILE_COLLECTIONS += "normal"" | ||
| 8 | BBFILE_PATTERN_normal := "^${LAYERDIR}/meta/" | ||
| 9 | BBFILE_PRIORITY_normal = "5" | ||
| 10 | |||
| 11 | |||
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal index 4bfcf63c59..b931e29323 100755 --- a/scripts/poky-env-internal +++ b/scripts/poky-env-internal | |||
| @@ -93,11 +93,17 @@ fi | |||
| 93 | if [ "x" = "x$POKYLOCALCONF" ]; then | 93 | if [ "x" = "x$POKYLOCALCONF" ]; then |
| 94 | POKYLOCALCONF="$BUILDDIR/conf/local.conf.sample" | 94 | POKYLOCALCONF="$BUILDDIR/conf/local.conf.sample" |
| 95 | fi | 95 | fi |
| 96 | |||
| 97 | if ! (test -r "$BUILDDIR/conf/local.conf"); then | 96 | if ! (test -r "$BUILDDIR/conf/local.conf"); then |
| 98 | cp -f $POKYLOCALCONF $BUILDDIR/conf/local.conf | 97 | cp -f $POKYLOCALCONF $BUILDDIR/conf/local.conf |
| 99 | fi | 98 | fi |
| 100 | 99 | ||
| 100 | if [ "x" = "x$POKYLAYERCONF" ]; then | ||
| 101 | POKYLAYERCONF="$BUILDDIR/conf/bblayers.conf.sample" | ||
| 102 | fi | ||
| 103 | if ! (test -r "$BUILDDIR/conf/bblayers.conf"); then | ||
| 104 | cp -f $POKYLAYERCONF $BUILDDIR/conf/bblayers.conf | ||
| 105 | fi | ||
| 106 | |||
| 101 | export BBPATH OEROOT BUILD_SYS BUILDDIR | 107 | export BBPATH OEROOT BUILD_SYS BUILDDIR |
| 102 | 108 | ||
| 103 | # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make | 109 | # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make |
