mach-snapdragon: fix OP-TEE SPL link failure
Subsystems (2)
PATCH 1/1 mach-snapdragon: fix OP-TEE SPL link failure
Use CONFIG_IS_ENABLED(OPTEE) instead of IS_ENABLED(CONFIG_OPTEE) to avoid calling OP-TEE APIs in SPL builds where the driver is not available, fixing the SPL link error.
Fixes undefined reference to `is_optee_smc_api' in spl/u-boot-spl
Signed-off-by Aswin Murugan <[email protected]>
--- arch/arm/mach-snapdragon/of_fixup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-snapdragon/of_fixup.c +1 -1
@@ -273,7 +273,7 @@ static int qcom_of_fixup_nodes(void * __maybe_unused ctx, struct event *event)time_call (fixup_usb_nodes, root); -if (IS_ENABLED (CONFIG_OPTEE ) &&is_optee_smc_api ()) +if (CONFIG_IS_ENABLED (OPTEE ) &&is_optee_smc_api ())time_call (add_optee_node, root);return 0 ;
Signature · 1 line
2.34.1
Quoted 9 lines · Aswin Murugan
Use
CONFIG_IS_ENABLED(OPTEE)instead ofIS_ENABLED(CONFIG_OPTEE)to avoid calling OP-TEE APIs in SPL builds where the driver is not available, fixing the SPL link error.Fixes undefined reference to `is_optee_smc_api' in spl/u-boot-splSigned-off-by Aswin Murugan <[email protected]>---
Reviewed-by Ilias Apalodimas <[email protected]>
Quoted 19 lines
arch/arm/mach-snapdragon/of_fixup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-snapdragon/of_fixup.c +1
-2@@ -273,7 +273,7 @@ static int qcom_of_fixup_nodes(void * __maybe_unused ctx, struct event *event)time_call (fixup_usb_nodes, root); -if (IS_ENABLED (CONFIG_OPTEE ) &&is_optee_smc_api ()) +if (CONFIG_IS_ENABLED (OPTEE ) &&is_optee_smc_api ())time_call (add_optee_node, root);return 0 ; --2.34.1
Quoted 10 lines · Aswin Murugan
Use
CONFIG_IS_ENABLED(OPTEE)instead ofIS_ENABLED(CONFIG_OPTEE)to avoid calling OP-TEE APIs in SPL builds where the driver is not available, fixing the SPL link error.Fixes undefined reference to `is_optee_smc_api' in spl/u-boot-splSigned-off-by Aswin Murugan <[email protected]>--- arch/arm/mach-snapdragon/of_fixup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Sumit Garg <[email protected]>
-Sumit
Quoted 18 lines
arch/arm/mach-snapdragon/of_fixup.c +1
-1@@ -273,7 +273,7 @@ static int qcom_of_fixup_nodes(void * __maybe_unused ctx, struct event *event)time_call (fixup_usb_nodes, root); -if (IS_ENABLED (CONFIG_OPTEE ) &&is_optee_smc_api ()) +if (CONFIG_IS_ENABLED (OPTEE ) &&is_optee_smc_api ())time_call (add_optee_node, root);return 0 ;Signature · 1 line
2.34.1