--- title: 第三次作業 --- # 目標 * 練習看makefile * 練習新增Client APP (CA)跟Trusted APP (TA),並用QEMU的環境測試 * 練習在build code時加入額外package  # 作業內容 * 在optee_examples/Makefile中,有一段: ``` examples: @for example in $(EXAMPLE_LIST); do \ $(MAKE) -C $$example CROSS_COMPILE="$(HOST_CROSS_COMPILE)" || exit 1; \ done ``` * Q1:請試著解釋這段內容 > Hints:makefile、cross compiler * Q2:請問在`optee_examples/hello_world/ta/include/hello_world_ta.h`中TA_HELLO_WORLD_UUID是做什麼用的? > Hints:UUID * 第二次作業中,有新增過CA、TA了,但都是寫在optee_examples的目錄底下 Q3:請練習新增一個CA跟TA取得系統時間,將CA、TA放在OP-TEE project的根目錄底下 CA、TA可以用第二次作業中get_sys_time的code就好 > Hints: > 需修改: > optee_qemu/build/common.mk > optee_qemu/build/br-ext/Config.in > 需新增: > optee_qemu/build/br-ext/ configs/optee_get_time > optee_qemu/build/br-ext / package/optee_get_time/Config.in > optee_qemu/build/br-ext/package/optee_get_time/ optee_get_time.mk * 預設的OP-TEE的REE中是沒辦法執行python的,那假如今天因某些需求,需要在上面執行時該怎麼辦 * Q4:請練習將python package加入image中 > Hints:menuconfig、package manage 繳交方式 * 報告 * 截圖 >[!Warning] !!!檔名請讓我看得出來你是誰!!! [繳交連結](https://drive.google.com/drive/folders/1kprKSdtTEXyvrUgoJdPHwa_zMp-fqBIH?usp=sharing)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up