-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define $generator_id and $pack_id variables in generator arguments
$generator_id resolves to the current generator id $pack_id resolves to the current pack id in YAML format Also, add from-pack property on the generator nodes in the cbuild.yml to identify what pack the generator is defined in. This resolves potential conflicts when using generators from multiple packs that has the same name. Contributed by STMicroelectronics Signed-off-by: Torbjörn SVENSSON <[email protected]>
- Loading branch information
1 parent
22d2212
commit a46782d
Showing
10 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ build: | |
category: sourceC | ||
generator: | ||
id: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
files: | ||
- file: ${CMSIS_PACK_ROOT}/ARM/RteTestGenerator/0.1.0/Templates/RteTestGen.c.template | ||
category: genSource | ||
|
@@ -46,6 +47,7 @@ build: | |
selected-by: RteTest:CORE | ||
generators: | ||
- generator: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
path: ../data/TestGenerator/MultipleComponents/RteTestGeneratorIdentifier | ||
gpdsc: ../data/TestGenerator/MultipleComponents/RteTestGeneratorIdentifier/RteTestGen_ARMCM0/RteTest.gpdsc | ||
command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,12 +31,14 @@ build: | |
category: sourceC | ||
generator: | ||
id: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
- component: ARM::RteTest:[email protected] | ||
condition: Cortex-M Device | ||
from-pack: ARM::[email protected] | ||
selected-by: RteTest:CORE | ||
generators: | ||
- generator: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
path: ../data/TestGenerator/layer/RTE/Device | ||
gpdsc: ../data/TestGenerator/layer/RTE/Device/RteTestGen_ARMCM0/RteTest.gpdsc | ||
command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,18 +31,21 @@ build: | |
category: sourceC | ||
generator: | ||
id: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
- component: ARM::Device:RteTest Generated Component:[email protected] | ||
condition: RteDevice | ||
from-pack: ARM::[email protected] | ||
selected-by: Device:RteTest Generated Component:RteTestWithKey | ||
generator: | ||
id: RteTestGeneratorWithKey | ||
from-pack: ARM::[email protected] | ||
- component: ARM::RteTest:[email protected] | ||
condition: Cortex-M Device | ||
from-pack: ARM::[email protected] | ||
selected-by: RteTest:CORE | ||
generators: | ||
- generator: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
path: ../data/TestGenerator/GeneratedFiles/RteTestGeneratorIdentifier | ||
gpdsc: ../data/TestGenerator/GeneratedFiles/RteTestGeneratorIdentifier/RteTestGen_ARMCM0/RteTest.gpdsc | ||
command: | ||
|
@@ -71,6 +74,7 @@ build: | |
- ../../../../output/test-gpdsc-multiple-generators.Debug+CM0.cbuild.yml | ||
- --foo=bar | ||
- generator: RteTestGeneratorWithKey | ||
from-pack: ARM::[email protected] | ||
path: ../data/TestGenerator/GeneratedFiles/RteTestGeneratorWithKey | ||
gpdsc: ../data/TestGenerator/GeneratedFiles/RteTestGeneratorWithKey/RteTestGen_ARMCM0/RteTest.gpdsc | ||
command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,12 +31,14 @@ build: | |
category: sourceC | ||
generator: | ||
id: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
- component: ARM::RteTest:[email protected] | ||
condition: Cortex-M Device | ||
from-pack: ARM::[email protected] | ||
selected-by: RteTest:CORE | ||
generators: | ||
- generator: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
path: ../data/TestGenerator/RTE/Device | ||
gpdsc: ../data/TestGenerator/RTE/Device/RteTestGen_ARMCM0/RteTest.gpdsc | ||
command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ build: | |
selected-by: Device:RteTest Generated Component:RteTestGenFiles | ||
generator: | ||
id: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
files: | ||
- file: ${CMSIS_PACK_ROOT}/ARM/RteTestGenerator/0.1.0/Templates/RteTest.gpdsc.template | ||
category: genAsset | ||
|
@@ -66,6 +67,7 @@ build: | |
selected-by: CORE | ||
generators: | ||
- generator: RteTestGeneratorIdentifier | ||
from-pack: ARM::[email protected] | ||
path: gendir | ||
gpdsc: gendir/RteTestGen_ARMCM0/RteTest.gpdsc | ||
command: | ||
|