Commit c907c34b authored by Grant Likely's avatar Grant Likely
Browse files

Fix optee build for rk3399 rockpro64



Set the correct platform and sub-platform for this board so that optee
will compile.
Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@arm.com>
parent ae462cd4
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
FLASH_IMAGE_DEPS := u-boot/all FLASH_IMAGE_DEPS := u-boot/all
TFA_PLAT := $(CONFIG_SYS_SOC) TFA_PLAT := $(CONFIG_SYS_SOC)
OPTEE_PLATFORM := rk3399 OPTEE_PLATFORM := rockchip
OPTEE_EXTRA += PLATFORM_FLAVOR=rk3399
FLASH_IMAGE := $(UBOOT_OUTPUT)/flash_image.bin FLASH_IMAGE := $(UBOOT_OUTPUT)/flash_image.bin
# On the rk3399, U-Boot instead of TF-A builds the final firmware package, and # On the rk3399, U-Boot instead of TF-A builds the final firmware package, and
...@@ -15,6 +16,12 @@ FLASH_IMAGE := $(UBOOT_OUTPUT)/flash_image.bin ...@@ -15,6 +16,12 @@ FLASH_IMAGE := $(UBOOT_OUTPUT)/flash_image.bin
# U-Boot depends on tfa/bl31, and the BL31 image is passed to the U-Boot build # U-Boot depends on tfa/bl31, and the BL31 image is passed to the U-Boot build
u-boot/all: tfa/bl31 u-boot/all: tfa/bl31
ifeq ($(CONFIG_OPTEE),y)
UBOOT_EXTRA += TEE=$(OPTEE_OUTPUT)/arm-plat-rockchip/core/tee.elf
u-boot/all: optee_os/all
endif
UBOOT_EXTRA += BL31=$(TFA_OUTPUT)/$(TFA_PLAT)/release/bl31/bl31.elf UBOOT_EXTRA += BL31=$(TFA_OUTPUT)/$(TFA_PLAT)/release/bl31/bl31.elf
sdimage: sdimage:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment