Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2006-2007 Openedhand Ltd. |
| 3 | # |
| 4 | |
| 5 | ROOTFS_PKGMANAGE = "dpkg apt" |
| 6 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" |
| 7 | |
| 8 | do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot" |
| 9 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" |
| 10 | do_rootfs[recrdeptask] += "do_package_write_deb" |
| 11 | rootfs_deb_do_rootfs[vardepsexclude] += "BUILDNAME" |
| 12 | do_rootfs[vardeps] += "PACKAGE_FEED_URIS" |
| 13 | |
| 14 | do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
| 15 | do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
| 16 | |
| 17 | python rootfs_deb_bad_recommendations() { |
| 18 | if d.getVar("BAD_RECOMMENDATIONS", True): |
| 19 | bb.warn("Debian package install does not support BAD_RECOMMENDATIONS") |
| 20 | } |
| 21 | do_rootfs[prefuncs] += "rootfs_deb_bad_recommendations" |
| 22 | |
| 23 | DEB_POSTPROCESS_COMMANDS = "" |
| 24 | |
| 25 | opkglibdir = "${localstatedir}/lib/opkg" |
| 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 | # This will of course only work after rootfs_deb_do_rootfs or populate_sdk_deb has been called |
| 39 | DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg" |