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" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot" |
| 8 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | do_rootfs[recrdeptask] += "do_package_write_deb do_package_qa" |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 10 | do_rootfs[vardeps] += "PACKAGE_FEED_URIS PACKAGE_FEED_BASE_PATHS PACKAGE_FEED_ARCHS" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
| 13 | do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | do_populate_sdk_ext[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | python rootfs_deb_bad_recommendations() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | if d.getVar("BAD_RECOMMENDATIONS"): |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | bb.warn("Debian package install does not support BAD_RECOMMENDATIONS") |
| 19 | } |
| 20 | do_rootfs[prefuncs] += "rootfs_deb_bad_recommendations" |
| 21 | |
| 22 | DEB_POSTPROCESS_COMMANDS = "" |
| 23 | |
| 24 | opkglibdir = "${localstatedir}/lib/opkg" |
| 25 | |
| 26 | python () { |
| 27 | # Map TARGET_ARCH to Debian's ideas about architectures |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 28 | darch = d.getVar('SDK_ARCH') |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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') |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame^] | 35 | elif darch == "aarch64": |
| 36 | d.setVar('DEB_SDK_ARCH', 'arm64') |
| 37 | else: |
| 38 | bb.fatal("Unhandled SDK_ARCH %s" % darch) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | } |