-
Notifications
You must be signed in to change notification settings - Fork 226
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
libteeacl: condition libteeacl with WITH_TEEACL #336
Conversation
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.
With the comments below addressed, LGTM.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
|
a3bd539
to
ba74d50
Compare
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.
updated with comments addressed, maybe to much: i've added some exptra space char but in the end, i don't think it's really expected.
|
Thanks @eaaltonen for the review and testing.
You mean |
ba74d50
to
b6018a8
Compare
I've squashed the fixed commit and removed the added space characters. |
I actually meant the combinations of |
I suggest adding a few lines to |
CMakeLists.txt
Outdated
@@ -37,7 +38,9 @@ add_subdirectory (libteec) | |||
add_subdirectory (tee-supplicant) | |||
add_subdirectory (public) | |||
add_subdirectory (libckteec) | |||
if(WITH_TEEACL) | |||
find_package (PkgConfig REQUIRED) | |||
pkg_check_modules(uuid REQUIRED IMPORTED_TARGET uuid) | |||
add_subdirectory (libteeacl) |
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.
Just now realized that should probably also indent the block within the if(...)
.
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.
addressed in fixup commit.
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.
👍 feel free to squash.
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.
done, thanks.
Build and embed libteeacl upon WITH_TEEACL=1 (default configuration). This configuration switch allows one to build OP-TEE client without dependencies on pkg-config and libuuid when OP-TEE ACL for PKCS11 is not needed: cmake -DWITH_TEEACL=0 ... or make WITH_TEEACL=0 ... With the comments below addressed, LGTM. Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Eero Aaltonen <eero.aaltonen@vaisala.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Replaces use of set() with option() for CFG_WERROR boolean switch. Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Eero Aaltonen <eero.aaltonen@vaisala.com> Tested-by: Eero Aaltonen <eero.aaltonen@vaisala.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
4073819
to
96767b6
Compare
Addressed review comment. Tags are already applied. |
Build and embed libteeacl upon WITH_TEEACL=1 (default configuration). This configuration switch allows one to build OP-TEE client without dependencies on pkg-config and libuuid when OP-TEE ACL for PKCS11 is not needed:
cmake -DWITH_TEEACL=0 ...
or
make WITH_TEEACL=0 ...
Signed-off-by: Etienne Carriere etienne.carriere@linaro.org