QtCreator Setup Helper Fixes
- Remove nativesdk class to fix paths in generated script
- Simplify recipe and decouple from meta-environment
- Ask for sdktool path instead of QtCreator install path
Fixes https://git.kontron-electronics.de/sw/ked/plan/plan-yocto/-/issues/714.
Hier ein Vergleich zwischen den Werten der Variablen im Skript vor/nach dem Fix am Beispiel von AEQ/SP5:
--- qtcreator-setup-helper-aarch64-ktnsdk-linux.old 2022-08-17 15:31:14.627227784 +0200
+++ qtcreator-setup-helper-aarch64-ktn-linux.new 2022-08-17 15:28:28.873322790 +0200
@@ -1,14 +1,14 @@
#!/bin/bash
SDK_NAME="ktn-dunfell-0.0.0-dev-imx8mm-sp5"
-TC_PATH="/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-ktnsdk-linux/usr/bin/x86_64-ktnsdk-linux"
-CXX_PATH="$TC_PATH/x86_64-ktnsdk-linux-g++"
-GDB_PATH="$TC_PATH/x86_64-ktnsdk-linux-gdb"
+TC_PATH="/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-ktnsdk-linux/usr/bin/aarch64-ktn-linux"
+CXX_PATH="$TC_PATH/aarch64-ktn-linux-g++"
+GDB_PATH="$TC_PATH/aarch64-ktn-linux-gdb"
QMAKE_PATH="/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-ktnsdk-linux/usr/bin/qmake"
-SYSROOT_PATH="/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-ktnsdk-linux"
+SYSROOT_PATH="/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-ktn-linux"
TC_ABI="arm-linux-generic-elf-64bit"
TC_ID_PREFIX="ProjectExplorer.ToolChain.Gcc"
-ENV_SCRIPT="/usr/local/oe-sdk-hardcoded-buildpath/environment-setup-aarch64-ktnsdk-linux"
+ENV_SCRIPT="/usr/local/oe-sdk-hardcoded-buildpath/environment-setup-aarch64-ktn-linux"
CC: @jbauknecht
Edited by Frieder Schrempf