diff options
Diffstat (limited to 'meta-filesystems/recipes-filesystems/zfs/zfs_2.2.2.bb')
-rw-r--r-- | meta-filesystems/recipes-filesystems/zfs/zfs_2.2.2.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.2.bb b/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.2.bb new file mode 100644 index 0000000000..d3ea6797e7 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.2.bb | |||
@@ -0,0 +1,77 @@ | |||
1 | SUMMARY = "OpenZFS on Linux and FreeBSD" | ||
2 | DESCRIPTION = "OpenZFS on Linux and FreeBSD" | ||
3 | LICENSE = "CDDL-1.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa" | ||
5 | HOMEPAGE ="https://github.com/openzfs/zfs" | ||
6 | |||
7 | SRCREV = "494aaaed89cb9fe9f2da3b6c6f465a4bc9f6a7e1" | ||
8 | SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=zfs-2.2-release \ | ||
9 | file://0001-Define-strndupa-if-it-does-not-exist.patch \ | ||
10 | file://aaf28a4630af60496c9d33db1d06a7d7d8983422.patch \ | ||
11 | file://0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch \ | ||
12 | " | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | # Using both 'module' and 'autotools' classes seems a bit odd, they both | ||
17 | # define a do_compile function. | ||
18 | # That's why we opt for module-base, also this prevents module splitting. | ||
19 | inherit module-base pkgconfig autotools bash-completion | ||
20 | |||
21 | DEPENDS = "virtual/kernel zlib util-linux libtirpc openssl curl" | ||
22 | |||
23 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd sysvinit', d)}" | ||
24 | |||
25 | PACKAGECONFIG[pam] = "--enable-pam --with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${libdir}/security, --disable-pam" | ||
26 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd," | ||
27 | PACKAGECONFIG[sysvinit] = "--enable-sysvinit,--disable-sysvinit," | ||
28 | |||
29 | EXTRA_OECONF:append = " \ | ||
30 | --disable-pyzfs \ | ||
31 | --with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \ | ||
32 | --with-mounthelperdir=${base_sbin} \ | ||
33 | --with-udevdir=${base_libdir}/udev \ | ||
34 | --with-systemdunitdir=${systemd_system_unitdir} \ | ||
35 | --with-systemdgeneratordir=${nonarch_base_libdir}/systemd/system-generators \ | ||
36 | --with-systemdpresetdir=${nonarch_base_libdir}/systemd/system-preset \ | ||
37 | --with-systemdmodulesloaddir=${sysconfdir}/module-load.d \ | ||
38 | --without-dracutdir \ | ||
39 | " | ||
40 | |||
41 | EXTRA_OEMAKE:append = " \ | ||
42 | INSTALL_MOD_PATH=${D}${root_prefix} \ | ||
43 | " | ||
44 | |||
45 | do_install:append() { | ||
46 | # /usr/share/zfs contains the zfs-tests folder which we do not need: | ||
47 | rm -rf ${D}${datadir}/zfs | ||
48 | |||
49 | rm -rf ${D}${datadir}/initramfs-tools | ||
50 | } | ||
51 | |||
52 | FILES:${PN} += "\ | ||
53 | ${nonarch_base_libdir}/modules \ | ||
54 | ${systemd_system_unitdir} \ | ||
55 | ${nonarch_base_libdir}/systemd/system-generators \ | ||
56 | ${nonarch_base_libdir}/systemd/system-preset \ | ||
57 | ${sysconfdir}/modules-load.d/${BPN}.conf \ | ||
58 | ${sysconfdir}/default/${BPN} \ | ||
59 | ${sysconfdir}/sudoers.d/${BPN} \ | ||
60 | ${sysconfdir}/${BPN} \ | ||
61 | ${base_libdir}/udev \ | ||
62 | ${sbindir} \ | ||
63 | ${bindir} \ | ||
64 | ${libexecdir}/${BPN} \ | ||
65 | ${libdir} \ | ||
66 | " | ||
67 | |||
68 | FILES:${PN}-dev += "\ | ||
69 | ${prefix}/src/zfs-${PV} \ | ||
70 | ${prefix}/src/spl-${PV} \ | ||
71 | " | ||
72 | # Not yet ported to rv32 | ||
73 | COMPATIBLE_HOST:riscv32 = "null" | ||
74 | # conflicting definition of ABS macro from asm/asm.h from kernel | ||
75 | COMPATIBLE_HOST:mips = "null" | ||
76 | # FTBFS on aarch64 with 6.2+ kernel see https://github.com/openzfs/zfs/issues/14555 | ||
77 | COMPATIBLE_HOST:aarch64 = "null" | ||