aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2009-04-15 15:58:37 +0400
committerRoman I Khimov <khimov@altell.ru>2009-08-18 23:24:02 +0400
commit167480769a4fbd2687629e609b2be7e5ba629a7f (patch)
tree3258a03adfecc1138a38b07eca1f835ca5ad8793
parent468e56e2f104f295484c2921fad84bcf90cc3e64 (diff)
downloadopenembedded-167480769a4fbd2687629e609b2be7e5ba629a7f.tar.gz
openembedded-167480769a4fbd2687629e609b2be7e5ba629a7f.tar.bz2
openembedded-167480769a4fbd2687629e609b2be7e5ba629a7f.zip
glibc: add initial-multilib
-rw-r--r--recipes/glibc/glibc-initial-multilib_2.6.1.bb7
-rw-r--r--recipes/glibc/glibc-initial.inc6
-rw-r--r--recipes/glibc/glibc-multilib.inc9
3 files changed, 20 insertions, 2 deletions
diff --git a/recipes/glibc/glibc-initial-multilib_2.6.1.bb b/recipes/glibc/glibc-initial-multilib_2.6.1.bb
new file mode 100644
index 0000000000..bd09fdb74a
--- /dev/null
+++ b/recipes/glibc/glibc-initial-multilib_2.6.1.bb
@@ -0,0 +1,7 @@
+require glibc_${PV}.bb
+require glibc-initial.inc
+require glibc-multilib.inc
+
+do_configure_prepend () {
+ unset CFLAGS
+}
diff --git a/recipes/glibc/glibc-initial.inc b/recipes/glibc/glibc-initial.inc
index 6468f0df6d..9fbb7af991 100644
--- a/recipes/glibc/glibc-initial.inc
+++ b/recipes/glibc/glibc-initial.inc
@@ -1,6 +1,7 @@
SECTION = "libs"
-DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers"
-PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
+GLIBC_PREFIX ?= "${TARGET_PREFIX}"
+DEPENDS = "virtual/${GLIBC_PREFIX}gcc-initial linux-libc-headers"
+PROVIDES = "virtual/${GLIBC_PREFIX}libc-initial"
PACKAGES = ""
PACKAGES_DYNAMIC = ""
@@ -32,6 +33,7 @@ do_compile () {
do_stage () {
oe_runmake cross-compiling=yes install_root=${STAGING_DIR_HOST} \
includedir='${layout_includedir}' prefix='${layout_prefix}' \
+ libdir='${layout_libdir}' slibdir='${layout_base_libdir}' \
install-bootstrap-headers=yes install-headers
oe_runmake csu/subdir_lib
diff --git a/recipes/glibc/glibc-multilib.inc b/recipes/glibc/glibc-multilib.inc
new file mode 100644
index 0000000000..910e9eed6d
--- /dev/null
+++ b/recipes/glibc/glibc-multilib.inc
@@ -0,0 +1,9 @@
+CC += "${CFLAGS_MULTILIB}"
+TARGET_SYS = "${TARGET_SYS_MULTILIB}"
+HOST_SYS = "${TARGET_SYS_MULTILIB}"
+TARGET_PREFIX = "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}-"
+GLIBC_PREFIX = "${TARGET_SYS_MULTILIB}-"
+layout_libdir="${layout_exec_prefix}/${LIB_MULTILIB}"
+layout_includedir="${layout_exec_prefix}/include/${TARGET_SYS_MULTILIB}"
+layout_base_libdir="${layout_base_prefix}/${LIB_MULTILIB}"
+layout_libexecdir="${layout_libdir}"