aboutsummaryrefslogtreecommitdiffstats
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 4051d49557..2e9151f540 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -141,6 +141,13 @@ def check_sanity(e):
if not abi.isdigit():
f = file(abifile, "w")
f.write(current_abi)
+ elif abi == "3" and current_abi == "4":
+ bb.note("Converting staging from layout version 2 to layout version 3")
+ os.system(bb.data.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots", e.data))
+ os.system(bb.data.expand("ln -s sysroots ${TMPDIR}/staging", e.data))
+ 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))
+ f = file(abifile, "w")
+ f.write(current_abi)
elif (abi != current_abi):
# Code to convert from one ABI to another could go here if possible.
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)