添加自己的TA-CA,程序不存在问题
(拾人牙慧的 第二天,人生无常,大肠包小肠。)
CSDN教程链接:
https://icyshuai.blog.csdn.net/article/details/71517567
小破站学习视频链接:
https://www.bilibili.com/video/BV1L4411N7gZ?p=2&vd_source=12612241645919f1f8e20eaf810237d6
make run编译完成之后,运行程序,程序不存在?
程序明显已经编译成功,生成了bin文件,为什么运行时程序不存在?
呵,这可能是程序命取错了。
打开optee_example/makefile文件,可以看到在EXAMPLE_LIST中添加自己的文件夹后,会将example/host/中名为optee_example 的文件复制到out文件夹。如果命名不符合规则就不复制,所以如果文件夹命名为example,则程序命名为optee_example 。后续会将out中的文件加载到qemu虚拟出来的虚拟机中。
EXAMPLE_LIST := hello_world random jolie_test
...
prepare-for-rootfs: examples
echo "Copying example CA and TA binaries to $(OUTPUT_DIR)..."
@mkdir -p $(OUTPUT_DIR)
@mkdir -p $(OUTPUT_DIR)/ta
@mkdir -p $(OUTPUT_DIR)/ca
@for example in $(EXAMPLE_LIST); do \
if [ -e $$example/host/optee_$$example ]; then \
cp -p $$example/host/optee_$$example $(OUTPUT_DIR)/ca/; \
fi; \
cp -pr $$example/ta/*.ta $(OUTPUT_DIR)/ta/; \
done
...
我的文件夹名 为jolie_test,修改文件名为optee_jolie_test,再编译一次。
可以看到,out里的所有文件都加载到/usr/bin目录下了。