[oe] [PATCHv2] package_deb.bbclass/apt: armel architecture name for eabi systems.
Filip Zyzniewski
filip.zyzniewski at gmail.com
Sat Feb 19 23:30:49 UTC 2011
For dpkg EABI system architecture is called armel, not arm.
Reference: http://wiki.debian.org/ArmEabiPort
Signed-off-by: Filip Zyzniewski <filip.zyzniewski at gmail.com>
---
classes/package_deb.bbclass | 2 ++
recipes/apt/apt_0.7.20.2.bb | 13 ++++++++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass
index 60e759d..87f31fa 100644
--- a/classes/package_deb.bbclass
+++ b/classes/package_deb.bbclass
@@ -15,6 +15,8 @@ DPKG_ARCH_i486 ?= "i386"
DPKG_ARCH_i586 ?= "i386"
DPKG_ARCH_i686 ?= "i386"
DPKG_ARCH_pentium ?= "i386"
+DPKG_ARCH_linux-gnueabi ?= "armel"
+DPKG_ARCH_linux-uclibceabi ?= "armel"
python package_deb_fn () {
bb.data.setVar('PKGFN', bb.data.getVar('PKG',d), d)
diff --git a/recipes/apt/apt_0.7.20.2.bb b/recipes/apt/apt_0.7.20.2.bb
index 5c932a5..c8a3516 100644
--- a/recipes/apt/apt_0.7.20.2.bb
+++ b/recipes/apt/apt_0.7.20.2.bb
@@ -7,12 +7,23 @@ SRC_URI += "file://no-doxygen.patch \
file://no-ko-translation.patch \
file://fix-gcc-4.4-compile.patch \
file://use-host.patch "
-PR = "r3"
+PR = "r4"
require apt-package.inc
FILES_${PN} += "${bindir}/apt-key"
+do_configure_append_linux-gnueabi() {
+ sed -i \
+ 's:^#define COMMON_ARCH "arm"$:#define COMMON_ARCH "armel":' \
+ ${S}/include/config.h
+}
+
+do_configure_append_linux-uclibceabi() {
+ do_configure_append_linux-gnueabi()
+}
+
+
do_stage() {
install -d ${STAGING_LIBDIR} ${STAGING_INCDIR}/apt-pkg
eval `cat environment.mak | grep ^GLIBC_VER | sed -e's, = ,=,'`
--
1.7.1
More information about the Openembedded-devel
mailing list