packaged-staging: Place cross/native/etc into the normal path
authorTom Rini <tom_rini@mentor.com>
Tue, 27 Jul 2010 23:06:26 +0000 (16:06 -0700)
committerTom Rini <tom_rini@mentor.com>
Tue, 27 Jul 2010 23:10:29 +0000 (16:10 -0700)
With the changes to move ${CROSS_DIR} into sysroots/ we now
$ORIGIN-mangle cross packages (and already were native) so change
the comment from cross.bbclass while we're at this and then put
these recipes into the usual packaged-staging cache.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/cross.bbclass
classes/packaged-staging.bbclass

index 75b2abe..db86192 100644 (file)
@@ -1,4 +1,4 @@
-# Disabled for now since the relocation paths are too long
+# We want cross packages to be relocatable
 inherit relocatable
 
 # Cross packages are built indirectly via dependency,
index fda1431..9f36948 100644 (file)
@@ -40,9 +40,6 @@ python () {
     # These classes encode staging paths into the binary data so can only be
     # reused if the path doesn't change/
     if bb.data.inherits_class('native', d) or bb.data.inherits_class('cross', d) or bb.data.inherits_class('sdk', d) or bb.data.inherits_class('crosssdk', d):
-        path = bb.data.getVar('PSTAGE_PKGPATH', d, 1)
-        path = path + bb.data.getVar('TMPDIR', d, 1).replace('/', '-')
-        bb.data.setVar('PSTAGE_PKGPATH', path, d)
         scan_cmd = "grep -Irl ${STAGING_DIR} ${PSTAGE_TMPDIR_STAGE}"
         bb.data.setVar('PSTAGE_SCAN_CMD', scan_cmd, d)