Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 7 | SRCREV = "494aaaed89cb9fe9f2da3b6c6f465a4bc9f6a7e1" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 8 | SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=zfs-2.2-release \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 9 | file://0001-Define-strndupa-if-it-does-not-exist.patch \ |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 10 | file://aaf28a4630af60496c9d33db1d06a7d7d8983422.patch \ |
| 11 | file://0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 12 | " |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 13 | |
| 14 | S = "${WORKDIR}/git" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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. |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 19 | inherit module-base pkgconfig autotools bash-completion |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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 \ |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 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 \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 38 | --without-dracutdir \ |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 39 | " |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 40 | |
| 41 | EXTRA_OEMAKE:append = " \ |
| 42 | INSTALL_MOD_PATH=${D}${root_prefix} \ |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 43 | " |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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} += "\ |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 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 | " |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 67 | |
| 68 | FILES:${PN}-dev += "\ |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 69 | ${prefix}/src/zfs-${PV} \ |
| 70 | ${prefix}/src/spl-${PV} \ |
| 71 | " |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 76 | # FTBFS on aarch64 with 6.2+ kernel see https://github.com/openzfs/zfs/issues/14555 |
| 77 | COMPATIBLE_HOST:aarch64 = "null" |