summaryrefslogtreecommitdiffstats
path: root/meta/packages/glibc/glibc_2.4.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-10-29 20:35:03 +0000
committerRichard Purdie <richard@openedhand.com>2007-10-29 20:35:03 +0000
commit6a97ee543a3e1ec9398b8a009f4a6324cdfab2a2 (patch)
treefb1eda00c9c6a3974211e96a8b4bb158ec7f4fae /meta/packages/glibc/glibc_2.4.bb
parent3b945ff45c9caf683962ad34dcde602cba0a1186 (diff)
downloadpoky-6a97ee543a3e1ec9398b8a009f4a6324cdfab2a2.tar.gz
glibc: Convert from hardcoded staging layout
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3027 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/glibc/glibc_2.4.bb')
-rw-r--r--meta/packages/glibc/glibc_2.4.bb18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/packages/glibc/glibc_2.4.bb b/meta/packages/glibc/glibc_2.4.bb
index c62c80aaf9..a079308418 100644
--- a/meta/packages/glibc/glibc_2.4.bb
+++ b/meta/packages/glibc/glibc_2.4.bb
@@ -7,8 +7,8 @@ PRIORITY = "required"
7PR = "r11" 7PR = "r11"
8 8
9# the -isystem in bitbake.conf screws up glibc do_stage 9# the -isystem in bitbake.conf screws up glibc do_stage
10BUILD_CPPFLAGS = "-I${STAGING_DIR}/${BUILD_SYS}/include" 10BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
11TARGET_CPPFLAGS = "-I${STAGING_DIR}/${TARGET_SYS}/include" 11TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${layout_includedir}"
12 12
13 13
14FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/glibc-2.4" 14FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/glibc-2.4"
@@ -149,10 +149,10 @@ do_compile () {
149} 149}
150 150
151do_stage() { 151do_stage() {
152 rm -f ${STAGING_LIBDIR}/libc.so.6 152 rm -f ${STAGING_DIR_HOST}${layout_base_libdir}/libc.so.6
153 oe_runmake 'install_root=${STAGING_DIR}/${HOST_SYS}' \ 153 oe_runmake 'install_root=${STAGING_DIR_HOST}' \
154 'includedir=/include' 'libdir=/lib' 'slibdir=/lib' \ 154 'includedir=${layout_includedir}' 'libdir=${layout_libdir}' 'slibdir=${layout_base_libdir}' \
155 '${STAGING_LIBDIR}/libc.so.6' \ 155 '${STAGING_DIR_HOST}${layout_base_libdir}/libc.so.6' \
156 install-headers install-lib 156 install-headers install-lib
157 157
158 install -d ${STAGING_INCDIR}/gnu \ 158 install -d ${STAGING_INCDIR}/gnu \
@@ -166,10 +166,10 @@ do_stage() {
166 install -m 0644 ${S}/sunrpc/rpcsvc/$h ${STAGING_INCDIR}/rpcsvc/ 166 install -m 0644 ${S}/sunrpc/rpcsvc/$h ${STAGING_INCDIR}/rpcsvc/
167 done 167 done
168 for i in libc.a libc_pic.a libc_nonshared.a; do 168 for i in libc.a libc_pic.a libc_nonshared.a; do
169 install -m 0644 ${B}/$i ${STAGING_LIBDIR}/ || die "failed to install $i" 169 install -m 0644 ${B}/$i ${STAGING_DIR_HOST}/${layout_base_libdir}/ || die "failed to install $i"
170 done 170 done
171 echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${STAGING_LIBDIR}/libpthread.so 171 echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${STAGING_DIR_HOST}/${layout_base_libdir}/libpthread.so
172 echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${STAGING_LIBDIR}/libc.so 172 echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${STAGING_DIR_HOST}/${layout_base_libdir}/libc.so
173} 173}
174 174
175require glibc-package.bbclass 175require glibc-package.bbclass