Dear Jiri,
As suggested I created a batch file & it generates the header file as well if it's manualaly run the batch file.
But when I added in pre-build steps it generates an error during build & doesn't created a header too. A console is as shown below.
10:47:40 **** Incremental Build of configuration Debug_FLASH for project hello_world_s32k146 ****
make -j8 pre-build main-build
"C:/Users/bj.rajendranath/workspaceS32DS.ARM.2018.R1/hello_world_s32k146/hello_world_s32k146/console.bat"
C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH>echo | set /p= "#define MY_PROJECT_NAME " 1>project_header.h
C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH>set MYDIR=\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\
C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH>set MYDIR1=\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146
C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH>for %f in (\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146) do set myfolder=%~nxf
C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH>set myfolder=hello_world_s32k146
C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH>set /p = " "hello_world_s32k146" " 0<nul 1>>project_header.h
make: [makefile:85: pre-build] Error 1 (ignored)
Executing target #14 hello_world_s32k146.siz
Invoking: Standard S32DS Print Size
arm-none-eabi-size --format=berkeley hello_world_s32k146.elf
text data bss dec hex filename
5928 3408 3144 12480 30c0 hello_world_s32k146.elf
Finished building: hello_world_s32k146.siz
Also, Suggest how to reflect it in the project, as it requires the manual addition of the header file.
Raju