summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-03 22:02:34 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:23 +0000
commit379bc4788f592f958f358f68c9de9a8a0f400631 (patch)
tree8ca401bfb54feb8f03378ab95c84f5d87bd380b1 /meta/classes/base.bbclass
parentd7399bd56c8fc7c58af79ef91dc67382cc23eb47 (diff)
downloadast2050-yocto-poky-379bc4788f592f958f358f68c9de9a8a0f400631.zip
ast2050-yocto-poky-379bc4788f592f958f358f68c9de9a8a0f400631.tar.gz
classes: Various staging improvement fixups
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass19
1 files changed, 9 insertions, 10 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 086a6d0..f0142ad 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -626,14 +626,12 @@ base_do_buildall() {
:
}
-
-
def subprocess_setup():
- import signal
- # Python installs a SIGPIPE handler by default. This is usually not what
- # non-Python subprocesses expect.
- # SIGPIPE errors are known issues with gzip/bash
- signal.signal(signal.SIGPIPE, signal.SIG_DFL)
+ import signal
+ # Python installs a SIGPIPE handler by default. This is usually not what
+ # non-Python subprocesses expect.
+ # SIGPIPE errors are known issues with gzip/bash
+ signal.signal(signal.SIGPIPE, signal.SIG_DFL)
def oe_unpack_file(file, data, url = None):
import bb, os, subprocess
@@ -981,6 +979,7 @@ sysroot_stage_all() {
}
def is_legacy_staging(d):
+ import bb
stagefunc = bb.data.getVar('do_stage', d, True)
legacy = True
if stagefunc is None:
@@ -1016,7 +1015,7 @@ python populate_staging_posthook () {
return
}
-packagedstageing_fastpath () {
+packagedstaging_fastpath () {
:
}
@@ -1052,10 +1051,10 @@ python do_populate_staging () {
#os.system('cp -pPR %s/* %s/' % (dest, sysrootdest))
for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
bb.build.exec_func(f, d)
- bb.build.exec_func("packagedstageing_fastpath", d)
+ bb.build.exec_func("packagedstaging_fastpath", d)
lock = bb.utils.lockfile(lockfile)
- os.system('cp -pPR %s/* /' % (sysrootdest))
+ os.system(bb.data.expand('cp -pPR ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}/* ${STAGING_DIR_TARGET}/', d))
bb.utils.unlockfile(lock)
}
OpenPOWER on IntegriCloud