summaryrefslogtreecommitdiff
path: root/classes/package_tar.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-09-01 23:40:47 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-09-01 23:40:47 +0000
commit60ee4a5f135a084051d75dc34ac8987c31703d80 (patch)
treeb573b486fb01d95f1690b031795c67ab2de90857 /classes/package_tar.bbclass
parent6d53edfbc3cc84c6ebf88de33fc4fa462ccce825 (diff)
package_x.bbclass: Sync with poky preparing for individual package writing tasks
Diffstat (limited to 'classes/package_tar.bbclass')
-rw-r--r--classes/package_tar.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/package_tar.bbclass b/classes/package_tar.bbclass
index ced7400ac8..a56f2e2b00 100644
--- a/classes/package_tar.bbclass
+++ b/classes/package_tar.bbclass
@@ -98,3 +98,17 @@ python do_package_tar () {
if ret != 0:
bb.error("Creation of tar %s failed." % tarfn)
}
+
+python () {
+ import bb
+ if bb.data.getVar('PACKAGES', d, True) != '':
+ bb.data.setVarFlag('do_package_write_tar', 'depends', 'tar-native:do_populate_staging', d)
+}
+
+
+python do_package_write_tar () {
+ bb.build.exec_func("read_subpackage_metadata", d)
+ bb.build.exec_func("do_package_tar", d)
+}
+do_package_write_tar[dirs] = "${D}"
+#addtask package_write_tar before do_build after do_package