summaryrefslogtreecommitdiff
path: root/src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h
diff options
context:
space:
mode:
authorPiotr Mućko <piotr.mucko@qt.io>2022-09-15 17:25:49 +0200
committerPiotr Mućko <piotr.mucko@qt.io>2022-09-23 07:48:14 +0000
commitdf92e79da4a6d10ac64d011faeabf4ffbfaa9ec2 (patch)
treed14111fb5512364fb78259793ddfced67a78f263 /src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h
parent5dcfbe6c52b0e84df939d20e22c32e0ad50a80d5 (diff)
downloadqt-creator-df92e79da4a6d10ac64d011faeabf4ffbfaa9ec2.tar.gz
McuSupport: Sync JSON files with QtMCUs repo and related fixes
This synchronizes JSON files used by unit tests with files in QtMCUs repo. To do that some changes in code were needed. QtMCUs package is no longer created for each JSON file. Because of its nature it's created once and passed to each target. Unit tests now have verifyPackage function to avoid duplication of checks. In test creating target QtMCUs package is checked beside toolchain ones. Change-Id: I5dea470daf184b45facfaaa793c359310ac22fc1 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Yasser Grimes <yasser.grimes@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h')
-rw-r--r--src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h b/src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h
new file mode 100644
index 0000000000..51c9e21a80
--- /dev/null
+++ b/src/plugins/mcusupport/test/iar_mimxrt1170_evk_freertos_json.h
@@ -0,0 +1,87 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
+
+#pragma once
+
+constexpr auto iar_mimxrt1170_evk_freertos_json = R"(
+{
+ "qulVersion": "2.3.0",
+ "compatVersion": "1",
+ "platform": {
+ "id": "MIMXRT1170-EVK-FREERTOS",
+ "vendor": "NXP",
+ "colorDepths": [
+ 32
+ ],
+ "cmakeEntries": [
+ {
+ "label": "MCUXpresso IDE",
+ "type": "path",
+ "cmakeVar": "MCUXPRESSO_IDE_PATH",
+ "envVar": "MCUXpressoIDE_PATH",
+ "setting": "MCUXpressoIDE",
+ "defaultValue": {
+ "windows": "%{Env:ROOT}/nxp/MCUXpressoIDE*",
+ "unix": "/usr/local/mcuxpressoide/"
+ },
+ "versionDetection": {
+ "filePattern": "ide/binaries/crt_emu_cm_redlink"
+ },
+ "optional": false
+ }
+ ]
+ },
+ "toolchain": {
+ "id": "iar",
+ "versions": [
+ "9.20.4"
+ ],
+ "compiler": {
+ "id": "IARToolchain",
+ "setting": "IARToolchain",
+ "envVar": "IAR_ARM_COMPILER_DIR",
+ "label": "IAR ARM Compiler",
+ "cmakeVar": "QUL_TARGET_TOOLCHAIN_DIR",
+ "type": "path",
+ "versionDetection": {
+ "filePattern": "bin/iccarm",
+ "executableArgs": "--version",
+ "regex": "\\bV(\\d+\\.\\d+\\.\\d+)\\.\\d+\\b"
+ }
+ },
+ "file": {
+ "id": "IAR_CMAKE_TOOLCHAIN_FILE",
+ "cmakeVar": "CMAKE_TOOLCHAIN_FILE",
+ "type": "file",
+ "defaultValue": "%{Qul_ROOT}/lib/cmake/Qul/toolchain/iar.cmake",
+ "visible": false,
+ "optional": false
+ }
+ },
+ "boardSdk": {
+ "cmakeVar": "QUL_BOARD_SDK_DIR",
+ "envVar": "EVK_MIMXRT1170_SDK_PATH",
+ "versions": [
+ "2.12.0"
+ ],
+ "label": "Board SDK for MIMXRT1170-EVK",
+ "type": "path",
+ "setting": "EVK_MIMXRT1170_SDK_PATH",
+ "versionDetection": {
+ "filePattern": "*_manifest_*.xml",
+ "regex": ".*",
+ "xmlAttribute": "version",
+ "xmlElement": "ksdk"
+ }
+ },
+ "freeRTOS": {
+ "cmakeVar": "FREERTOS_DIR",
+ "envVar": "EVK_MIMXRT1170_FREERTOS_PATH",
+ "label": "FreeRTOS SDK for MIMXRT1170-EVK",
+ "defaultValue": "%{QUL_BOARD_SDK_DIR}/rtos/freertos/freertos_kernel",
+ "validation": "tasks.c",
+ "type": "path",
+ "optional": false
+ }
+}
+)";