summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-10 14:55:23 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:42 +0000
commitb772c8cde5a8d53de5588ff5d2771c1bd3eb259f (patch)
tree60251b8473d901544fb39acae4d0b9b780e81575 /meta/classes/sanity.bbclass
parent6c92cfc02014a55c4d3a40d70ff29308ad6255e7 (diff)
downloadpoky-b772c8cde5a8d53de5588ff5d2771c1bd3eb259f.tar.gz
bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change makes the purpose of the staging directory more obvious and the taskname more true to what it now actually does. The layout version number is increased due to the change in layout but code to convert existing directories and insert a symlink for backwards compatibility is included. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 39f1e22003..71250b80af 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -147,6 +147,13 @@ def check_sanity(e):
147 if not abi.isdigit(): 147 if not abi.isdigit():
148 f = file(abifile, "w") 148 f = file(abifile, "w")
149 f.write(current_abi) 149 f.write(current_abi)
150 elif abi == "2" and current_abi == "3":
151 bb.note("Converting staging from layout version 2 to layout version 3")
152 os.system(bb.data.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots", e.data))
153 os.system(bb.data.expand("ln -s sysroots ${TMPDIR}/staging", 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")
156 f.write(current_abi)
150 elif (abi != current_abi): 157 elif (abi != current_abi):
151 # Code to convert from one ABI to another could go here if possible. 158 # Code to convert from one ABI to another could go here if possible.
152 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) 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)