blob: 2b93796a764384a8ec76362b3714c755da5dde2c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# Copyright 2006-2007 Openedhand Ltd.
3#
4
5ROOTFS_PKGMANAGE = "dpkg apt"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot"
8do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009do_rootfs[recrdeptask] += "do_package_write_deb do_package_qa"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010do_rootfs[vardeps] += "PACKAGE_FEED_URIS"
11
12do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
13do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014do_populate_sdk_ext[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16python rootfs_deb_bad_recommendations() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017 if d.getVar("BAD_RECOMMENDATIONS"):
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018 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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 darch = d.getVar('SDK_ARCH')
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 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}