Skip to contentSkip to conversation

mach-snapdragon: fix OP-TEE SPL link failure

PATCH In review Aswin Murugan 3 participants 3 messages Oct 5 – Nov 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
---
 arch/arm/mach-snapdragon/of_fixup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-snapdragon/of_fixup.c +1 -1
index 374e6262db4..2d6446694d6 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Aswin Murugan

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

---

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
index 374e6262db4..2d6446694d6 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Aswin Murugan
Quoted 10 lines · Aswin Murugan

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
---
 arch/arm/mach-snapdragon/of_fixup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-Sumit

Quoted 18 lines
arch/arm/mach-snapdragon/of_fixup.c +1 -1
index 374e6262db4..2d6446694d6 100644
@@ -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