From e16a5c8d0e64312cd63f5ea6370eb37a7da6bc00 Mon Sep 17 00:00:00 2001 From: Daniele Bortolotti Date: Mon, 31 Oct 2022 14:21:16 +0100 Subject: [PATCH] McuSupport: Update test json headers for TraveoII board MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reflect changes in QUL repo that allow for correct SDK and GHS compiler version detection. Change-Id: Ibc54f45ef214227db5681c33b3278dc52f5bdde6 Reviewed-by: Reviewed-by: Sivert Krøvel Reviewed-by: Eike Ziller --- .../mcusupport/test/ghs_tviic2d4m_baremetal_json.h | 14 +++++++++++--- .../mcusupport/test/ghs_tviic2d6m_baremetal_json.h | 14 +++++++++++--- .../mcusupport/test/iar_tviic2d6m_baremetal_json.h | 4 +++- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/plugins/mcusupport/test/ghs_tviic2d4m_baremetal_json.h b/src/plugins/mcusupport/test/ghs_tviic2d4m_baremetal_json.h index 9500c21c1d6..22a6d0809f9 100644 --- a/src/plugins/mcusupport/test/ghs_tviic2d4m_baremetal_json.h +++ b/src/plugins/mcusupport/test/ghs_tviic2d4m_baremetal_json.h @@ -29,7 +29,7 @@ constexpr auto ghs_tviic2d4m_baremetal_json = R"( "toolchain": { "id": "arm-greenhills", "versions": [ - "201954" + "2019.5.4" ], "compiler": { "id": "GHS_ARM_DIR", @@ -38,7 +38,13 @@ constexpr auto ghs_tviic2d4m_baremetal_json = R"( "setting": "GHSArmToolchain", "detectionPath": "cxarm.exe", "type": "path", - "optional": false + "optional": false, + "versionDetection": { + "filePattern": "gversion.exe", + "executableArgs": "-help", + "regex": "\\bv(\\d+\\.\\d+\\.\\d+)\\b" + }, + "detectionPath": "cxarm.exe" }, "file": { "id": "GHS_ARM_CMAKE_TOOLCHAIN_FILE", @@ -59,7 +65,9 @@ constexpr auto ghs_tviic2d4m_baremetal_json = R"( "label": "Graphics Driver for Traveo II Cluster Series", "cmakeVar": "QUL_BOARD_SDK_DIR", "type": "path", - "optional": false + "optional": false, + "versionDetection": { + "regex": "V\\w+\\.\\d+\\.\\d+" } } )"; diff --git a/src/plugins/mcusupport/test/ghs_tviic2d6m_baremetal_json.h b/src/plugins/mcusupport/test/ghs_tviic2d6m_baremetal_json.h index 88b98f0626c..9f2dfb63921 100644 --- a/src/plugins/mcusupport/test/ghs_tviic2d6m_baremetal_json.h +++ b/src/plugins/mcusupport/test/ghs_tviic2d6m_baremetal_json.h @@ -29,7 +29,7 @@ constexpr auto ghs_tviic2d6m_baremetal_json = R"( "toolchain": { "id": "arm-greenhills", "versions": [ - "201954" + "2019.5.4" ], "compiler": { "id": "GHS_ARM_DIR", @@ -38,7 +38,13 @@ constexpr auto ghs_tviic2d6m_baremetal_json = R"( "setting": "GHSArmToolchain", "detectionPath": "cxarm.exe", "type": "path", - "optional": false + "optional": false, + "versionDetection": { + "filePattern": "gversion.exe", + "executableArgs": "-help", + "regex": "\\bv(\\d+\\.\\d+\\.\\d+)\\b" + }, + "detectionPath": "cxarm.exe" }, "file": { "id": "GHS_ARM_CMAKE_TOOLCHAIN_FILE", @@ -59,7 +65,9 @@ constexpr auto ghs_tviic2d6m_baremetal_json = R"( "label": "Graphics Driver for Traveo II Cluster Series", "cmakeVar": "QUL_BOARD_SDK_DIR", "type": "path", - "optional": false + "optional": false, + "versionDetection": { + "regex": "V\\w+\\.\\d+\\.\\d+" } } )"; diff --git a/src/plugins/mcusupport/test/iar_tviic2d6m_baremetal_json.h b/src/plugins/mcusupport/test/iar_tviic2d6m_baremetal_json.h index e55ecc2bdef..983aeeaf741 100644 --- a/src/plugins/mcusupport/test/iar_tviic2d6m_baremetal_json.h +++ b/src/plugins/mcusupport/test/iar_tviic2d6m_baremetal_json.h @@ -68,7 +68,9 @@ constexpr auto iar_tviic2d6m_baremetal_json = R"( "label": "Graphics Driver for Traveo II Cluster Series", "cmakeVar": "QUL_BOARD_SDK_DIR", "type": "path", - "optional": false + "optional": false, + "versionDetection": { + "regex": "V\\w+\\.\\d+\\.\\d+" } } )";