diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-14 14:31:40 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-15 18:21:46 +0100 |
| commit | e6837f785c7f6363697ca9a2d80df006d420ce92 (patch) | |
| tree | 1a0d45633745c800148ca2c058da3a75ab760381 /meta/classes/rootfs_deb.bbclass | |
| parent | 6882d2d9993c8655a292c93e84ea01b4738a700d (diff) | |
| download | poky-e6837f785c7f6363697ca9a2d80df006d420ce92.tar.gz | |
classes: Combine rootfs_<pkgtype> and populate_sdk_<pkgtype>
There is no real reason to have these separate files any longer. It does
mean in meta-toolchain type recipes some extra variables are defined but
it also means the common code can be grouped and maintained together
which I believe is more beneficial. We therefore merge the classes.
(From OE-Core rev: 2cf42b49003494e1b10775523c9a2547eaf16ea4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
| -rw-r--r-- | meta/classes/rootfs_deb.bbclass | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index a42a472822..5add7a8a5f 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass | |||
| @@ -22,3 +22,21 @@ DEB_POSTPROCESS_COMMANDS = "" | |||
| 22 | 22 | ||
| 23 | opkglibdir = "${localstatedir}/lib/opkg" | 23 | opkglibdir = "${localstatedir}/lib/opkg" |
| 24 | 24 | ||
| 25 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" | ||
| 26 | |||
| 27 | python () { | ||
| 28 | # Map TARGET_ARCH to Debian's ideas about architectures | ||
| 29 | darch = d.getVar('SDK_ARCH', True) | ||
| 30 | if darch in ["x86", "i486", "i586", "i686", "pentium"]: | ||
| 31 | d.setVar('DEB_SDK_ARCH', 'i386') | ||
| 32 | elif darch == "x86_64": | ||
| 33 | d.setVar('DEB_SDK_ARCH', 'amd64') | ||
| 34 | elif darch == "arm": | ||
| 35 | d.setVar('DEB_SDK_ARCH', 'armel') | ||
| 36 | } | ||
| 37 | |||
| 38 | |||
| 39 | do_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 | ||
| 42 | DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg" | ||
