blob: f79fca608e3523430786983fd4734655b02608a8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# Copyright 2006-2007 Openedhand Ltd.
3#
4
5ROOTFS_PKGMANAGE = "dpkg apt"
6ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
7
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"
10do_rootfs[recrdeptask] += "do_package_write_deb"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
12
13do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
14do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
15
16python rootfs_deb_bad_recommendations() {
17 if d.getVar("BAD_RECOMMENDATIONS", True):
18 bb.warn("Debian package install does not support BAD_RECOMMENDATIONS")
19}
20do_rootfs[prefuncs] += "rootfs_deb_bad_recommendations"
21
22DEB_POSTPROCESS_COMMANDS = ""
23
24opkglibdir = "${localstatedir}/lib/opkg"
25
26python () {
27 # Map TARGET_ARCH to Debian's ideas about architectures
28 darch = d.getVar('SDK_ARCH', True)
29 if darch in ["x86", "i486", "i586", "i686", "pentium"]:
30 d.setVar('DEB_SDK_ARCH', 'i386')
31 elif darch == "x86_64":
32 d.setVar('DEB_SDK_ARCH', 'amd64')
33 elif darch == "arm":
34 d.setVar('DEB_SDK_ARCH', 'armel')
35}
36
37# This will of course only work after rootfs_deb_do_rootfs or populate_sdk_deb has been called
38DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg"