diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-26 10:13:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-27 08:34:45 +0100 |
commit | 984be3314565deba11598aeb3fa57e93cbbf5b2a (patch) | |
tree | ac5e1f2a2a80362f02ce72791804ff697570330f /meta | |
parent | 96ee64c96b7881163808a1786e1a2d21b2f4b0d9 (diff) | |
download | poky-984be3314565deba11598aeb3fa57e93cbbf5b2a.tar.gz |
populate_sdk_deb: Fix non x86_64 SDK builds
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: 9c45575a9df01f0d36fb03120ec86d55b15819f3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_deb.bbclass | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta/classes/populate_sdk_deb.bbclass b/meta/classes/populate_sdk_deb.bbclass index acb1f73983..6690e2e2ed 100644 --- a/meta/classes/populate_sdk_deb.bbclass +++ b/meta/classes/populate_sdk_deb.bbclass | |||
@@ -1,11 +1,16 @@ | |||
1 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" | 1 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" |
2 | 2 | ||
3 | DEB_SDK_ARCH = "${@[d.getVar('SDK_ARCH', True), "i386"]\ | 3 | python () { |
4 | [d.getVar('SDK_ARCH', True) in \ | 4 | # Map TARGET_ARCH to Debian's ideas about architectures |
5 | ["x86", "i486", "i586", "i686", "pentium"]]}" | 5 | darch = d.getVar('SDK_ARCH', True) |
6 | if darch in ["x86", "i486", "i586", "i686", "pentium"]: | ||
7 | d.setVar('DEB_SDK_ARCH', 'i386') | ||
8 | elif darch == "x86_64": | ||
9 | d.setVar('DEB_SDK_ARCH', 'amd64') | ||
10 | elif darch == "arm": | ||
11 | d.setVar('DEB_SDK_ARCH', 'armel') | ||
12 | } | ||
6 | 13 | ||
7 | DEB_SDK_ARCH = "${@[d.getVar('SDK_ARCH', True), "amd64"]\ | ||
8 | [d.getVar('SDK_ARCH', True) == "x86_64"]}" | ||
9 | 14 | ||
10 | do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" | 15 | do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" |
11 | 16 | ||