summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-14 14:32:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 18:21:46 +0100
commit2501287c69c67579f86b75839a410e5808f528dc (patch)
treecaaae6c93a7abe4005c868eb90dff48671c8d20d /meta/classes/rootfs_deb.bbclass
parente6837f785c7f6363697ca9a2d80df006d420ce92 (diff)
downloadpoky-2501287c69c67579f86b75839a410e5808f528dc.tar.gz
rootfs_*: Refactor common depends/lockfile task flags
(From OE-Core rev: 96427656ef73bb50753a33ec6ad5e73de711ceb3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r--meta/classes/rootfs_deb.bbclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index 5add7a8a5f..d51b4582d2 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -6,11 +6,13 @@ ROOTFS_PKGMANAGE = "dpkg apt"
6ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" 6ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
7 7
8do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot" 8do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot"
9do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot"
9do_rootfs[recrdeptask] += "do_package_write_deb" 10do_rootfs[recrdeptask] += "do_package_write_deb"
10rootfs_deb_do_rootfs[vardepsexclude] += "BUILDNAME" 11rootfs_deb_do_rootfs[vardepsexclude] += "BUILDNAME"
11do_rootfs[vardeps] += "PACKAGE_FEED_URIS" 12do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
12 13
13do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" 14do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
15do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
14 16
15python rootfs_deb_bad_recommendations() { 17python rootfs_deb_bad_recommendations() {
16 if d.getVar("BAD_RECOMMENDATIONS", True): 18 if d.getVar("BAD_RECOMMENDATIONS", True):
@@ -22,8 +24,6 @@ DEB_POSTPROCESS_COMMANDS = ""
22 24
23opkglibdir = "${localstatedir}/lib/opkg" 25opkglibdir = "${localstatedir}/lib/opkg"
24 26
25do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot"
26
27python () { 27python () {
28 # Map TARGET_ARCH to Debian's ideas about architectures 28 # Map TARGET_ARCH to Debian's ideas about architectures
29 darch = d.getVar('SDK_ARCH', True) 29 darch = d.getVar('SDK_ARCH', True)
@@ -35,8 +35,5 @@ python () {
35 d.setVar('DEB_SDK_ARCH', 'armel') 35 d.setVar('DEB_SDK_ARCH', 'armel')
36} 36}
37 37
38
39do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
40
41# This will of course only work after rootfs_deb_do_rootfs or populate_sdk_deb has been called 38# This will of course only work after rootfs_deb_do_rootfs or populate_sdk_deb has been called
42DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg" 39DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg"