apache / incubator-teaclave-trustzone-sdk

Teaclave TrustZone SDK enables safe, functional, and ergonomic development of trustlets.
https://teaclave.apache.org
Apache License 2.0
203 stars 58 forks source link

(Solved) Failed to build repo with optee-3.18.0 #101

Closed winston-wen closed 1 year ago

winston-wen commented 1 year ago

I was following this blogpost, but replaced optee with higher version. When executing this command,

make QEMU_VIRTFS_ENABLE=y CFG_TEE_RAM_VA_SIZE=0x00300000

I encountered the following error message:

make[1]: Entering directory '/home/user/optee-qemuv8-3.18.0/qemu'
changing dir to build for make ""...
make[2]: Entering directory '/home/user/optee-qemuv8-3.18.0/qemu/build'
config-host.mak is out-of-date, running configure
bash: line 3: ./config.status: No such file or directory
make[2]: *** No rule to make target 'config-host.mak', needed by 'meson.stamp'.  Stop.
make[2]: Leaving directory '/home/user/optee-qemuv8-3.18.0/qemu/build'
make[1]: *** [GNUmakefile:11: all] Error 2
make[1]: Leaving directory '/home/user/optee-qemuv8-3.18.0/qemu'
make: *** [Makefile:236: qemu] Error 2

optee-3.14.0, which is mentioned in the blogpost, is OK.

DemesneGH commented 1 year ago

Hi @winston-wen Teaclave TrustZone SDK has been tested with OP-TEE 3.18.0. It seems you have issues with building OP-TEE 3.18.0 Repo (not the SDK), maybe previous building outputs remained in the directory. Suggest cleaning your optee-qemuv8-3.18.0 directory, executing repo sync and trying again.

winston-wen commented 1 year ago

A fresh build solved this issue! Thanks for your patience!

DemesneGH commented 1 year ago

@winston-wen Happy to help.