aboutsummaryrefslogtreecommitdiffstats
path: root/classes/srctree.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/srctree.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/srctree.bbclass')
-rw-r--r--classes/srctree.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/classes/srctree.bbclass b/classes/srctree.bbclass
index dbf8ad2c3f..7232c26b12 100644
--- a/classes/srctree.bbclass
+++ b/classes/srctree.bbclass
@@ -26,8 +26,8 @@ def merge_tasks(d):
"""
merge_tasks performs two operations:
1) removes do_patch and its deps from the build entirely.
- 2) merges all of the operations that occur prior to do_populate_staging
- into do_populate_staging.
+ 2) merges all of the operations that occur prior to do_populate_sysroot
+ into do_populate_sysroot.
This is necessary, because of recipe variants (normal, native, cross,
sdk). If a bitbake run happens to want to build more than one of
@@ -50,7 +50,7 @@ def merge_tasks(d):
__gather_taskdeps(task, items)
return items
- newtask = "do_populate_staging"
+ newtask = "do_populate_sysroot"
mergedtasks = gather_taskdeps(newtask)
mergedtasks.pop()
deltasks = gather_taskdeps("do_patch")
@@ -86,14 +86,14 @@ def merge_tasks(d):
depends = (d.getVarFlag(task, "depends") or ""
for task in mergedtasks[:-1]
if not task in deltasks)
- d.setVarFlag("do_populate_staging", "depends", " ".join(depends))
+ d.setVarFlag("do_populate_sysroot", "depends", " ".join(depends))
python () {
merge_tasks(d)
}
# Manually run do_install & all of its deps, then do_stage
-python do_populate_staging () {
+python do_populate_sysroot () {
from os.path import exists
from bb.build import exec_task, exec_func
from bb import note
@@ -112,4 +112,4 @@ python do_populate_staging () {
rec_exec_task("do_install", set())
exec_func("do_stage", d)
}
-do_populate_staging[lockfiles] += "${S}/.lock"
+do_populate_sysroot[lockfiles] += "${S}/.lock"