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_deb.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_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 9a8db4f8f2..c5452475c4 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -4,11 +4,8 @@ | |||
4 | 4 | ||
5 | inherit package | 5 | inherit package |
6 | 6 | ||
7 | PACKAGE_EXTRA_DEPENDS += "dpkg-native fakeroot-native" | ||
8 | |||
9 | BOOTSTRAP_EXTRA_RDEPENDS += "dpkg" | 7 | BOOTSTRAP_EXTRA_RDEPENDS += "dpkg" |
10 | DISTRO_EXTRA_RDEPENDS += "dpkg" | 8 | DISTRO_EXTRA_RDEPENDS += "dpkg" |
11 | PACKAGE_WRITE_FUNCS += "do_package_deb" | ||
12 | IMAGE_PKGTYPE ?= "deb" | 9 | IMAGE_PKGTYPE ?= "deb" |
13 | 10 | ||
14 | python package_deb_fn () { | 11 | python package_deb_fn () { |
@@ -248,3 +245,17 @@ python do_package_deb () { | |||
248 | pass | 245 | pass |
249 | del localdata | 246 | del localdata |
250 | } | 247 | } |
248 | |||
249 | python () { | ||
250 | import bb | ||
251 | if bb.data.getVar('PACKAGES', d, True) != '': | ||
252 | bb.data.setVarFlag('do_package_write_deb', 'depends', 'dpkg-native:do_populate_staging fakeroot-native:do_populate_staging', d) | ||
253 | } | ||
254 | |||
255 | python do_package_write_deb () { | ||
256 | bb.build.exec_func("read_subpackage_metadata", d) | ||
257 | bb.build.exec_func("do_package_deb", d) | ||
258 | } | ||
259 | do_package_write_deb[dirs] = "${D}" | ||
260 | addtask package_write_deb before do_build after do_package | ||
261 | |||