]> code.ossystems Code Review - openembedded-core.git/commitdiff
Move STAGING_BINDIR_CROSS into target sysroot, instead of native
authorJoshua Lock <josh@linux.intel.com>
Fri, 16 Apr 2010 10:32:14 +0000 (11:32 +0100)
committerJoshua Lock <josh@linux.intel.com>
Tue, 27 Apr 2010 15:58:42 +0000 (16:58 +0100)
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>
meta/classes/sanity.bbclass
meta/conf/abi_version.conf
meta/conf/bitbake.conf

index 9f86b20ca0186edde1c9d8c6390a040abf982973..c2f57a38371f829311e91d99078ff00d199f8a01 100644 (file)
@@ -154,6 +154,14 @@ def check_sanity(e):
                        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 == "3" and current_abi == "4":
+                        bb.note("Converting staging layout from version 3 to layout version 4")
+                        if os.path.exists(bb.data.expand("${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}", e.data)):
+                            os.system(bb.data.expand("mv ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS} ${STAGING_BINDIR_CROSS}", e.data))
+                            os.system(bb.data.expand("ln -s ${STAGING_BINDIR_CROSS} ${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}", 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)
index 3ffcb616ca0a31b5ae99f8ddaa09e3fd90aafeda..a3287a56fcc2f21799e94b88dde8e3ad95c8be27 100644 (file)
@@ -4,4 +4,4 @@
 # that breaks the format and have been previously discussed on the mailing list 
 # with general agreement from the core team.
 #
-OELAYOUT_ABI = "3"
+OELAYOUT_ABI = "4"
index 1745688fa84507e935ac2a47439e1f0c91cd1908..ee652e79e1e2d0b51319635267d8bc3d2ec32557 100644 (file)
@@ -254,7 +254,7 @@ STAGING_DIR = "${TMPDIR}/sysroots"
 
 STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}"
 STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}"
-STAGING_BINDIR_CROSS  = "${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}"
+STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts"
 STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}"
 STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}"
 STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}"