diff options
| -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 | ||
