]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
warp7: Specify CONFIG_OPTEE_LOAD_ADDR
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 24 Apr 2018 17:46:37 +0000 (18:46 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 26 Apr 2018 06:52:51 +0000 (08:52 +0200)
In order to sign images with the IMX code-signing-tool (CST) we need to
know the load address of a given image. The best way to derive this load
address is to make it into a define - so that u-boot.cfg contains the
address - which we can then parse when generating the IMX CST headers.

This patch makes the OPTEE_LOAD_ADDR available via u-boot.cfg for further
parsing by external tools.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
Tested-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
configs/warp7_defconfig
include/configs/warp7.h

index c72e6b3f4eb158a3d7b599b44f00a17a6df80b74..8152e8e959d564471f13267252f0b736ff2e14fe 100644 (file)
@@ -45,3 +45,4 @@ CONFIG_USB_ETH_CDC=y
 CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
 CONFIG_OF_LIBFDT=y
 CONFIG_OPTEE=y
+CONFIG_OPTEE_LOAD_ADDR=0x84000000
index 10db716cff49043b0ab677e8ad2e3260b9acbbeb..e12b90bc166edfcec95fd98d3bdcb3854f57fe59 100644 (file)
@@ -40,6 +40,7 @@
        "initrd_high=0xffffffff\0" \
        "fdt_file=imx7s-warp.dtb\0" \
        "fdt_addr=0x83000000\0" \
+       "optee_addr=" __stringify(CONFIG_OPTEE_LOAD_ADDR)"\0" \
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \
        "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \