warp7: Specify a default CONFIG_OPTEE_LOAD_ADDR if non provided
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 8 May 2019 18:14:48 +0000 (19:14 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 13:21:55 +0000 (15:21 +0200)
If no CONFIG_OPTEE_LOAD_ADDR is provided i.e. you are not loading OPTEE
into memory in u-boot, then just set the non-existent CONFIG option to
zero, elsewise stringify(CONFIG_OPTEE_LOAD_ADDR) will return
"CONFIG_OPTEE_LOAD_ADDR" - which looks weird in the u-boot environment.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
include/configs/warp7.h

index 358941e449a9b71ee0afa0c6eeb9f7bc9ff13868..73541fe176081990602903db29a59687b81d3952 100644 (file)
 #define BOOT_SCR_STRING "source ${bootscriptaddr}\0"
 #endif
 
+#ifndef CONFIG_OPTEE_LOAD_ADDR
+#define CONFIG_OPTEE_LOAD_ADDR 0
+#endif
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
        CONFIG_DFU_ENV_SETTINGS \
        "script=boot.scr\0" \