This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC1352R: makefile and CCS Build Variables

Part Number: CC1352R

Tool/software: Code Composer Studio

Hello.

I need to add some information to the name of the generated hex file.
I get the variable HASH_INFO in the makefile.init.

But when I try to apply it in the builder settings, nothing comes of it. What am I doing wrong ?
Sample makefile.init

HASH_INFO := $(shell git rev-parse --short HEAD)
$(info HASH_INFO: $(HASH_INFO))
COMPILER_FLAGS += --define=HASH_TAG=$(HASH_INFO)

Post-build steps:

${CG_TOOL_HEX} -order MS --memwidth=8 --romwidth=8 --intel -o ${HASH_INFO}.hex ${ProjName}

At compilation console, the value of this variable is displayed:
HASH_INFO: 89c796f

But as a result, I get blank name of a".hex" file

And the resulting line for the postbuild looks like this: 

<Linking>
Finished building target: "KeypadPlus_1352.out"
 
HASH_INFO: 89c796f
C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armhex -order MS --memwidth=8 --romwidth=8 --intel -o .hex KeypadPlus_1352

Help me deal with this problem. Unfortunately, I do not have experience working with makefiles.