-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recipes-bsp/optee-ftpm: optee-ftpm package needs to be cross compiled #547
base: master
Are you sure you want to change the base?
Conversation
optee-ftpm successfully build only in cross compilation mode, so setting the recipe by default build for cross compilation to resolve the below build error. make[2]: Entering directory '/<<PKGBUILDDIR>>/Samples/ARM32-FirmwareTPM/optee_ta' /usr/bin/make -C fTPM CROSS_COMPILE= make[3]: Entering directory '/<<PKGBUILDDIR>>/Samples/ARM32-FirmwareTPM/optee_ta/fTPM' Checking symlink to the TPM folder: /<<PKGBUILDDIR>> Checking symlink to the WolfSSL folder: /<<PKGBUILDDIR>>/external/wolfssl Establishing symlink. Establishing symlink. CC ../out/fTPM/platform/AdminPPI.o CC ../out/fTPM/platform/Cancel.o make[3]: *** No rule to make target 'lib/wolf/wolf_symlink/wolfcrypt/src/aes.c', needed by '../out/fTPM/./lib/wolf/wolf_symlink/wolfcrypt/src/aes.o'. Stop. make[3]: *** Waiting for unfinished jobs.... CC ../out/fTPM/platform/Clock.o CC ../out/fTPM/platform/Entropy.o CC ../out/fTPM/platform/LocalityPlat.o CC ../out/fTPM/platform/NvAdmin.o CC ../out/fTPM/platform/NVMem.o CC ../out/fTPM/platform/PowerPlat.o CC ../out/fTPM/platform/PlatformData.o CC ../out/fTPM/platform/PPPlat.o CC ../out/fTPM/platform/RunCommand.o CC ../out/fTPM/platform/Unique.o CC ../out/fTPM/platform/EPS.o CC ../out/fTPM/platform/PlatformACT.o CC ../out/fTPM/reference/RuntimeSupport.o CC ../out/fTPM/platform/fTPM_helpers.o CC ../out/fTPM/fTPM.o make[3]: Leaving directory '/<<PKGBUILDDIR>>/Samples/ARM32-FirmwareTPM/optee_ta/fTPM' make[2]: *** [Makefile:6: all] Error 2 Signed-off-by: Rakesh Kumar <[email protected]>
Hi @BaochengSu , could you please review the PR. |
This rather looks like an issue that is independent of the recipe in meta-iot2050, rather shared by all that use But why are you running into this at all? Are you actually building inside QEMU? |
Hi @jan-kiszka ,
Actually, I am building on an x86 host machine and attempted to build the Building only optee-ftpm package for cross-compilation might be beneficial rather than setting What would be your suggestion regarding this matter? |
Hi @rakeshk7097 , Adding To build the single $ ./kas-container shell
2024-10-22 02:49:37 - INFO - kas 4.4 started
...
builder@0764d7249bc7:/build$ bitbake optee-ftpm-iot2050
Loading cache: 100% |
...
NOTE: Executing Tasks
Setscene tasks: 4 of 4
Currently 1 running tasks (38 of 44) 84% |################################################################################################################################################################## |
0: optee-os-tadevkit-iot2050-4.0.0-r0 do_dpkg_build - 42s (pid 2924) Thanks. |
optee-ftpm builds successfully only in cross-compilation mode; therefore, setting the recipe to default to cross-compilation can resolve the following build error.
make[2]: Entering directory '/<>/Samples/ARM32-FirmwareTPM/optee_ta' /usr/bin/make -C fTPM CROSS_COMPILE=
make[3]: Entering directory '/<>/Samples/ARM32-FirmwareTPM/optee_ta/fTPM'
Checking symlink to the TPM folder: /<>
Checking symlink to the WolfSSL folder: /<>/external/wolfssl Establishing symlink.
Establishing symlink.
CC ../out/fTPM/platform/AdminPPI.o
CC ../out/fTPM/platform/Cancel.o
make[3]: *** No rule to make target 'lib/wolf/wolf_symlink/wolfcrypt/src/aes.c', needed by '../out/fTPM/./lib/wolf/wolf_symlink/wolfcrypt/src/aes.o'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC ../out/fTPM/platform/Clock.o
CC ../out/fTPM/platform/Entropy.o
CC ../out/fTPM/platform/LocalityPlat.o
CC ../out/fTPM/platform/NvAdmin.o
CC ../out/fTPM/platform/NVMem.o
CC ../out/fTPM/platform/PowerPlat.o
CC ../out/fTPM/platform/PlatformData.o
CC ../out/fTPM/platform/PPPlat.o
CC ../out/fTPM/platform/RunCommand.o
CC ../out/fTPM/platform/Unique.o
CC ../out/fTPM/platform/EPS.o
CC ../out/fTPM/platform/PlatformACT.o
CC ../out/fTPM/reference/RuntimeSupport.o
CC ../out/fTPM/platform/fTPM_helpers.o
CC ../out/fTPM/fTPM.o
make[3]: Leaving directory '/<>/Samples/ARM32-FirmwareTPM/optee_ta/fTPM'
make[2]: *** [Makefile:6: all] Error 2