Appreciate if someone could explain the practical implications of selecting between VARIANT-POST-BUILD and VARIANT-PRE-COMPILE, how should I refer to it or behave in my code ?
As seen bellow in a sample project
Hi, @ofer-bahar-guardknox , Very sorry for replying late.
The VARIANT-POST-BUILD
Pre-compile and Post-build options
It is AUTOSAR specific option.
https://www.autosar.org/fileadmin/standards/R4-3/CP/AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
Now, for the understanding POST build steps
---------------------------------------------------------------
1. How to Select your project see the option for adding command at
Please go to as screenshot below
Properties -> Settings -> Build steps -> Post build-steps
and write command at
command :
Now, you also need to understand that, command that you enter POST build steps check box, will be added to the makefile which will be specifying the operations to perform POST building the .elf file
So in the below two screenshots you can see that
1. echo command has been entered into command section, and then
2. the echo command is put in the makefile
You can also first try using echo command and printing the test message to be sure that it is working.
Similarly, You can add the "Valid" command in the POST -build section for your requirement.
Please let us know if you have any further question .
Thank you, Kind regards,
- Mehul Patel
Thanks Mehul
My question was referred to the S32DS project selection of variant post-build & variant pre-compiled as they appear in the S32CT selection of ConfigTimeSupport => config_variant and not the c/c++ project settings of pre & post build steps
Take this one as an example
The question is actually how does the above selection affect and should be used in the code
e.g., does pre-compiled is actually the initialization of the module as part of the RTD framework (I read it somewhere)?
e.g., if post-build is selected, then how is the initialization work and how does the settings can be modified during run time?
Thanks