mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
glibc-stage.inc: Massively simplify and speedup by just copying the data generated in the do_install stage
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
do_stage() {
|
||||
rm -f ${STAGING_DIR_HOST}${layout_base_libdir}/libc.so.6
|
||||
oe_runmake 'install_root=${STAGING_DIR_HOST}' \
|
||||
'includedir=${layout_includedir}' 'libdir=${layout_libdir}' 'slibdir=${layout_base_libdir}' \
|
||||
'${STAGING_DIR_HOST}${layout_base_libdir}/libc.so.6' \
|
||||
install
|
||||
|
||||
install -d ${STAGING_INCDIR}/gnu \
|
||||
${STAGING_INCDIR}/bits \
|
||||
${STAGING_INCDIR}/rpcsvc
|
||||
install -m 0644 ${S}/include/gnu/stubs.h ${STAGING_INCDIR}/gnu/
|
||||
install -m 0644 ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/
|
||||
install -m 0644 misc/syscall-list.h ${STAGING_INCDIR}/bits/syscall.h
|
||||
for r in ${rpcsvc}; do
|
||||
h=`echo $r|sed -e's,\.x$,.h,'`
|
||||
install -m 0644 ${S}/sunrpc/rpcsvc/$h ${STAGING_INCDIR}/rpcsvc/
|
||||
done
|
||||
# Installing directly into staging creates some races between existing
|
||||
# glibc-initial files and us. We could use a new DESTDIR but we may as
|
||||
# well just copy the data installed by do_install
|
||||
cp -pPR ${D}/* ${STAGING_DIR_HOST}/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user