May 25, 2021
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 25, 2021
09:57 AM
Is there a way to add the device name as an argument to a pre-build step? I presume there is a list of variables accessible to pre/post build commands but I can't find it easily....
Could someone point me in the right direction please?
Cheers,
Dan
Solved! Go to Solution.
Labels
- Labels:
-
PSoC Creator & Designer Software
1 Solution
May 26, 2021
06:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 26, 2021
06:35 AM
Dan,
Would this be helpful?:
The project file xxx.cyprj is an xml file.
If you can parse the xml and look for a string:
"selected_device v=" the string in the xml field is the PsoC device being used in the project.
You can then create a script that parses the .cyprj file places the selected device into your own local environment variable and then use it in your own pre- or post- build executables.
Len
"Engineering is an Art. The Art of Compromise."
"Engineering is an Art. The Art of Compromise."
10 Replies