Get source files in S32 eclipse project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get source files in S32 eclipse project

Jump to solution
1,091 Views
mathias_edman
Contributor III

Hi,

I have a problem with getting the filenames in a specific project and configuration. In S32 studio (Version: 2017.R1, Build id: 171018) I did it rather awkwardly by looking in the file .cproject for this section:

<option id="com.freescale.s32ds.cross.gnu.tool.c.linker.option.linkOrder.1217940141" name="Link Order" superClass="com.freescale.s32ds.cross.gnu.tool.c.linker.option.linkOrder" useByScannerDiscovery="false" valueType="stringList">

   <listOptionValue builtIn="false" value="Core0/flashrchw.c"/>

   ....

   ....

But this section is only appearing when setting the tick box "customize linker input order" in the setting for linker.

To make things worse, this section member "name" field has been removed in S32 Version: 2.1, Build id: 190624.

Do you have any suggestion how to get all the source files that is being used/built for a specific project/configuration? What file contains this information?

I want a list like this:

<listOptionValue builtIn="false" value="Core0/flashrchw.c"/>
<listOptionValue builtIn="false" value="Core0/main_Z7_0.c"/>
<listOptionValue builtIn="false" value="Core1/main_Z7_1.c"/>
...

...

Regards,

Mathias

Tags (2)
0 Kudos
1 Solution
956 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

Well - if I understand it correctly - you like to get something like sources list for particular configuration (Debug/Debug RAM/Release), correct? 

You can get ProjectInfo.xml file where is list of sources. Right click on project name -> Export -> S32Design Studio -> Project Info Export wizard: 

pastedImage_1.png

Select configuration you are interested in: 

pastedImage_2.png

After finish you will get ProjectInfo.xml file in project root folder:

pastedImage_3.png

Hope it helps. 

Jiri 

View solution in original post

4 Replies
956 Views
mathias_edman
Contributor III

Can anyone help me with this?

0 Kudos
957 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

Well - if I understand it correctly - you like to get something like sources list for particular configuration (Debug/Debug RAM/Release), correct? 

You can get ProjectInfo.xml file where is list of sources. Right click on project name -> Export -> S32Design Studio -> Project Info Export wizard: 

pastedImage_1.png

Select configuration you are interested in: 

pastedImage_2.png

After finish you will get ProjectInfo.xml file in project root folder:

pastedImage_3.png

Hope it helps. 

Jiri 

956 Views
mathias_edman
Contributor III

Hi Jiri,

Thanks a lot!

This is exactly what I need. Do you know if it is possible to automate this somehow, so that this file is always generated when building for example?

Mathias

0 Kudos
956 Views
jiri_kral
NXP Employee
NXP Employee

Hi Mathias, 

I'm afraid that there is no such feature. You need to create poroject info xml file manually.

Other possibility is parsing build log which looks like this: 

pastedImage_1.png

This file is generated when project is build and is stored in workspace\.metadata\.plugins\org.eclipse.cdt.ui\ProjectName.log 

Jiri