uclibc-initial_git.bb: Create symlinks to kernel headers

Without this the toolchain bootstrap will fail
on some compiler versions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Khem Raj 2011-04-20 07:46:07 +00:00 committed by Koen Kooi
parent a702651dab
commit 37f21da69b

View File

@ -21,6 +21,12 @@ do_install() {
install -d ${D}${libdir}
install -m 755 lib/lib[cm].so ${D}${libdir}
# add links to linux-libc-headers: gcc-{cross,crossdk}-intermediate need this.
for t in linux asm asm-generic; do
if [ -d ${D}${includedir}/$t ]; then
rm -rf ${D}${includedir}/$t
fi
ln -sf ${STAGING_DIR_TARGET}${includedir}/$t ${D}${includedir}/
done
}
do_compile() {
: