[24/27] meta[-isar]: Switch to initramfs-hook class

Message ID 53b3be6fa6804ab45568cb84a3e6f26cb3d975d7.1762170735.git.jan.kiszka@siemens.com
State Under Review
Headers show
Series [01/27] linux-custom: Drop redundant template inheritance | expand

Commit Message

Jan Kiszka Nov. 3, 2025, 11:52 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

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

Patch

diff --git a/meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb b/meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb
index 8c600639..2ee353d0 100644
--- a/meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb
+++ b/meta-isar/recipes-initramfs/initramfs-example/initramfs-isar-example-hook_0.1.bb
@@ -4,7 +4,7 @@ 
 #
 # This software is a part of ISAR.
 
-require recipes-initramfs/initramfs-hook/hook.inc
+inherit initramfs-hook
 
 DESCRIPTION = "Sample initramfs module for ISAR"
 MAINTAINER = "Your name here <you@domain.com>"
diff --git a/meta/recipes-initramfs/initramfs-fsck-hook/initramfs-fsck-ext4-hook_0.3.bb b/meta/recipes-initramfs/initramfs-fsck-hook/initramfs-fsck-ext4-hook_0.3.bb
index c4d10c44..ef44e315 100644
--- a/meta/recipes-initramfs/initramfs-fsck-hook/initramfs-fsck-ext4-hook_0.3.bb
+++ b/meta/recipes-initramfs/initramfs-fsck-hook/initramfs-fsck-ext4-hook_0.3.bb
@@ -1,11 +1,11 @@ 
 # This software is a part of ISAR.
-# Copyright (C) Siemens AG, 2019-2024
+# Copyright (C) Siemens AG, 2019-2025
 #
 # SPDX-License-Identifier: MIT
 
 DESCRIPTION = "Recipe to add fsck hook to the initramfs"
 
-require recipes-initramfs/initramfs-hook/hook.inc
+inherit initramfs-hook
 
 SRC_URI += "file://initramfs-fsck-hook-ext4.triggers"
 
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 94399374..aa9da9c8 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
@@ -6,7 +6,7 @@ 
 # SPDX-License-Identifier: MIT
 #
 
-require recipes-initramfs/initramfs-hook/hook.inc
+inherit initramfs-hook
 
 # Can be disabled with kernel 6.12 and above
 # NOTE: default will eventually be flipped
diff --git a/meta/recipes-initramfs/initramfs-tee-supplicant-hook/initramfs-tee-supplicant-hook_0.2.bb b/meta/recipes-initramfs/initramfs-tee-supplicant-hook/initramfs-tee-supplicant-hook_0.2.bb
index b9dedfd3..c744be4a 100644
--- a/meta/recipes-initramfs/initramfs-tee-supplicant-hook/initramfs-tee-supplicant-hook_0.2.bb
+++ b/meta/recipes-initramfs/initramfs-tee-supplicant-hook/initramfs-tee-supplicant-hook_0.2.bb
@@ -1,4 +1,4 @@ 
-# Copyright (c) Siemens AG, 2023-2024
+# Copyright (c) Siemens AG, 2023-2025
 #
 # Authors:
 #  Su Bao Cheng <baocheng.su@siemens.com>
@@ -6,7 +6,7 @@ 
 # SPDX-License-Identifier: MIT
 #
 
-require recipes-initramfs/initramfs-hook/hook.inc
+inherit initramfs-hook
 
 SRC_URI += "file://local-top"