summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2014-03-11 11:07:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-11 08:11:40 -0700
commit3beb4821122edbc9bedb4473d0b361d18e959add (patch)
treeb26a445eddd29e861fc8c1572191f2c647ed0cb2 /meta/classes/package_deb.bbclass
parent678cca4421c1c54f6bdc0d6ef71e99acd789e28a (diff)
downloadpoky-3beb4821122edbc9bedb4473d0b361d18e959add.tar.gz
package_deb: Map TARGET_ARCH x86_64 to DPKG_ARCH amd64
Without this patch packages are generated as x86_64. Which cannot be installed by default. root@qt5022:~# dpkg -i alsa-utils_1.0.27.2-r0_x86-64.deb dpkg: error processing alsa-utils_1.0.27.2-r0_x86-64.deb (--install): package architecture (x86-64) does not match system (amd64) Errors were encountered while processing: alsa-utils_1.0.27.2-r0_x86-64.deb (From OE-Core rev: a08eacc6d821d6946b23a99bca5abf785875b1cf) Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index a16d57e855..9ae0017f47 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -295,6 +295,8 @@ python () {
295 darch = d.getVar('DPKG_ARCH', True) 295 darch = d.getVar('DPKG_ARCH', True)
296 if darch in ["x86", "i486", "i586", "i686", "pentium"]: 296 if darch in ["x86", "i486", "i586", "i686", "pentium"]:
297 d.setVar('DPKG_ARCH', 'i386') 297 d.setVar('DPKG_ARCH', 'i386')
298 elif darch == "x86_64":
299 d.setVar('DPKG_ARCH', 'amd64')
298 elif darch == "arm": 300 elif darch == "arm":
299 d.setVar('DPKG_ARCH', 'armel') 301 d.setVar('DPKG_ARCH', 'armel')
300} 302}