summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass8
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
7IMAGE_PKGTYPE ?= "deb" 7IMAGE_PKGTYPE ?= "deb"
8 8
9DPKG_ARCH ?= "${TARGET_ARCH}" 9DPKG_ARCH ?= "${TARGET_ARCH}"
10DPKG_ARCH_arm ?= "armel"
11 10
12PKGWRITEDIRDEB = "${WORKDIR}/deploy-debs" 11PKGWRITEDIRDEB = "${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
413python do_package_write_deb () { 415python do_package_write_deb () {