-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Move programs from mbedtls to framework #9939
base: development
Are you sure you want to change the base?
Move programs from mbedtls to framework #9939
Conversation
This commit moves demo_common.sh and dlopen_demo.sh from MbedTLS to MbedTLS-framework. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2abee45
to
febf47b
Compare
This commit updates the file paths necessary for dlopen_demo.sh, metatest.c query_compile_time_config.c, query_config.h, query_included_headers.c and zeroize.c. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit updates the include headers for moved program files whilst also adding the -I flag for compiler to locate the moved headers in MbedTLS-Framework. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
febf47b
to
fab23f5
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.
Just some comments about programs/Makefile
.
$(FRAMEWORK)/tests/programs/metatest \ | ||
$(FRAMEWORK)/tests/programs/query_compile_time_config \ | ||
$(FRAMEWORK)/tests/programs/query_included_headers \ |
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.
$(FRAMEWORK)/tests/programs/metatest \ | |
$(FRAMEWORK)/tests/programs/query_compile_time_config \ | |
$(FRAMEWORK)/tests/programs/query_included_headers \ | |
test/metatest \ | |
test/query_compile_time_config \ | |
test/query_included_headers \ |
we want to keep the executables in programs/test
.
test/selftest \ | ||
test/udp_proxy \ | ||
test/zeroize \ | ||
$(FRAMEWORK)/tests/programs/zeroize \ |
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.
$(FRAMEWORK)/tests/programs/zeroize \ | |
test/zeroize \ |
ssl/ssl_test_lib.h \ | ||
ssl/ssl_test_common_source.c \ | ||
$(DEP) | ||
|
||
ssl/ssl_test_lib.o: ssl/ssl_test_lib.c ssl/ssl_test_lib.h $(DEP) | ||
echo " CC ssl/ssl_test_lib.c" | ||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c ssl/ssl_test_lib.c -o $@ | ||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I$(FRAMEWORK)/tests/programs/ -c ssl/ssl_test_lib.c -o $@ |
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.
I'd rather add it to LOCAL_CFLAGS
. In line 10, something like:
LOCAL_CFLAGS += -I${FRAMEWORK}/tests/programs
ssl/ssl_test_lib.h \ | ||
ssl/ssl_test_common_source.c \ | ||
$(DEP) | ||
|
||
ssl/ssl_test_lib.o: ssl/ssl_test_lib.c ssl/ssl_test_lib.h $(DEP) | ||
echo " CC ssl/ssl_test_lib.c" | ||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c ssl/ssl_test_lib.c -o $@ | ||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I$(FRAMEWORK)/tests/programs/ -c ssl/ssl_test_lib.c -o $@ |
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.
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I$(FRAMEWORK)/tests/programs/ -c ssl/ssl_test_lib.c -o $@ | |
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -c ssl/ssl_test_lib.c -o $@ |
ditto for the other occurences
echo " CC test/metatest.c" | ||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../library -I../tf-psa-crypto/core test/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ | ||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../include -I../library -I../tf-psa-crypto/core $(FRAMEWORK)/tests/programs/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
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.
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../include -I../library -I../tf-psa-crypto/core $(FRAMEWORK)/tests/programs/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ | |
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../library -I../tf-psa-crypto/core $(FRAMEWORK)/tests/programs/metatest.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ |
the issue with the compilation of metatest was not in this rule but the fact that there was no rule for the target ${FRAMEWORK}/tests/programs/metatest
thus an implicit rule (lovely make build system...) was used without the necessary paths to search for the headers.
Description
Move program files to MbedTLS-Framework. Closes #112.
PR checklist
Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: