Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/projmgr/schemas/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@
"items": { "$ref": "#/definitions/ArtifactType" }
},
"ArtifactType": {
"enum": [ "elf", "hex", "bin", "lib", "cmse-lib", "map" ],
"description": "Output type: elf (default), hex, bin, lib, cmse-lib or map."
"enum": [ "elf", "hex", "bin", "lib", "cmse-lib", "map", "comp-db" ],
"description": "Output type: elf (default), hex, bin, lib, cmse-lib, map or comp-db."
},
"ArtifactsType": {
"oneOf": [
Expand Down
7 changes: 7 additions & 0 deletions tools/projmgr/src/ProjMgrCbuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@ void ProjMgrCbuild::SetOutputNode(YAML::Node node, const ContextItem* context) {
node.push_back(fileNode);
}
}
if (!context->imageOnly) {
// add reference to compilation database
YAML::Node compdb;
SetNodeValue(compdb[YAML_TYPE], "comp-db");
SetNodeValue(compdb[YAML_FILE], "compile_commands.json");
node.push_back(compdb);
}
}

void ProjMgrCbuild::SetLinkerNode(YAML::Node node, const ContextItem* context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ build-gen:
output:
- type: elf
file: core0.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTestGenerator:Check Global Generator@0.9.0
from-pack: ARM::RteTestGenerator@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ build-gen:
output:
- type: elf
file: core1.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTestGenerator:Check Global Generator@0.9.0
from-pack: ARM::RteTestGenerator@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ build:
output:
- type: elf
file: single-core.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:GlobalLevel@0.0.2
from-pack: ARM::RteTest@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ build-gen:
output:
- type: elf
file: single-core.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTestGenerator:Check Global Generator@0.9.0
from-pack: ARM::RteTestGenerator@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ build:
output:
- type: elf
file: single-core.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:GlobalLevel@0.0.2
from-pack: ARM::RteTest@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ build-gen:
output:
- type: elf
file: ns.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTestGenerator:Check Global Generator@0.9.0
from-pack: ARM::RteTestGenerator@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ build-gen:
file: s.axf
- type: cmse-lib
file: s_CMSE_Lib.o
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTestGenerator:Check Global Generator@0.9.0
from-pack: ARM::RteTestGenerator@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ build:
output:
- type: elf
file: pack-access-sequences.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:CORE@0.1.1
condition: Cortex-M Device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ build:
output:
- type: elf
file: project.elf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:CORE@0.1.1
condition: Cortex-M Device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ build:
output:
- type: elf
file: project.elf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:CORE@0.1.1
condition: Cortex-M Device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ build:
output:
- type: elf
file: multiple-components.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device&RteTestBundle:RteTest Generated Component@1.1.0
condition: RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ build:
output:
- type: elf
file: test-gpdsc-layer.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:RteTest Generated Component:RteTest@1.1.0
condition: RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ build:
output:
- type: elf
file: test-gpdsc-multiple-generators.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:RteTest Generated Component:RteTest@1.1.0
condition: RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ build:
output:
- type: elf
file: test-gpdsc-project-files.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:RteTest Generated Component:RteTest@1.1.0
condition: RteDevice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ build:
output:
- type: elf
file: test-gpdsc.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:RteTest Generated Component:RteTest@1.1.0
condition: RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ build:
output:
- type: elf
file: setup-test.elf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:CORE@0.1.1
condition: Cortex-M Device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ build:
output:
- type: elf
file: setup-test.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:CORE@0.1.1
condition: Cortex-M Device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ build:
output:
- type: elf
file: setup-test.elf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:CORE@0.1.1
condition: Cortex-M Device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ build:
file: run-debug.axf
- type: hex
file: run-debug.hex
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM4 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ build:
file: run-debug.axf
- type: hex
file: run-debug.hex
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM3 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ build:
output:
- type: elf
file: components.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:DupFilename@0.9.9
from-pack: ARM::RteTest@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ build:
output:
- type: elf
file: versions.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::RteTest:TestVersion@1.8-dev1
from-pack: ARM::RteTest@0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ build:
output:
- type: elf
file: project1.axf
- type: comp-db
file: compile_commands.json
linker:
script: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/ac6_linker_script.sct.src
regions: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/regions_RteTest_ARMCM3.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ build:
output:
- type: elf
file: project1.axf
- type: comp-db
file: compile_commands.json
linker:
script: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/ac6_linker_script.sct.src
regions: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/regions_RteTest_ARMCM3.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ build:
output:
- type: elf
file: project2.axf
- type: comp-db
file: compile_commands.json
linker:
script: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/ac6_linker_script.sct.src
regions: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/regions_RteTest_ARMCM3.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ build:
output:
- type: elf
file: project2.axf
- type: comp-db
file: compile_commands.json
linker:
script: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/ac6_linker_script.sct.src
regions: ../data/TestSolution/ContextMap/RTE/Device/RteTest_ARMCM3/regions_RteTest_ARMCM3.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: branch-protection.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: branch-protection.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: branch-protection.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: dsp.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: dsp.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: endian.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: endian.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ build:
output:
- type: elf
file: fpu.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ build:
output:
- type: elf
file: fpu.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ build:
output:
- type: elf
file: fpu.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: mve.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: mve.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: mve.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: trustzone.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ build:
output:
- type: elf
file: trustzone.axf
- type: comp-db
file: compile_commands.json
components:
- component: ARM::Device:Startup&RteTest Startup@2.0.3
condition: ARMCM0 RteTest
Expand Down
Loading
Loading