summaryrefslogtreecommitdiff
path: root/meta/classes/package_tar.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_tar.bbclass')
-rw-r--r--meta/classes/package_tar.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass
index 56bca89a5a..c4bb62f126 100644
--- a/meta/classes/package_tar.bbclass
+++ b/meta/classes/package_tar.bbclass
@@ -24,12 +24,14 @@ python do_package_tar () {
bb.debug(1, "PACKAGES not defined, nothing to package")
return
+ pkgdest = d.getVar('PKGDEST', True)
+
bb.utils.mkdirhier(outdir)
bb.utils.mkdirhier(dvar)
for pkg in packages.split():
localdata = bb.data.createCopy(d)
- root = "%s/install/%s" % (workdir, pkg)
+ root = "%s/%s" % (pkgdest, pkg)
overrides = localdata.getVar('OVERRIDES')
localdata.setVar('OVERRIDES', '%s:%s' % (overrides, pkg))