[3/3] initramfs-tee-ftpm-hook: Skip local-top hook without userland supplicant

Message ID bc2b163a0498cf36ad76067bbd6ec6bf1e51c253.1761385036.git.jan.kiszka@siemens.com
State Under Review
Headers show
Series initramfs-tee-ftpm-hook fix and optimizations | expand

Commit Message

Jan Kiszka Oct. 25, 2025, 9:37 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

When the in-kernel RPMB supplicant is used, there is no need to await
the fTPM appearance, the kernel takes care of it.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 .../initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb b/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb
index 0a7cd560..94399374 100644
--- a/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb
+++ b/meta/recipes-initramfs/initramfs-tee-ftpm-hook/initramfs-tee-ftpm-hook_0.3.bb
@@ -8,14 +8,14 @@ 
 
 require recipes-initramfs/initramfs-hook/hook.inc
 
-SRC_URI += "file://local-top"
-
 # Can be disabled with kernel 6.12 and above
 # NOTE: default will eventually be flipped
 TEE_SUPPLICANT_IN_USERLAND ?= "1"
 
 OVERRIDES .= "${@'supp-user' if bb.utils.to_boolean(d.getVar('TEE_SUPPLICANT_IN_USERLAND')) else ''}"
 
+SRC_URI:supp-user += "file://local-top"
+
 HOOK_PREREQ:supp-user = "tee-supplicant"
 HOOK_ADD_MODULES = "amdtee arm-tstee optee qcomtee tpm_ftpm_tee"
 SCRIPT_PREREQ:supp-user = "tee-supplicant"