summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-04-16 11:32:14 +0100
committerJoshua Lock <josh@linux.intel.com>2010-04-27 16:58:42 +0100
commit7f019514d81ac56135db70d22e38653fe557424a (patch)
tree517170d1e3ef28ebee3ed4cfe5309e53b7e58182 /meta/classes/sanity.bbclass
parente866ea68c7cd3e4f17c60e0952dd2a66ee94c65a (diff)
downloadpoky-7f019514d81ac56135db70d22e38653fe557424a.tar.gz
Move STAGING_BINDIR_CROSS into target sysroot, instead of native
Cross scripts now live in sysroot/$arch-distro-os/crossscripts, this conveys that they are no longer native system dependant and emphasises their purpose. Bump the staging ABI and implement a simple migration from ABI 3 to ABI 4. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 9f86b20ca0..c2f57a3837 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -154,6 +154,14 @@ def check_sanity(e):
154 os.system(bb.data.expand("cd ${TMPDIR}/stamps; for i in */*do_populate_staging; do new=`echo $i | sed -e 's/do_populate_staging/do_populate_sysroot/'`; mv $i $new; done", e.data)) 154 os.system(bb.data.expand("cd ${TMPDIR}/stamps; for i in */*do_populate_staging; do new=`echo $i | sed -e 's/do_populate_staging/do_populate_sysroot/'`; mv $i $new; done", e.data))
155 f = file(abifile, "w") 155 f = file(abifile, "w")
156 f.write(current_abi) 156 f.write(current_abi)
157 elif abi == "3" and current_abi == "4":
158 bb.note("Converting staging layout from version 3 to layout version 4")
159 if os.path.exists(bb.data.expand("${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}", e.data)):
160 os.system(bb.data.expand("mv ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS} ${STAGING_BINDIR_CROSS}", e.data))
161 os.system(bb.data.expand("ln -s ${STAGING_BINDIR_CROSS} ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}", e.data))
162
163 f = file(abifile, "w")
164 f.write(current_abi)
157 elif (abi != current_abi): 165 elif (abi != current_abi):
158 # Code to convert from one ABI to another could go here if possible. 166 # Code to convert from one ABI to another could go here if possible.
159 messages = messages + "Error, TMPDIR has changed ABI (%s to %s) and you need to either rebuild, revert or adjust it at your own risk.\n" % (abi, current_abi) 167 messages = messages + "Error, TMPDIR has changed ABI (%s to %s) and you need to either rebuild, revert or adjust it at your own risk.\n" % (abi, current_abi)