1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

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
This commit is contained in:
Richard Purdie
2007-08-21 09:37:30 +00:00
parent 005bf0112c
commit 48fd37f5f9
8 changed files with 61 additions and 35 deletions
+14 -3
View File
@@ -4,11 +4,8 @@
inherit package
PACKAGE_EXTRA_DEPENDS += "dpkg-native fakeroot-native"
BOOTSTRAP_EXTRA_RDEPENDS += "dpkg"
DISTRO_EXTRA_RDEPENDS += "dpkg"
PACKAGE_WRITE_FUNCS += "do_package_deb"
IMAGE_PKGTYPE ?= "deb"
python package_deb_fn () {
@@ -248,3 +245,17 @@ python do_package_deb () {
pass
del localdata
}
python () {
import bb
if bb.data.getVar('PACKAGES', d, True) != '':
bb.data.setVarFlag('do_package_write_deb', 'depends', 'dpkg-native:do_populate_staging fakeroot-native:do_populate_staging', d)
}
python do_package_write_deb () {
bb.build.exec_func("read_subpackage_metadata", d)
bb.build.exec_func("do_package_deb", d)
}
do_package_write_deb[dirs] = "${D}"
addtask package_write_deb before do_build after do_package