diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-03 22:02:34 +0000 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:23 +0000 |
| commit | 379bc4788f592f958f358f68c9de9a8a0f400631 (patch) | |
| tree | 8ca401bfb54feb8f03378ab95c84f5d87bd380b1 /meta/classes/base.bbclass | |
| parent | d7399bd56c8fc7c58af79ef91dc67382cc23eb47 (diff) | |
| download | 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.bbclass | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 086a6d05d0..f0142add3b 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -626,14 +626,12 @@ base_do_buildall() { | |||
| 626 | : | 626 | : |
| 627 | } | 627 | } |
| 628 | 628 | ||
| 629 | |||
| 630 | |||
| 631 | def subprocess_setup(): | 629 | def subprocess_setup(): |
| 632 | import signal | 630 | import signal |
| 633 | # Python installs a SIGPIPE handler by default. This is usually not what | 631 | # Python installs a SIGPIPE handler by default. This is usually not what |
| 634 | # non-Python subprocesses expect. | 632 | # non-Python subprocesses expect. |
| 635 | # SIGPIPE errors are known issues with gzip/bash | 633 | # SIGPIPE errors are known issues with gzip/bash |
| 636 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) | 634 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) |
| 637 | 635 | ||
| 638 | def oe_unpack_file(file, data, url = None): | 636 | def oe_unpack_file(file, data, url = None): |
| 639 | import bb, os, subprocess | 637 | import bb, os, subprocess |
| @@ -981,6 +979,7 @@ sysroot_stage_all() { | |||
| 981 | } | 979 | } |
| 982 | 980 | ||
| 983 | def is_legacy_staging(d): | 981 | def is_legacy_staging(d): |
| 982 | import bb | ||
| 984 | stagefunc = bb.data.getVar('do_stage', d, True) | 983 | stagefunc = bb.data.getVar('do_stage', d, True) |
| 985 | legacy = True | 984 | legacy = True |
| 986 | if stagefunc is None: | 985 | if stagefunc is None: |
| @@ -1016,7 +1015,7 @@ python populate_staging_posthook () { | |||
| 1016 | return | 1015 | return |
| 1017 | } | 1016 | } |
| 1018 | 1017 | ||
| 1019 | packagedstageing_fastpath () { | 1018 | packagedstaging_fastpath () { |
| 1020 | : | 1019 | : |
| 1021 | } | 1020 | } |
| 1022 | 1021 | ||
| @@ -1052,10 +1051,10 @@ python do_populate_staging () { | |||
| 1052 | #os.system('cp -pPR %s/* %s/' % (dest, sysrootdest)) | 1051 | #os.system('cp -pPR %s/* %s/' % (dest, sysrootdest)) |
| 1053 | for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): | 1052 | for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): |
| 1054 | bb.build.exec_func(f, d) | 1053 | bb.build.exec_func(f, d) |
| 1055 | bb.build.exec_func("packagedstageing_fastpath", d) | 1054 | bb.build.exec_func("packagedstaging_fastpath", d) |
| 1056 | 1055 | ||
| 1057 | lock = bb.utils.lockfile(lockfile) | 1056 | lock = bb.utils.lockfile(lockfile) |
| 1058 | os.system('cp -pPR %s/* /' % (sysrootdest)) | 1057 | os.system(bb.data.expand('cp -pPR ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}/* ${STAGING_DIR_TARGET}/', d)) |
| 1059 | bb.utils.unlockfile(lock) | 1058 | bb.utils.unlockfile(lock) |
| 1060 | } | 1059 | } |
| 1061 | 1060 | ||
