Skip to content

Commit c7d4a2a

Browse files
[cbuild[-gen].yml] Always output fully qualified device and board identifier
1 parent 14ac1a7 commit c7d4a2a

File tree

66 files changed

+75
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+75
-71
lines changed

tools/projmgr/src/ProjMgrCbuild.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,20 @@ void ProjMgrCbuild::SetContextNode(YAML::Node contextNode, const ContextItem* co
6262
SetNodeValue(contextNode[YAML_CONTEXT], context->name);
6363
SetNodeValue(contextNode[YAML_COMPILER], context->toolchain.name +
6464
(context->toolchain.required.empty() || context->toolchain.required == ">=0.0.0" ? "" : '@' + context->toolchain.required));
65-
if (!context->board.empty()) {
66-
SetNodeValue(contextNode[YAML_BOARD], context->board);
65+
if (!context->boardItem.name.empty()) {
66+
const auto& board = context->boardItem.vendor + "::" + context->boardItem.name +
67+
(context->boardItem.revision.empty() ? "" : ":" + context->boardItem.revision);
68+
SetNodeValue(contextNode[YAML_BOARD], board);
6769
if (context->boardPack != nullptr) {
6870
SetNodeValue(contextNode[YAML_BOARD_PACK], context->boardPack->GetID());
6971
}
7072
SetBooksNode(contextNode[YAML_BOARD_BOOKS], context->boardBooks, context->directories.cbuild);
7173
}
72-
SetNodeValue(contextNode[YAML_DEVICE], context->device);
74+
if (!context->deviceItem.name.empty()) {
75+
const auto& device = context->deviceItem.vendor + "::" + context->deviceItem.name +
76+
(context->deviceItem.pname.empty() ? "" : ":" + context->deviceItem.pname);
77+
SetNodeValue(contextNode[YAML_DEVICE], device);
78+
}
7379
if (context->devicePack != nullptr) {
7480
SetNodeValue(contextNode[YAML_DEVICE_PACK], context->devicePack->GetID());
7581
}

tools/projmgr/test/data/ExternalGenerator/ref/MultiCore/core0.Debug+MultiCore.cbuild-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-gen:
66
project: ${DEVTOOLS(data)}/ExternalGenerator/multi_0/core0.cproject.yml
77
context: core0.Debug+MultiCore
88
compiler: AC6
9-
device: RteTest_ARMCM0_Dual:cm0_core0
9+
device: ARM::RteTest_ARMCM0_Dual:cm0_core0
1010
device-pack: ARM::[email protected]
1111
device-books:
1212
- name: http://infocenter.arm.com/help/topic/com.arm.doc.dui0497a/index.html

tools/projmgr/test/data/ExternalGenerator/ref/MultiCore/core1.Debug+MultiCore.cbuild-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-gen:
66
project: ${DEVTOOLS(data)}/ExternalGenerator/multi_1/core1.cproject.yml
77
context: core1.Debug+MultiCore
88
compiler: AC6
9-
device: RteTest_ARMCM0_Dual:cm0_core1
9+
device: ARM::RteTest_ARMCM0_Dual:cm0_core1
1010
device-pack: ARM::[email protected]
1111
device-books:
1212
- name: http://infocenter.arm.com/help/topic/com.arm.doc.dui0497a/index.html

tools/projmgr/test/data/ExternalGenerator/ref/SingleCore/single-core.Debug+Board.cbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build:
44
project: single-core.cproject.yml
55
context: single-core.Debug+Board
66
compiler: AC6
7-
board: RteTest CM4 board
7+
board: Keil::RteTest CM4 board:Rev.C
88
board-pack: ARM::[email protected]
99
board-books:
1010
- name: https://www.keil.arm.com/boards/
@@ -13,7 +13,7 @@ build:
1313
- name: ${CMSIS_PACK_ROOT}/ARM/RteTestBoard/0.1.0/Documents/README.md
1414
title: Guide
1515
category: other
16-
device: RteTest_ARMCM4_FP
16+
device: ARM::RteTest_ARMCM4_FP
1717
device-pack: ARM::[email protected]
1818
device-books:
1919
- name: http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/index.html

tools/projmgr/test/data/ExternalGenerator/ref/SingleCore/single-core.Debug+CM0.cbuild-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-gen:
66
project: ${DEVTOOLS(data)}/ExternalGenerator/single/single-core.cproject.yml
77
context: single-core.Debug+CM0
88
compiler: AC6
9-
device: RteTestGen_ARMCM0
9+
device: ARM::RteTestGen_ARMCM0
1010
device-pack: ARM::[email protected]
1111
processor:
1212
core: Cortex-M0

tools/projmgr/test/data/ExternalGenerator/ref/SingleCore/single-core.Debug+CM0.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build:
44
project: single-core.cproject.yml
55
context: single-core.Debug+CM0
66
compiler: AC6
7-
device: RteTestGen_ARMCM0
7+
device: ARM::RteTestGen_ARMCM0
88
device-pack: ARM::[email protected]
99
processor:
1010
core: Cortex-M0

tools/projmgr/test/data/ExternalGenerator/ref/TrustZone/ns.Debug+CM0.cbuild-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-gen:
66
project: ${DEVTOOLS(data)}/ExternalGenerator/tz_ns/ns.cproject.yml
77
context: ns.Debug+CM0
88
compiler: AC6
9-
device: RteTestGen_ARMCM0
9+
device: ARM::RteTestGen_ARMCM0
1010
device-pack: ARM::[email protected]
1111
processor:
1212
trustzone: non-secure

tools/projmgr/test/data/ExternalGenerator/ref/TrustZone/s.Debug+CM0.cbuild-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-gen:
66
project: ${DEVTOOLS(data)}/ExternalGenerator/tz_s/s.cproject.yml
77
context: s.Debug+CM0
88
compiler: AC6
9-
device: RteTestGen_ARMCM0
9+
device: ARM::RteTestGen_ARMCM0
1010
device-pack: ARM::[email protected]
1111
processor:
1212
trustzone: secure

tools/projmgr/test/data/TestAccessSequences/ref/pack-access-sequences+CM4-Board.cbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build:
44
project: ../data/TestAccessSequences/pack-access-sequences.cproject.yml
55
context: pack-access-sequences+CM4-Board
66
compiler: AC6
7-
board: RteTest CM4 board
7+
board: Keil::RteTest CM4 board:Rev.C
88
board-pack: ARM::[email protected]
99
board-books:
1010
- name: https://www.keil.arm.com/boards/
@@ -13,7 +13,7 @@ build:
1313
- name: ${CMSIS_PACK_ROOT}/ARM/RteTestBoard/0.1.0/Documents/README.md
1414
title: Guide
1515
category: other
16-
device: RteTest_ARMCM4_FP
16+
device: ARM::RteTest_ARMCM4_FP
1717
device-pack: ARM::[email protected]
1818
device-books:
1919
- name: http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/index.html

tools/projmgr/test/data/TestDefault/ref/empty/project.Debug+TEST_TARGET.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build:
44
project: ../../data/TestDefault/project.cproject.yml
55
context: project.Debug+TEST_TARGET
66
compiler: GCC
7-
device: RteTest_ARMCM0
7+
device: ARM::RteTest_ARMCM0
88
device-pack: ARM::[email protected]
99
device-books:
1010
- name: http://infocenter.arm.com/help/topic/com.arm.doc.dui0497a/index.html

0 commit comments

Comments
 (0)