Skip to contentSkip to conversation

uclibc-initial_git.bb: Create symlinks to kernel headers

PATCH Applied [email protected] 2 participants 2 messages Apr 19, 2011 – Apr 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uclibc-initial_git.bb: Create symlinks to kernel headers

From: Khem Raj <[email protected]>

Without this the toolchain bootstrap will fail
on some compiler versions

---
 meta-oe/recipes-core/uclibc/uclibc-initial_git.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
meta-oe/recipes-core/uclibc/uclibc-initial_git.bb +6 -0
index 4d54cf0..8e5c251 100644
@@ -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() {
 	:
Signature · 1 line
1.7.4.1
Applied
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · On 20-04-11 01:46, [email protected] wrote:

From: Khem Raj <[email protected]>

Without this the toolchain bootstrap will fail
on some compiler versions

Merged, thanks!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNrn+GMkyGM64RGpERAit6AKCQG4u7IarQx05pA0+PK/Q7W2xWUQCfUBRb jJ5P+sPMOAKNuWFIFc5WBUo=
=pSdU
-----END PGP SIGNATURE-----