mirror of
https://git.yoctoproject.org/poky
synced 2026-02-12 03:33:02 +01:00
If building with SDKMACHINE=i686 and using the deb backend, populate_sdk would fail. Its clear when looking at the options that the 32 bit values were overwritten. Replace this code with code similar to that used in package_deb itself. [YOCTO #6458] (From OE-Core rev: 2a7c6f6d3e9d1eedffb79f2347400509feed5dd7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
19 lines
741 B
Plaintext
19 lines
741 B
Plaintext
do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot"
|
|
|
|
python () {
|
|
# Map TARGET_ARCH to Debian's ideas about architectures
|
|
darch = d.getVar('SDK_ARCH', True)
|
|
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')
|
|
}
|
|
|
|
|
|
do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
|
|
|
|
# This will of course only work after rootfs_deb_do_rootfs or populate_sdk_deb has been called
|
|
DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg-query --admindir=$INSTALL_ROOTFS_DEB/var/lib/dpkg"
|