Hi
Before make, try to checkout one branch such as lf-6.1.36-2.1.0. then no such error reported.
Best regards
Harvey
Hi @Harvey021
Thanks for your inputs. I did as you said, I did the checkout to branch lf-6.1.36-2.1.0 before "make". But I am getting the same error again. I am attaching the screenshots in the reply.
I am able to locate where the error is coming.
src/common/hsm_api/hsm_dev_attest.c
src/common/hsm_api/hsm_dev_getinfo.c
The definition is missing in those above files
My steps:
1> git clone https://github.com/nxp-imx/imx-secure-enclave.git
2> ls
0001-strict-update.patch 0001-test-butt-conti.patch doc EULA.txt include Makefile README SCR.txt src test
3> git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
4> git checkout lf-6.1.36-2.1.0
5> ls
0001-strict-update.patch 0001-test-butt-conti.patch cmake doc include LICENSE Makefile README scripts SCR.txt se_version.txt src test
6> make
7> ls
0001-strict-update.patch cmake include libseco_nvm.so.1.0 LICENSE nvm_daemon scripts seco_hsm_test seco_v2x_test src
0001-test-butt-conti.patch doc libseco_hsm.so.1.0 libseco_she.so.1.0 Makefile README SCR.txt seco_she_test se_version.txt test
Best regards
Harvey
My mistake for step 6, change the command "make" to the command line
"rm -rf export;make PLAT=ele clean; make PLAT=seco clean;make PLAT=ele install_tests;tree export"
Let me know if problem persists on your end.
Best regards
Harvey
Hi @DeepThinker
Please refer to the link: GitHub - nxp-imx/imx-secure-enclave: source code for iMX8 SHE driver
Best regards
Harvey
I'm glad to hear that you had a positive experience.
Hi Harvey @Harvey021 ,
Thanks for your inputs.
I have tried that, I cloned everything from the link in the linux machine. and Tried to compile it using "make" command.
it shows this error:
src/common/hsm_api/hsm_dev_attest.c: In function ‘hsm_dev_attest’:
src/common/hsm_api/hsm_dev_attest.c:40:6: error: ‘MT_SAB_DEV_ATTEST’ undeclared (first use in this function); did you mean ‘HSM_DEV_ATTEST’?
40 | MT_SAB_DEV_ATTEST,
| ^~~~~~~~~~~~~~~~~
| HSM_DEV_ATTEST
src/common/hsm_api/hsm_dev_attest.c:40:6: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:73: src/common/hsm_api/hsm_dev_attest.o] Error 1
Thanks & regards.