From e42a1dcb4aedcce7d1ecd49ac2f60acffe808952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 5 Dec 2018 12:30:02 +0100 Subject: [PATCH] instant-remote-debug: Make instant sysroot paths machine specific MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- classes/instant-remote-debug.bbclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/instant-remote-debug.bbclass b/classes/instant-remote-debug.bbclass index 989d808..6f7dcd1 100644 --- a/classes/instant-remote-debug.bbclass +++ b/classes/instant-remote-debug.bbclass @@ -32,8 +32,8 @@ # The settings are kept so 1.-6. have to be done once only. # 1. Create a Kit by 'Add' -> further dilaog opens # 2. Select an name for the Kit e.g 'OE' -# 3. Set sysroot (see INSTANT_REMOTE_PATH below) e.g: -# /sysroot-instant-remote +# 3. Set sysroot (see INSTANT_REMOTE_PATH below): +# ${TMPDIR}/sysroot-instant-remote-${MACHINE} # 4. Select compilers (it is not necessary for debug but without QTCreator won't enable Kit) for C and C++ e.g: # C: '/sysroot-instant-native/usr/bin/arm-mortsgna-linux-gnueabi/arm-mortsgna-linux-gnueabi-gcc' # C++: '/sysroot-instant-native/usr/bin/arm-mortsgna-linux-gnueabi/arm-mortsgna-linux-gnueabi-g++' @@ -52,13 +52,14 @@ # -> Implement error message # * Class does not work properly when package data is taken from sstate cache # -> Help appreciated +# * Class does not work properly for when changing machine #------------------------------------------------------------------------------ # ensure necessary gdb recipes are build EXTRA_IMAGEDEPENDS += "gdb-cross-${TARGET_ARCH} gdb" # This is where instant sysroot is installed into -INSTANT_REMOTE_PATH ??= "${TMPDIR}/sysroot-instant-remote" +INSTANT_REMOTE_PATH = "${TMPDIR}/sysroot-instant-remote-${MACHINE}" addtask copysourcestosysroot before do_packagedata after do_package