summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-30 10:26:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-31 10:10:29 +0100
commit236a291abc8513bbd00e128f63e0f74dbe0577ab (patch)
tree6d9448548ee2c799ab31cc915d24d931b06ee005 /meta/classes
parent8babb56c92fa1064e86e944b3947e6e1babe10b2 (diff)
downloadpoky-236a291abc8513bbd00e128f63e0f74dbe0577ab.tar.gz
sanity: Drop obsolete TMPDIR ABI conversions
When we get to version 12 we have a hard break as we can't convert to newer versions. There is no point in running the old conversions on an old tmpdir only to hit that block. Remove all the old conversions to avoid that and make things clearer. (From OE-Core rev: 163b27bdfe323b648929240375aaf251e8d5edf4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass43
1 files changed, 1 insertions, 42 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index e3be40bf94..94c78b573f 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -588,48 +588,7 @@ def sanity_handle_abichanges(status, d):
588 if not abi.isdigit(): 588 if not abi.isdigit():
589 with open(abifile, "w") as f: 589 with open(abifile, "w") as f:
590 f.write(current_abi) 590 f.write(current_abi)
591 elif abi == "2" and current_abi == "3": 591 elif int(abi) <= 11 and current_abi == "12":
592 bb.note("Converting staging from layout version 2 to layout version 3")
593 subprocess.call(d.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots"), shell=True)
594 subprocess.call(d.expand("ln -s sysroots ${TMPDIR}/staging"), shell=True)
595 subprocess.call(d.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"), shell=True)
596 with open(abifile, "w") as f:
597 f.write(current_abi)
598 elif abi == "3" and current_abi == "4":
599 bb.note("Converting staging layout from version 3 to layout version 4")
600 if os.path.exists(d.expand("${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}")):
601 subprocess.call(d.expand("mv ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS} ${STAGING_BINDIR_CROSS}"), shell=True)
602 subprocess.call(d.expand("ln -s ${STAGING_BINDIR_CROSS} ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}"), shell=True)
603 with open(abifile, "w") as f:
604 f.write(current_abi)
605 elif abi == "4":
606 status.addresult("Staging layout has changed. The cross directory has been deprecated and cross packages are now built under the native sysroot.\nThis requires a rebuild.\n")
607 elif abi == "5" and current_abi == "6":
608 bb.note("Converting staging layout from version 5 to layout version 6")
609 subprocess.call(d.expand("mv ${TMPDIR}/pstagelogs ${SSTATE_MANIFESTS}"), shell=True)
610 with open(abifile, "w") as f:
611 f.write(current_abi)
612 elif abi == "7" and current_abi == "8":
613 status.addresult("Your configuration is using stamp files including the sstate hash but your build directory was built with stamp files that do not include this.\nTo continue, either rebuild or switch back to the OEBasic signature handler with BB_SIGNATURE_HANDLER = 'OEBasic'.\n")
614 elif (abi != current_abi and current_abi == "9"):
615 status.addresult("The layout of the TMPDIR STAMPS directory has changed. Please clean out TMPDIR and rebuild (sstate will be still be valid and reused)\n")
616 elif (abi != current_abi and current_abi == "10" and (abi == "8" or abi == "9")):
617 bb.note("Converting staging layout from version 8/9 to layout version 10")
618 cmd = d.expand("grep -r -l sysroot-providers/virtual_kernel ${SSTATE_MANIFESTS}")
619 ret, result = oe.utils.getstatusoutput(cmd)
620 result = result.split()
621 for f in result:
622 bb.note("Uninstalling manifest file %s" % f)
623 sstate_clean_manifest(f, d)
624 with open(abifile, "w") as f:
625 f.write(current_abi)
626 elif abi == "10" and current_abi == "11":
627 bb.note("Converting staging layout from version 10 to layout version 11")
628 # Files in xf86-video-modesetting moved to xserver-xorg and bitbake can't currently handle that:
629 subprocess.call(d.expand("rm ${TMPDIR}/sysroots/*/usr/lib/xorg/modules/drivers/modesetting_drv.so ${TMPDIR}/sysroots/*/pkgdata/runtime/xf86-video-modesetting* ${TMPDIR}/sysroots/*/pkgdata/runtime-reverse/xf86-video-modesetting* ${TMPDIR}/sysroots/*/pkgdata/shlibs2/xf86-video-modesetting*"), shell=True)
630 with open(abifile, "w") as f:
631 f.write(current_abi)
632 elif abi == "11" and current_abi == "12":
633 status.addresult("The layout of TMPDIR changed for Recipe Specific Sysroots.\nConversion doesn't make sense and this change will rebuild everything so please start with a clean TMPDIR.\n") 592 status.addresult("The layout of TMPDIR changed for Recipe Specific Sysroots.\nConversion doesn't make sense and this change will rebuild everything so please start with a clean TMPDIR.\n")
634 elif (abi != current_abi): 593 elif (abi != current_abi):
635 # Code to convert from one ABI to another could go here if possible. 594 # Code to convert from one ABI to another could go here if possible.