diff options
author | Richard Purdie <richard@openedhand.com> | 2007-08-21 09:37:30 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-08-21 09:37:30 +0000 |
commit | 48fd37f5f9f2907d2c6f5d547e8471b232eadc90 (patch) | |
tree | 44b13b0d5d4381cce7cab8edd62fdd817d97ac6d /meta/classes/package_ipk.bbclass | |
parent | 005bf0112ced82ef5e98de4854c0fa749e52d4d6 (diff) | |
download | poky-48fd37f5f9f2907d2c6f5d547e8471b232eadc90.tar.gz |
packaging: Split deb and ipk creation into separate tasks so changing the packaging type means the new type of packages are automatically generated.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2526 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r-- | meta/classes/package_ipk.bbclass | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 0cdd941f41..2c75cd1838 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -1,10 +1,7 @@ | |||
1 | inherit package | 1 | inherit package |
2 | 2 | ||
3 | PACKAGE_EXTRA_DEPENDS += "ipkg-utils-native fakeroot-native" | ||
4 | |||
5 | BOOTSTRAP_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" | 3 | BOOTSTRAP_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" |
6 | DISTRO_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" | 4 | DISTRO_EXTRA_RDEPENDS += "ipkg-collateral ipkg ipkg-link" |
7 | PACKAGE_WRITE_FUNCS += "do_package_ipk" | ||
8 | IMAGE_PKGTYPE ?= "ipk" | 5 | IMAGE_PKGTYPE ?= "ipk" |
9 | 6 | ||
10 | python package_ipk_fn () { | 7 | python package_ipk_fn () { |
@@ -242,3 +239,16 @@ python do_package_ipk () { | |||
242 | pass | 239 | pass |
243 | del localdata | 240 | del localdata |
244 | } | 241 | } |
242 | |||
243 | python () { | ||
244 | import bb | ||
245 | if bb.data.getVar('PACKAGES', d, True) != '': | ||
246 | bb.data.setVarFlag('do_package_write_ipk', 'depends', 'ipkg-utils-native:do_populate_staging fakeroot-native:do_populate_staging', d) | ||
247 | } | ||
248 | |||
249 | python do_package_write_ipk () { | ||
250 | bb.build.exec_func("read_subpackage_metadata", d) | ||
251 | bb.build.exec_func("do_package_ipk", d) | ||
252 | } | ||
253 | do_package_write_ipk[dirs] = "${D}" | ||
254 | addtask package_write_ipk before do_build after do_package | ||