mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
As per lib/oe/rootfs.py and lib/oe/package_manager/???/__init__.py
the PACKAGE_FEED baseurl is defined as the joined paths of:
URIS/BASE_PATHS/ARCHS
Therefore, the do_rootfs task should depend furthermore on
PACKAGE_FEED_{BASE_PATHS,ARCHS} to properly retrigger a build if
the value changes.
(From OE-Core rev: e5329464f5ebad909c4c9bd27a718bbd8f4cc221)
Signed-off-by: Loic Domaigne (ljd) <tech@domaigne.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
#
|
|
# Copyright 2006-2007 Openedhand Ltd.
|
|
#
|
|
|
|
ROOTFS_PKGMANAGE = "dpkg apt"
|
|
|
|
do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot"
|
|
do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot"
|
|
do_rootfs[recrdeptask] += "do_package_write_deb do_package_qa"
|
|
do_rootfs[vardeps] += "PACKAGE_FEED_URIS PACKAGE_FEED_BASE_PATHS PACKAGE_FEED_ARCHS"
|
|
|
|
do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
|
|
do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
|
|
do_populate_sdk_ext[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
|
|
|
|
python rootfs_deb_bad_recommendations() {
|
|
if d.getVar("BAD_RECOMMENDATIONS"):
|
|
bb.warn("Debian package install does not support BAD_RECOMMENDATIONS")
|
|
}
|
|
do_rootfs[prefuncs] += "rootfs_deb_bad_recommendations"
|
|
|
|
DEB_POSTPROCESS_COMMANDS = ""
|
|
|
|
opkglibdir = "${localstatedir}/lib/opkg"
|
|
|
|
python () {
|
|
# Map TARGET_ARCH to Debian's ideas about architectures
|
|
darch = d.getVar('SDK_ARCH')
|
|
if darch in ["x86", "i486", "i586", "i686", "pentium"]:
|
|
d.setVar('DEB_SDK_ARCH', 'i386')
|
|
elif darch == "x86_64":
|
|
d.setVar('DEB_SDK_ARCH', 'amd64')
|
|
elif darch == "arm":
|
|
d.setVar('DEB_SDK_ARCH', 'armel')
|
|
}
|