cancel
Showing results for 
Search instead for 
Did you mean: 

Building and Deploying OP-TEE for 1st Time.

AKuma.46
Associate II

Hello,

while building OP-TEE I encountered one error:

  1. Set the ROOT directory " export FIP_DEPLOYDIR_ROOT=$PWD/../../FIP_artifacts"
  2. make -f $PWD/../Makefile.sdk CFG_EMBED_DTB_SOURCE_FILE=stm32mp157a-dk1 all

ERROR:

make[1]: Entering directory /developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1'

 CHK  /developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/conf.mk

 UPD  /developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/conf.mk

 CHK  /developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/include/generated/conf.h

 CHK   /home/aniket.kumar/common_bsp/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/include/generated/asm-defines.h

 CHK   /developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/include/generated/context_asm_defines.h

make[1]: *** No rule to make target `core/arch/arm/plat-stm32mp1/./drivers/stm32mp1_etzpc.h', needed by `/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/arch/arm/plat-stm32mp1/main.o'. Stop.

make[1]: Leaving directory `/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1'

cp: cannot stat '/home/aniket.kumar/common_bsp/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/tee-header_v2.bin': No such file or directory

cp: cannot stat '/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/tee-pager_v2.bin': No such file or directory

cp: cannot stat '/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/tee-pageable_v2.bin': No such file or directory

cp: cannot stat '/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/optee-os-stm32mp-3.12.0.r1-r0/optee-os-stm32mp-3.12.0.r1/../build/stm32mp157a-dk1/core/tee.elf': No such file or directory

make: *** [optee] Error 1

Please let me know bout this issue.

Thankyou

1 REPLY 1
Gregory PLANCHON
ST Employee

Hello,

Did you source the SDK before your make ?

You can check it doing "echo $CC"

If nothing is returned it's that you did not source it.

Regards,

Grégory

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.