Skip to content

Commit

Permalink
pack optee prebuilt binary into bootloader
Browse files Browse the repository at this point in the history
this will happen only when the mixin of tee is set as "optee"

Tracked-On: OAM-112796
Signed-off-by: Yan, Shaopu <[email protected]>
  • Loading branch information
syan10 committed Oct 24, 2023
1 parent 9489d80 commit c316ecc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/definitions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,21 @@ if [ $(findstring kf4sbl,$(PRIVATE_MODULE) ) ]; then \
echo -ne "serail_baseaddr=0x3f8 serail_type=1 serail_regwidth=1\0" > $(SBL_DIR)/cmdline-acrn; \
echo -ne "kernelflinger\0" > $(SBL_DIR)/cmdline-kf; \
cp $(TOP)/vendor/intel/acrn/sample_a/acrn.32.out $(SBL_DIR)/acrn.32.out; \
if [ $(findstring optee,$(TEE) ) ]; then \
rm -rf $(SBL_DIR)/cmdline-tee; \
rm -rf $(SBL_DIR)/tee.elf; \
echo -ne "tee_elf\0" > $(SBL_DIR)/cmdline-tee; \
cp $(TOP)/vendor/intel/optee/optee_release_binaries/release/tee.elf $(SBL_DIR)/tee.elf; \
python3 $(INTEL_PATH_BUILD)/containertool/GenContainer.py create -t MULTIBOOT \
-cl CMD1:$(SBL_DIR)/cmdline-acrn ELF1:$(SBL_DIR)/acrn.32.out CMD2:$(SBL_DIR)/cmdline-kf ELF2:$@ \
CMD3:$(SBL_DIR)/cmdline-tee ELF3:$(SBL_DIR)/tee.elf \
-k $(INTEL_PATH_BUILD)/testkeys/OS1_TestKey_Priv_RSA3072.pem -o $(PRODUCT_OUT)/sbl_acrn; \
else \
python3 $(INTEL_PATH_BUILD)/containertool/GenContainer.py create -t MULTIBOOT \
-cl CMD1:$(SBL_DIR)/cmdline-acrn ELF1:$(SBL_DIR)/acrn.32.out CMD2:$(SBL_DIR)/cmdline-kf ELF2:$@ \
-k $(INTEL_PATH_BUILD)/testkeys/OS1_TestKey_Priv_RSA3072.pem -o $(PRODUCT_OUT)/sbl_acrn; \
fi \
fi \
fi

$(hide) if [ "$(PRIVATE_MODULE:debug=)" = fb4sbl-user ]; then \
Expand Down

0 comments on commit c316ecc

Please sign in to comment.