aboutsummaryrefslogtreecommitdiffstats
path: root/classes/staging.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-03-30 14:47:57 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-05 15:04:57 +0100
commit838a58ab01a9f325430fe6c4cc1dac7c2255a69c (patch)
treeca2b0e767dffe00aed392c8fd37be32aeb869d7e /classes/staging.bbclass
parent692f64df9aa931780b98a9dc8505cfa7b61fbac0 (diff)
downloadopenembedded-838a58ab01a9f325430fe6c4cc1dac7c2255a69c.tar.gz
bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change, pulled from Poky, makes the purpose of the staging directory more obvious and the taskname more true to what it now actually does. The layout version number is increased due to the change in layout but code to convert existing directories and insert a symlink for backwards compatibility is included. This patch also includes fixes for all recipes which reference the directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'classes/staging.bbclass')
-rw-r--r--classes/staging.bbclass21
1 files changed, 11 insertions, 10 deletions
diff --git a/classes/staging.bbclass b/classes/staging.bbclass
index 263ac915f2..a81ea865ea 100644
--- a/classes/staging.bbclass
+++ b/classes/staging.bbclass
@@ -1,9 +1,9 @@
-python populate_staging_prehook () {
- return
+python populate_sysroot_prehook () {
+ return
}
-python populate_staging_posthook () {
- return
+python populate_sysroot_posthook () {
+ return
}
packagedstaging_fastpath () {
@@ -109,21 +109,22 @@ def is_legacy_staging(d):
legacy = True
return legacy
-do_populate_staging[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGET}/${libdir} \
+do_populate_sysroot[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGET}/${libdir} \
${STAGING_DIR_TARGET}/${includedir} \
${STAGING_BINDIR_NATIVE} ${STAGING_LIBDIR_NATIVE} \
${STAGING_INCDIR_NATIVE} \
${STAGING_DATADIR} \
${S} ${B}"
-# Could be compile but populate_staging and do_install shouldn't run at the same time
-addtask populate_staging after do_install before do_build
+# Could be compile but populate_sysroot and do_install shouldn't run at the same time
+addtask populate_sysroot after do_install
SYSROOT_PREPROCESS_FUNCS ?= ""
SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/"
SYSROOT_LOCK = "${STAGING_DIR}/staging.lock"
-python do_populate_staging () {
+
+python do_populate_sysroot () {
#
# if do_stage exists, we're legacy. In that case run the do_stage,
# modify the SYSROOT_DESTDIR variable and then run the staging preprocess
@@ -150,11 +151,11 @@ python do_populate_staging () {
if bb.data.getVarFlags('do_stage', d) is None:
bb.fatal("This recipe (%s) has a do_stage_prepend or do_stage_append and do_stage now doesn't exist. Please rename this to do_stage()" % bb.data.getVar("FILE", d, True))
lock = bb.utils.lockfile(lockfile)
- bb.build.exec_func('populate_staging_prehook', d)
+ bb.build.exec_func('populate_sysroot_prehook', d)
bb.build.exec_func('do_stage', d)
for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
bb.build.exec_func(f, d)
- bb.build.exec_func('populate_staging_posthook', d)
+ bb.build.exec_func('populate_sysroot_posthook', d)
bb.utils.unlockfile(lock)
else:
dest = bb.data.getVar('D', d, True)