diff options
| -rw-r--r-- | meta/classes/package_deb.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 455919913b..853b5ea8a3 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
| @@ -7,7 +7,6 @@ inherit package | |||
| 7 | IMAGE_PKGTYPE ?= "deb" | 7 | IMAGE_PKGTYPE ?= "deb" |
| 8 | 8 | ||
| 9 | DPKG_ARCH ?= "${TARGET_ARCH}" | 9 | DPKG_ARCH ?= "${TARGET_ARCH}" |
| 10 | DPKG_ARCH_arm ?= "armel" | ||
| 11 | 10 | ||
| 12 | PKGWRITEDIRDEB = "${WORKDIR}/deploy-debs" | 11 | PKGWRITEDIRDEB = "${WORKDIR}/deploy-debs" |
| 13 | 12 | ||
| @@ -406,8 +405,11 @@ python () { | |||
| 406 | d.setVarFlag('do_package_write_deb_setscene', 'fakeroot', "1") | 405 | d.setVarFlag('do_package_write_deb_setscene', 'fakeroot', "1") |
| 407 | 406 | ||
| 408 | # Map TARGET_ARCH to Debian's ideas about architectures | 407 | # Map TARGET_ARCH to Debian's ideas about architectures |
| 409 | if d.getVar('DPKG_ARCH', True) in ["x86", "i486", "i586", "i686", "pentium"]: | 408 | darch = d.getVar('DPKG_ARCH', True) |
| 410 | d.setVar('DPKG_ARCH', 'i386') | 409 | if darch in ["x86", "i486", "i586", "i686", "pentium"]: |
| 410 | d.setVar('DPKG_ARCH', 'i386') | ||
| 411 | elif darch == "arm": | ||
| 412 | d.setVar('DPKG_ARCH', 'armel') | ||
| 411 | } | 413 | } |
| 412 | 414 | ||
| 413 | python do_package_write_deb () { | 415 | python do_package_write_deb () { |
