Skip to contentSkip to conversation

tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD

PATCH RESEND In review Hongbo Yao 3 participants 3 messages Jan 22, 2020 – Feb 13, 2020

Subsystems (2)
lore
Share & tools
lore

Hongbo Yao

author
#0 lore raw

PATCH RESEND 1/1 tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD

If CRYPTO_DEV_CCP_DD=m and AMDTEE=y, the following error is seen while building call.c or core.c

drivers/tee/amdtee/call.o: In function `handle_unload_ta':
call.c:(.text+0x35f): undefined reference to psp_tee_process_cmd' drivers/tee/amdtee/core.o: In function amdtee_driver_init':
core.c:(.init.text+0xf): undefined reference to `psp_check_tee_status

Fix the config dependency for AMDTEE here.

Fixes 757cc3e9ff ("tee: add AMD-TEE driver")
---
 drivers/tee/amdtee/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/amdtee/Kconfig +1 -1
index 4e32b6413b41..191f9715fa9a 100644
@@ -3,6 +3,6 @@
 config AMDTEE
 	tristate "AMD-TEE"
 	default m
-	depends on CRYPTO_DEV_SP_PSP
+	depends on CRYPTO_DEV_SP_PSP && CRYPTO_DEV_CCP_DD
 	help
 	  This implements AMD's Trusted Execution Environment (TEE) driver.
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Hongbo Yao

If CRYPTO_DEV_CCP_DD=m and AMDTEE=y, the following error is seen while building call.c or core.c

drivers/tee/amdtee/call.o: In function `handle_unload_ta':
call.c:(.text+0x35f): undefined reference to psp_tee_process_cmd' drivers/tee/amdtee/core.o: In function amdtee_driver_init':
core.c:(.init.text+0xf): undefined reference to `psp_check_tee_status

Fix the config dependency for AMDTEE here.

Quoted 7 lines
Fixes 757cc3e9ff ("tee: add AMD-TEE driver")
---
 drivers/tee/amdtee/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks,
Jens

Quoted 16 lines
drivers/tee/amdtee/Kconfig +1 -2
index 4e32b6413b41..191f9715fa9a 100644
@@ -3,6 +3,6 @@
 config AMDTEE
        tristate "AMD-TEE"
        default m
-       depends on CRYPTO_DEV_SP_PSP
+       depends on CRYPTO_DEV_SP_PSP && CRYPTO_DEV_CCP_DD
        help
          This implements AMD's Trusted Execution Environment (TEE) driver.
--

2.20.1

maintainer
#2 lore raw
In reply to Hongbo Yao
Quoted 10 lines · Hongbo Yao

If CRYPTO_DEV_CCP_DD=m and AMDTEE=y, the following error is seen while building call.c or core.c

drivers/tee/amdtee/call.o: In function `handle_unload_ta':
call.c:(.text+0x35f): undefined reference to psp_tee_process_cmd' drivers/tee/amdtee/core.o: In function amdtee_driver_init':
core.c:(.init.text+0xf): undefined reference to `psp_check_tee_status

Fix the config dependency for AMDTEE here.

Quoted 7 lines
Fixes 757cc3e9ff ("tee: add AMD-TEE driver")
---
 drivers/tee/amdtee/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt