aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2024-04-30 11:52:13 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-04-30 13:16:33 +0000
commit24f7575b6131862bb005c2e6dee493f4b5a68bc7 (patch)
treead5bbdf3b751d5feb1ad793535a78e76ee8b4d8b
parentff437261d2f94c2abef212c554024f32d0624cc1 (diff)
configure-qtcreator: Fix path to sdktool
QtCreator and sdktool are now separate components in the SDK installation. Use the new path by default and change the argument that can be used to give full path to the sdktool binary. Fixes: QTBUG-124612 Change-Id: I262ac1468f565b4a3e9931f38bd1e767f1b235f2 Reviewed-by: Ari Parkkila <ari.parkkila@qt.io> (cherry picked from commit 1076fe82682373aad23e1e43c826c7b596ddb7b1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rwxr-xr-xmeta-boot2qt/files/configure-qtcreator.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/meta-boot2qt/files/configure-qtcreator.sh b/meta-boot2qt/files/configure-qtcreator.sh
index 081ac89e..da0135d3 100755
--- a/meta-boot2qt/files/configure-qtcreator.sh
+++ b/meta-boot2qt/files/configure-qtcreator.sh
@@ -36,7 +36,7 @@ MACHINE=""
printUsage ()
{
- echo "Usage: $0 --config <environment-setup-file> [--remove] [--qtcreator <path>] [--name <basename>]"
+ echo "Usage: $0 --config <environment-setup-file> [--remove] --sdktool <path>] [--name <basename>]"
}
while test -n "$1"; do
@@ -44,9 +44,9 @@ while test -n "$1"; do
"--remove")
REMOVEONLY=1
;;
- "--qtcreator")
+ "--sdktool")
shift
- QTCREATOR=$1
+ SDKTOOL=$1
;;
"--config")
shift
@@ -69,13 +69,11 @@ if [ ! -f "$CONFIG" ]; then
exit 1
fi
-if [ -z "${QTCREATOR}" ]; then
- SDKTOOL="${HOME}/Qt/Tools/QtCreator/libexec/qtcreator/sdktool"
-else
- SDKTOOL="${QTCREATOR}/libexec/qtcreator/sdktool"
+if [ -z "${SDKTOOL}" ]; then
+ SDKTOOL="${HOME}/Qt/Tools/sdktool/libexec/qtcreator/sdktool"
fi
if [ ! -x ${SDKTOOL} ]; then
- echo "Cannot find 'sdktool' from QtCreator"
+ echo "Cannot find 'sdktool'"
printUsage
exit 1
fi