-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Compiling static lib (relic-toolkit) to TA #1691
Comments
I don't think you've compiled the static lib with our headers or you'd get a compile error for exit.
At some good place should take care of the exit problem as well. |
ah okay i think this is the error and i need to recompile the library. maybe you can help me with the right parameters, i keep getting errors and i think i don't know exactly if I'm missing something.
|
Which options needed depends on how OP-TEE was compiled. Compiling for instance libutee with |
okay thanks for your help i will figure it out |
sorry i have to reopen this issue but i still have an error with the compiled library. I build my library with the compiler flags found in $(TA_DEV_KIT_DIR)/mk/config.mk and linked all my libs like:
when i try to compile the hello_world (using my new lib) i get this error.
I try to check why this is happend. __assert_fail seems to be in libc.a but i dont have it in the TA right ? |
The libc (and header files) shipped together with the compiler is targeting Linux user space, that will not work in a TA. |
Hi @sthomsen1 |
I managed it by rewriting the source of the library. Now i need some test to see if everything is working thanks for your help. @igoropaniuk very useful link! Thanks |
@sthomsen1 did you succeed with porting relic to OPTEE? and is your result open source by any chance? ;-) thanks! |
Sorry for the late response, didn’t see your comment. Unfortunately I don’t have the source code anymore :( |
Hi
i have some trouble compiling a static lib (the crypto relic-toolkit library) to my TA.
when i try to compile my TA i got some errors like:
relic itself is static and (i think) is included right in my code. at least i can include it and call the functions.
Searching the include libraries for TA got me thinking the functions exit() and setjmp() are not supported. is this right ?
thanks for your help
ps: i know that optee offers its own crypt lib.
The text was updated successfully, but these errors were encountered: