summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-29 12:21:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:43:43 +0000
commit71824019fbc2ae9fbee8c6cb6241b16e5038effa (patch)
treeb67938b742c49996147061efd9cc3e9fb4d20270 /meta/recipes-core
parent3400b3d2df1b30a38a8c437897e298337d313f32 (diff)
downloadpoky-71824019fbc2ae9fbee8c6cb6241b16e5038effa.tar.gz
eglibc-initial: Ensure symlinks point to the correct location when built from sstate cache
If the sstate files are installed into a sysroot from the sstate cache, the directory to the main sysroot can change and the symlinks aren't adjusted to account for this. This is a problem specific to the toolchain bootstrap process. This patch adds up a function to recreate the symlinks, hence ensuring they always point at the correct location. (From OE-Core rev: ad0baa7d2f33a865011e0c6afe29f22aa1beea32) (From OE-Core rev: bc8a384c49c60feab9d01f8277e92ac0603c8f93) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/eglibc/eglibc-initial.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-initial.inc b/meta/recipes-core/eglibc/eglibc-initial.inc
index 448f73a971..906251633b 100644
--- a/meta/recipes-core/eglibc/eglibc-initial.inc
+++ b/meta/recipes-core/eglibc/eglibc-initial.inc
@@ -60,4 +60,16 @@ do_siteconfig () {
60 : 60 :
61} 61}
62 62
63SSTATEPOSTINSTFUNCS += "eglibcinitial_sstate_postinst"
64eglibcinitial_sstate_postinst() {
65 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
66 then
67 # Recreate the symlinks to ensure they point to the correct location
68 for t in linux asm asm-generic; do
69 rm -f ${STAGING_DIR_TCBOOTSTRAP}${includedir}/$t
70 ln -s ${STAGING_DIR_TARGET}${includedir}/$t ${STAGING_DIR_TCBOOTSTRAP}${includedir}/
71 done
72 fi
73}
74
63do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}" 75do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}"