From patchwork Tue May 10 05:26:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [03/30] conf/layer.conf: Use .= to append to BBPATH and =+ for BBFILES Date: Tue, 10 May 2011 05:26:14 -0000 From: Saul Wold X-Patchwork-Id: 3593 Message-Id: <491cfc546a2843493cf466c1e1af11ec8ac2dcee.1305004776.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: From: Khem Raj Appending to BBPATH gives a definite order to BBLAYERS which means paths are preferred in order from left to right. [sgw: merged in comment] Signed-off-by: Khem Raj Signed-off-by: Saul Wold --- meta/conf/layer.conf | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 3f63c7d..10a6948 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf @@ -2,7 +2,15 @@ BBPATH ?= "" # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have a packages directory, add to BBFILES -BBFILES += "${LAYERDIR}/packages/*/*.bb ${LAYERDIR}/recipes-*/*/*.bb" +# packages is still there because metadata_scm.bbclass still uses +# it to deduce the repo directory and thats the reason to prepend +# to BBFILES here because this class uses the first entry in +# BBFILES to calculate the scm base. +# since the order of BBFLILES is not that important its acted upon +# using BBFILES_PRIORITY we are ok to keep the oe-core BBFILES dir +# at top + +BBFILES =+ "${LAYERDIR}/packages/*/*.bb ${LAYERDIR}/recipes-*/*/*.bb" BBFILE_COLLECTIONS += "normal" BBFILE_PATTERN_normal := "^${LAYERDIR}/"