diff options
author | Filip Zyzniewski <filip.zyzniewski@gmail.com> | 2011-02-20 18:27:00 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-20 08:25:07 -0700 |
commit | 1659da8e9279a6e2293a69c69ee26f27f694b089 (patch) | |
tree | 1e693a9ab353e39fb7582357c93f518ce7aa0db0 /recipes/apt | |
parent | bdafb44d4da5b9406bd53170aae7be6c26fff42b (diff) | |
download | openembedded-1659da8e9279a6e2293a69c69ee26f27f694b089.tar.gz |
package_deb.bbclass/apt: armel architecture name for eabi systems.
For dpkg EABI system architecture is called armel, not arm.
Reference: http://wiki.debian.org/ArmEabiPort
Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/apt')
-rw-r--r-- | recipes/apt/apt_0.7.20.2.bb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/recipes/apt/apt_0.7.20.2.bb b/recipes/apt/apt_0.7.20.2.bb index 5c932a5b31..ca0787cfa1 100644 --- a/recipes/apt/apt_0.7.20.2.bb +++ b/recipes/apt/apt_0.7.20.2.bb @@ -7,21 +7,24 @@ 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_stage() { - install -d ${STAGING_LIBDIR} ${STAGING_INCDIR}/apt-pkg - eval `cat environment.mak | grep ^GLIBC_VER | sed -e's, = ,=,'` - oe_libinstall -so -C bin libapt-pkg$GLIBC_VER-6 ${STAGING_LIBDIR}/ - ln -sf libapt-pkg$GLIBC_VER-6.so ${STAGING_LIBDIR}/libapt-pkg.so - oe_libinstall -so -C bin libapt-inst$GLIBC_VER-6 ${STAGING_LIBDIR}/ - ln -sf libapt-inst$GLIBC_VER-6.so ${STAGING_LIBDIR}/libapt-inst.so +fix_eabi_architecture() { + sed -i \ + 's:^#define COMMON_ARCH "arm"$:#define COMMON_ARCH "armel":' \ + ${S}/include/config.h +} + +do_configure_append_linux-gnueabi() { + fix_eabi_architecture +} - install -m 0644 include/apt-pkg/*.h ${STAGING_INCDIR}/apt-pkg/ +do_configure_append_linux-uclibceabi() { + fix_eabi_architecture } SRC_URI[md5sum] = "e6ee1b594f6ed5fab5cb593ee46cfc21" |