Skip to content

Commit

Permalink
glibc-initial: Convert from legacy staging model (from Poky)
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
rpurdie committed May 5, 2010
1 parent eb5a0f5 commit 0013009
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions recipes/glibc/glibc-initial.inc
Expand Up @@ -11,7 +11,7 @@ do_configure () {
find ${S} -name "configure" | xargs touch
${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
--without-cvs --disable-sanity-checks \
--with-headers=${STAGING_DIR_TARGET}${layout_includedir} \
--with-headers=${STAGING_DIR_TARGET}${includedir} \
--enable-hacker-mode
if grep -q GLIBC_2.3 ${S}/ChangeLog; then
# glibc-2.3.x passes cross options to $(CC) when generating errlist-compat.c, which fails without a real cross-compiler.
Expand All @@ -29,28 +29,24 @@ do_compile () {
:
}

do_stage () {
oe_runmake cross-compiling=yes install_root=${STAGING_DIR_HOST} \
includedir='${layout_includedir}' prefix='${layout_prefix}' \
do_install () {
oe_runmake cross-compiling=yes install_root=${D} \
includedir='${includedir}' prefix='${prefix}' \
install-bootstrap-headers=yes install-headers

oe_runmake csu/subdir_lib
# Two headers -- stubs.h and features.h -- aren't installed by install-headers,
# so do them by hand. We can tolerate an empty stubs.h for the moment.
# See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html
mkdir -p ${STAGING_INCDIR}/gnu
touch ${STAGING_INCDIR}/gnu/stubs.h
cp ${S}/include/features.h ${STAGING_INCDIR}/features.h
mkdir -p ${D}${includedir}/gnu/
touch ${D}${includedir}/gnu/stubs.h
cp ${S}/include/features.h ${D}${includedir}/features.h

if [ -e ${B}/bits/stdio_lim.h ]; then
cp ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/
cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/
fi
mkdir -p ${STAGING_DIR_TARGET}${layout_libdir}
install -m 644 csu/crt[1in].o ${STAGING_DIR_TARGET}${layout_libdir}
mkdir -p ${D}${libdir}/
install -m 644 csu/crt[1in].o ${D}${libdir}
${CC} -nostdlib -nostartfiles -shared -x c /dev/null \
-o ${STAGING_DIR_TARGET}${layout_libdir}/libc.so
}

do_install () {
:
-o ${D}${libdir}/libc.so
}

0 comments on commit 0013009

Please sign in to comment.