S32 Design studio headless - environment variables

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

S32 Design studio headless - environment variables

1,772 Views
Anburaj
Contributor II

In Headless mode, how we can pass some environment variables or defines to use it inside the S32 design studio ?

 

Background: We'd need to create different variant of build while building in the integration pipeline and the same variable need to be accessed by the developer for variant handling with in the code. (duplicating configuration inside S32DS is not preferable).

 

Thanks in advance.

Tags (1)
0 Kudos
Reply
7 Replies

1,746 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you help us elaborate more on regards of "how we can pass some environment variables or defines to use it inside the S32 design studio"?

There is an option under:

DanielAguirre_0-1697226269575.png

In which the defines are provided. Also, there is a section under the "Help Contents" on regards of setting environment variables:

DanielAguirre_1-1697226315227.png

Don't know if this information was helpful or not.

Please, let us know.

0 Kudos
Reply

1,721 Views
Anburaj
Contributor II

Hi @Daniel-Aguirre , Thanks for the feedback. Below options are fine when using in IDE. we want to pass an extra argument during Headless mode while launching.

 

For e.g;

 

build.bat (which defines the variant e.g., ProductVariant1) --> Launch S32DS and access ProductVarinat1 in terms of preprocessor directives.

0 Kudos
Reply

1,709 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. We don't seem to see any information on this regard. Just to be clear, you cannot create different projects for different variants, is this correct? i.e. you have a project for Var1 and another for Var 2, once you execute the build.bat you can choose either use the project for Var1 and Var2.

Still, we will verify if there might be something of use under S32DS.

Please, let us know.

0 Kudos
Reply

1,692 Views
Anburaj
Contributor II

Hi @Daniel-Aguirre 

We do not want to create multiple project and maintain different set of build setting (compiler, linker, build variable). 

Since between VAR1 & VAR2 only small subset of application changes are required. 

Maintaining, different project configuration brings lot of maintenance effort.

 

We've tried passing additional defines as per Ecilpse CDT but it does not work with S32DS.

 

If you please check & provide any suggestion it will be helpful.

1,586 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We apologize for the delay.

For the information that has been shared with us, it seems that this is a bug under S32DS. We are still looking for a clear confirmation on this topic.

Also, an idea came to our mind, can you modify the makefile that is used for building the project? Something like shown below:

DanielAguirre_0-1699476234266.png

Where you could modify your makefile prior to building the project, and maybe with the use of flags some defines are added to the build.

Again, we apologize for the delay on this topic.

Please, let us know.

1,534 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We apologize for the delay. It seems to be confirmed that this is a bug under S32DS.

We do apologize.

Please, let us know.

0 Kudos
Reply

1,310 Views
Anburaj
Contributor II
Hi, Sorry for the delay. whether we can configure this as a pre-build step or any default make file available in S32DS project.
0 Kudos
Reply