aboutsummaryrefslogtreecommitdiffstats
path: root/meta-boot2qt
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2023-01-18 09:38:07 +0000
committerSamuli Piippo <samuli.piippo@qt.io>2023-01-31 07:13:41 +0000
commit5e92c0eaf453885ae0958bc48845732a76bab528 (patch)
tree6e029b8725a5558183ee51aba51f741c2de7fe93 /meta-boot2qt
parentcb10fc9a1a71ba693ea92743eeaa6365be69f648 (diff)
qbsp: add mkspec to container toolchain kit
QtCreator has been fixed, so mkspec can be added also to container toolchain. Also use empty build device for non-container toolchain, which defaults to desktop device. This allows simpler installer script to be maintained. Pick-to: 6.5 Change-Id: I249b8ee56fc4e4600c85c668ae2addf33c4c2686 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Diffstat (limited to 'meta-boot2qt')
-rw-r--r--meta-boot2qt/files/qbsp/toolchain_installscript.qs20
1 files changed, 8 insertions, 12 deletions
diff --git a/meta-boot2qt/files/qbsp/toolchain_installscript.qs b/meta-boot2qt/files/qbsp/toolchain_installscript.qs
index 696ee929..c52cdda5 100644
--- a/meta-boot2qt/files/qbsp/toolchain_installscript.qs
+++ b/meta-boot2qt/files/qbsp/toolchain_installscript.qs
@@ -144,7 +144,9 @@ RUN sh *.sh -d /opt/toolchain -y && rm *.sh\n");
"UNDOEXECUTE",
"@SDKToolBinary@", "rmCMake", "--id", component.name]);
+ var deviceId = "";
if (container) {
+ deviceId = component.name;
component.addOperation("Execute",
["@SDKToolBinary@", "addDev",
"--id", component.name,
@@ -159,14 +161,16 @@ RUN sh *.sh -d /opt/toolchain -y && rm *.sh\n");
"@SDKToolBinary@", "rmDev", "--id", component.name]);
}
- var addKitOperations =
+ component.addOperation("Execute",
["@SDKToolBinary@", "addKit",
"--id", component.name,
"--name", platform,
+ "--mkspec", "linux-oe-g++",
"--qt", component.name,
"--debuggerid", component.name,
"--sysroot", path + "/sysroots/" + sysroot,
"--devicetype", "QdbLinuxOsType",
+ "--builddevice", deviceId,
"--Ctoolchain", toolchainId + ".gcc",
"--Cxxtoolchain", toolchainId + ".g++",
"--cmake", component.name,
@@ -176,17 +180,9 @@ RUN sh *.sh -d /opt/toolchain -y && rm *.sh\n");
"--cmake-config", "CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}",
"--cmake-config", "QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}",
"--cmake-config", "CMAKE_TOOLCHAIN_FILE:FILEPATH=" + path + "/sysroots/" + hostSysroot + "/usr/lib/cmake/Qt6/qt.toolchain.cmake",
- "--cmake-config", "CMAKE_MAKE_PROGRAM:FILEPATH=" + path + "/sysroots/"+ hostSysroot + "/usr/bin/ninja" + executableExt];
-
- if (container) {
- addKitOperations.push("--builddevice", component.name);
- }
- if (!container) {
- addKitOperations.push("--mkspec", "linux-oe-g++");
- }
-
- addKitOperations.push("UNDOEXECUTE", "@SDKToolBinary@", "rmKit", "--id", component.name);
- component.addOperation("Execute", addKitOperations);
+ "--cmake-config", "CMAKE_MAKE_PROGRAM:FILEPATH=" + path + "/sysroots/"+ hostSysroot + "/usr/bin/ninja" + executableExt,
+ "UNDOEXECUTE",
+ "@SDKToolBinary@", "rmKit", "--id", component.name]);
if (container) {
var settingsFile = installer.value("QtCreatorInstallerSettingsFile");