Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SystemReady
u-boot-tfa-build
Commits
dd4dfc60
Unverified
Commit
dd4dfc60
authored
Mar 01, 2021
by
Grant Likely
Committed by
GitHub
Mar 01, 2021
Browse files
Merge pull request #2 from apalos/master
Fixes for lx2160a build
parents
87180263
01754f75
Changes
2
Hide whitespace changes
Inline
Side-by-side
board-lx2160a.mk
View file @
dd4dfc60
...
...
@@ -10,6 +10,15 @@ RCW_TARGET_PATH := $(RCW_PATH)/$(CONFIG_SYS_CONFIG_NAME)
TFA_PLAT
:=
$(CONFIG_SYS_CONFIG_NAME)
TFA_EXTRA
+=
RCW
=
$(RCW_TARGET_PATH)
/RCW/template.bin
TFA_EXTRA
+=
TRUSTED_BOARD_BOOT
=
0
GENERATE_COT
=
0
BOOT_MODE
=
auto
SECURE_BOOT
=
false
OPTEE_EXTRA
+=
CFG_RPMB_FS_DEV_ID
=
1
OPTEE_PLATFORM
:=
ls
OPTEE_PLATFORM_FLAVOR
:=
lx2160ardb
# In TF-A for LX2, the option for parsing header on optee is not supported.
# It expects a binary which can be loaded in memory and where execution can
# start from.
# This option forces an objcopy which converts elf into bin and the header
# gets removed.
USE_TEE_BIN
=
TRUE
FLASH_IMAGE
:=
$(CONFIG_SYS_CONFIG_NAME)
-sdcard
.img
...
...
top.mk
View file @
dd4dfc60
...
...
@@ -223,6 +223,9 @@ endif # ifeq($(CONFIG_EFI_MM_COMM_TEE),y)
OPTEE_EXTRA
+=
ARCH
=
arm
OPTEE_EXTRA
+=
CROSS_COMPILE32
=
arm-linux-gnueabihf-
OPTEE_EXTRA
+=
PLATFORM
=
$(OPTEE_PLATFORM)
ifneq
($(OPTEE_PLATFORM_FLAVOR),)
OPTEE_EXTRA
+=
PLATFORM_FLAVOR
=
$(OPTEE_PLATFORM_FLAVOR)
endif
OPTEE_EXTRA
+=
CFG_ARM64_core
=
y
OPTEE_EXTRA
+=
CFG_RPMB_FS
=
y
OPTEE_EXTRA
+=
CFG_RPMB_WRITE_KEY
=
1
...
...
@@ -232,14 +235,28 @@ OPTEE_EXTRA += CFG_CORE_HEAP_SIZE=524288
#OPTEE_EXTRA += CFG_TA_ASLR=n
# Tell TFA where to find the OP-TEE binaries
TFA_EXTRA += BL32=$(OPTEE_OUTPUT)/arm-plat-vexpress/core/tee-header_v2.bin
TFA_EXTRA += BL32_EXTRA1=$(OPTEE_OUTPUT)/arm-plat-vexpress/core/tee-pager_v2.bin
TFA_EXTRA += BL32_EXTRA2=$(OPTEE_OUTPUT)/arm-plat-vexpress/core/tee-pageable_v2.bin
ifneq
($(USE_TEE_BIN),)
# On some platforms the option for parsing header on optee is not supported.
# Those platforms expect a binary which can be loaded in memory and where
# execution can start from.
# This option forces an objcopy which converts elf into bin and the header
# gets removed.
optee-tee-bin
:
optee_os/all
$(CROSS_COMPILE)
objcopy
-v
-O
binary
\
$(OPTEE_OUTPUT)
/arm-plat-
$(OPTEE_PLATFORM)
/core/tee.elf
\
$(OPTEE_OUTPUT)
/arm-plat-
$(OPTEE_PLATFORM)
/core/tee.bin
TFA_EXTRA
+=
BL32
=
$(OPTEE_OUTPUT)
/arm-plat-
$(OPTEE_PLATFORM)
/core/tee.bin
FIP_DEPS
+=
optee-tee-bin
else
TFA_EXTRA
+=
BL32
=
$(OPTEE_OUTPUT)
/arm-plat-
$(OPTEE_PLATFORM)
/core/tee-header_v2.bin
TFA_EXTRA
+=
BL32_EXTRA1
=
$(OPTEE_OUTPUT)
/arm-plat-
$(OPTEE_PLATFORM)
/core/tee-pager_v2.bin
TFA_EXTRA
+=
BL32_EXTRA2
=
$(OPTEE_OUTPUT)
/arm-plat-
$(OPTEE_PLATFORM)
/core/tee-pageable_v2.bin
endif
#ifeq($(USE_TEE_BIN),)
TFA_EXTRA
+=
BL32_RAM_LOCATION
=
tdram
TFA_EXTRA
+=
SPD
=
opteed
FIP_DEPS
+=
optee_os/all
endif
# ifeq($(CONFIG_OPTEE),y)
# Default Trusted Firmware configuration settings
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment