summaryrefslogtreecommitdiff
path: root/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-09-04 08:38:17 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-09-04 08:38:17 +0000
commit52b47c22bb23cfd473600fd484d8879001e772a6 (patch)
treed4a381424e54dbc7a1cde9aacf40db8865650d87 /classes/package.bbclass
parentd50cfb53ec731680c3a7cfb772f27308acff0f06 (diff)
package*.bbclass: Switch to separate tasks for each packing type (from poky)
Diffstat (limited to 'classes/package.bbclass')
-rw-r--r--classes/package.bbclass19
1 files changed, 3 insertions, 16 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index fe48ec6afd..5bff49584e 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -120,18 +120,12 @@ PACKAGE_DEPENDS += "file-native"
python () {
import bb
-
if bb.data.getVar('PACKAGES', d, True) != '':
deps = bb.data.getVarFlag('do_package', 'depends', d) or ""
for dep in (bb.data.getVar('PACKAGE_DEPENDS', d, True) or "").split():
deps += " %s:do_populate_staging" % dep
bb.data.setVarFlag('do_package', 'depends', deps, d)
- deps = bb.data.getVarFlag('do_package_write', 'depends', d) or ""
- for dep in (bb.data.getVar('PACKAGE_EXTRA_DEPENDS', d, True) or "").split():
- deps += " %s:do_populate_staging" % dep
- bb.data.setVarFlag('do_package_write', 'depends', deps, d)
-
# shlibs requires any DEPENDS to have already packaged for the *.list files
bb.data.setVarFlag('do_package', 'deptask', 'do_package', d)
}
@@ -906,21 +900,14 @@ python package_do_package () {
do_package[dirs] = "${D}"
addtask package before do_build after do_install
-
-
-PACKAGE_WRITE_FUNCS ?= "read_subpackage_metadata"
-
-python package_do_package_write () {
- for f in (bb.data.getVar('PACKAGE_WRITE_FUNCS', d, 1) or '').split():
- bb.build.exec_func(f, d)
+# Dummy task to mark when all packaging is complete
+do_package_write () {
+ :
}
-do_package_write[dirs] = "${D}"
addtask package_write before do_build after do_package
-
EXPORT_FUNCTIONS do_package do_package_write
-
#
# Helper functions for the package writing classes
#