deleted file mode 100644
@@ -1,25 +0,0 @@
-#!/bin/sh
-#
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2024
-#
-# Authors:
-# Jan Kiszka <jan.kiszka@siemens.com>
-#
-
-PREREQ=""
-prereqs()
-{
- echo "$PREREQ"
-}
-case $1 in
-prereqs)
- prereqs
- exit 0
- ;;
-esac
-
-. /usr/share/initramfs-tools/hook-functions
-
-manual_add_modules erofs
deleted file mode 100644
@@ -1,24 +0,0 @@
-#
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2024
-#
-# Authors:
-# Jan Kiszka <jan.kiszka@siemens.com>
-#
-# SPDX-License-Identifier: MIT
-#
-
-inherit dpkg-raw
-
-SRC_URI += "file://erofs.hook"
-
-DEBIAN_DEPENDS = "erofs-utils"
-
-do_install[cleandirs] += " \
- ${D}/usr/share/initramfs-tools/hooks"
-
-do_install() {
- install -m 0755 "${WORKDIR}/erofs.hook" \
- "${D}/usr/share/initramfs-tools/hooks/erofs"
-}
new file mode 100644
@@ -0,0 +1,14 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2024
+#
+# Authors:
+# Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require recipes-initramfs/initramfs-hook/hook.inc
+
+HOOK_ADD_MODULES = "erofs"
deleted file mode 100644
@@ -1,24 +0,0 @@
-#
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2022
-#
-# Authors:
-# Felix Moessbauer <felix.moessbauer@siemens.com>
-#
-# SPDX-License-Identifier: MIT
-#
-
-inherit dpkg-raw
-
-SRC_URI += "file://squashfs.hook"
-
-DEBIAN_DEPENDS = "initramfs-tools"
-
-do_install[cleandirs] += " \
- ${D}/usr/share/initramfs-tools/hooks"
-
-do_install() {
- install -m 0755 "${WORKDIR}/squashfs.hook" \
- "${D}/usr/share/initramfs-tools/hooks/squashfs"
-}
new file mode 100644
@@ -0,0 +1,14 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2024
+#
+# Authors:
+# Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require recipes-initramfs/initramfs-hook/hook.inc
+
+HOOK_ADD_MODULES = "squashfs"