-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android.mk: Rename C source files to its test suite
Signed-off-by: Victor Chong <[email protected]> Acked-by: Jens Wiklander <[email protected]>
- Loading branch information
1 parent
f84e996
commit 170a1ee
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
170a1ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi vchong,
Would android.mk on tag 2.4.0 could work? We find it is the one don't have your patch....
170a1ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need below 3 patches on top of tag 2.4.0 for Android to work:
cd0186b
f84e996
170a1ee (this one is the one here)
170a1ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Another thing is that, was 2.4.0 based on Android 7? Due to my version still Android 6 so I missed definition of 'pthread_barrier_t' while compiling.
170a1ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're welcome. Yes, both 2.3.0 and 2.4.0 are based on 7.
For pthread_barrier_t, yes, it seems like 6 doesn't support it. You can copy it from https://android.googlesource.com/platform/bionic/+/master/libc/include/bits/pthread_types.h, but I don't know how easy it is. There might be many other things you have to bring in as well just to make it compile without errors. Even then, I don't know if things will run properly or not.
Some related references:
https://android.googlesource.com/platform/bionic/+/280236537e06c7accaffabf8fb407f93dd1c834f -> this one introduces pthread barrier
https://android.googlesource.com/platform/bionic/+/468a5d2d83a3d719f7493d041abc69587756d8fa -> this one says that pthread barrrier should only appear in 7 and higher.
android/ndk#336 -> this one explains why it should be only 7 and higher
Or, the other (perhaps more simple) alternative is compile with CFG_GP_SOCKETS=n and that should disable the use of thread barriers in optee_test, but again, there's no guarantee that other parts of OP-TEE will not use it in the future.
170a1ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it and clear. 👍