From 30f117019fe22ca763f002363b11149fec24cbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 6 Dec 2018 18:10:44 +0100 Subject: [PATCH] instant-*.bbclass: split out path settings to common instant-paths.bbclass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- classes/instant-native-sysroot.bbclass | 5 +---- classes/instant-paths.bbclass | 5 +++++ classes/instant-remote-debug.bbclass | 5 +---- 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 classes/instant-paths.bbclass 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"