diff options
author | Richard Purdie <richard@openedhand.com> | 2008-03-19 16:07:25 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-03-19 16:07:25 +0000 |
commit | 51fc436f35752269138c65a5bfba90bbe36a12a6 (patch) | |
tree | c8a2a5ae4e314eba6983c5e979bf268fc394cab4 /meta/classes | |
parent | 4b55118c3c20ded8275d725505ba1f3dd5ea65a2 (diff) | |
download | openembedded-core-51fc436f35752269138c65a5bfba90bbe36a12a6.tar.gz openembedded-core-51fc436f35752269138c65a5bfba90bbe36a12a6.tar.bz2 openembedded-core-51fc436f35752269138c65a5bfba90bbe36a12a6.tar.xz openembedded-core-51fc436f35752269138c65a5bfba90bbe36a12a6.zip |
base.bbclass: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4064 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f88d32041..dc5cb03fc 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -368,6 +368,25 @@ oe_libinstall() { __runcmd cd "$olddir" } +def package_stagefile(file, d): + import bb, os + + if bb.data.getVar('PSTAGING_ACTIVE', d, True) == "1": + destfile = file.replace(bb.data.getVar("TMPDIR", d, 1), bb.data.getVar("PSTAGE_TMPDIR_STAGE", d, 1)) + bb.mkdirhier(os.path.dirname(destfile)) + #print "%s to %s" % (file, destfile) + bb.copyfile(file, destfile) + +package_stagefile_shell() { + if [ "$PSTAGING_ACTIVE" = "1" ]; then + srcfile=$1 + destfile=`echo $srcfile | sed s#${TMPDIR}#${PSTAGE_TMPDIR_STAGE}#` + destdir=`dirname $destfile` + mkdir -p $destdir + cp -dp $srcfile $destfile + fi +} + oe_machinstall() { # Purpose: Install machine dependent files, if available # If not available, check if there is a default |