Do you want this based on the build string that in specified in make target? Or we can explore an easier option to define a MACRO based on platform.
Defining a MACRO as:
Taking decision based on this MACRO
//do something for platform1
//do something else
This: "Do you want this based on the build string that in specified in make target?"
I'd like to automate this as much as possible and not change my code for the platforms.
I am not sure of the order of execution.
I could add a new macro into each platform (in board.h or in one of the MK files) if it will propagate to my code.
It would require some care when doing SDK updates.
2 of 2 people found this helpful
Kindly follow the MACRO based approach as explained in the earlier response. You will have to define the MACRO in your application .c/.h file. If the MACRO is defined at multiple locations, the compiler will throw a warning regarding the locations where the MACRO is defined.