diff --git a/classes/instant-native-sysroot.bbclass b/classes/instant-native-sysroot.bbclass index b693178..3c32ebc 100644 --- a/classes/instant-native-sysroot.bbclass +++ b/classes/instant-native-sysroot.bbclass @@ -2,10 +2,7 @@ # class for instant native sysroot #------------------------------------------------------------------------------ -inherit utils - -# This is where instant native sysroot is installed to -INSTANT_NATIVE_PATH = "${TMPDIR}/sysroot-instant-native" +inherit utils instant-paths do_prepare_recipe_sysroot[postfuncs] += "${INSTANTSYSROOTFUNC}" INSTANTSYSROOTFUNC = "" diff --git a/classes/instant-paths.bbclass b/classes/instant-paths.bbclass new file mode 100644 index 0000000..14de5f0 --- /dev/null +++ b/classes/instant-paths.bbclass @@ -0,0 +1,5 @@ +# This is where instant native sysroot is installed to +INSTANT_NATIVE_PATH = "${TMPDIR}/sysroot-instant-native" + +# This is where instant cross sysroot is installed to +INSTANT_CROSS_PATH = "${TMPDIR}/sysroot-instant-cross-${MACHINE_ARCH}" diff --git a/classes/instant-remote-debug.bbclass b/classes/instant-remote-debug.bbclass index c816ea3..edaf379 100644 --- a/classes/instant-remote-debug.bbclass +++ b/classes/instant-remote-debug.bbclass @@ -49,10 +49,7 @@ # #------------------------------------------------------------------------------ -inherit utils - -# This is where instant cross sysroot is installed into -INSTANT_CROSS_PATH = "${TMPDIR}/sysroot-instant-cross-${MACHINE_ARCH}" +inherit utils instant-paths # ensure necessary gdb recipes are build EXTRA_IMAGEDEPENDS += "gdb-cross-${TARGET_ARCH} gdb"