package_deb.bbclass:fix the arch (replace "_" with "-") in deb package control
authorHongxu Jia <hongxu.jia@windriver.com>
Sat, 2 Mar 2013 09:12:58 +0000 (17:12 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Mar 2013 12:59:51 +0000 (12:59 +0000)
commit9569dd2c78b027e114086428515c07968fdb31de
tree4c86f456e47d56fdc101c5c077260cf1b77a7deb
parent0ce444b2b554e884399d0693b8f70175e23c01ee
package_deb.bbclass:fix the arch (replace "_" with "-") in deb package control

when build deb image, such as building meta-toolchain-sdk in x86_64 host,
there is warning like that:
...
'x86_64' is not a valid architecture name: character `_' not allowed
(only letters, digits and characters `-')
...

The params in deb package control file don't allow character `_', only
letters, digits and characters `-' allowed. Change the arch's "_" to "-"
in the deb package's control file at the control file creation time. Such
as `x86_64'-->`x86-64'

[YOCTO #3721]

(From OE-Core rev: 8487b352cabd8c8ae8a7d9e7e66489e4e964bd50)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_deb.bbclass