diff options
Diffstat (limited to 'meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb')
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb b/meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb new file mode 100644 index 0000000000..5827c39e9f --- /dev/null +++ b/meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | SUMMARY = "A simple daemon to allow session software to update firmware" | ||
| 2 | LICENSE = "LGPL-2.1+" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
| 4 | |||
| 5 | DEPENDS = "glib-2.0 libxmlb json-glib sqlite3 libjcat gcab vala-native" | ||
| 6 | |||
| 7 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/1.7.1/${BP}.tar.xz \ | ||
| 8 | file://run-ptest \ | ||
| 9 | file://no-bash.patch \ | ||
| 10 | file://io.patch" | ||
| 11 | SRC_URI[sha256sum] = "ae56ceb44b786f21f54d133ac70bc5d9cb8cd4bda0167339c669a228da67fa3c" | ||
| 12 | |||
| 13 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | ||
| 14 | |||
| 15 | # Machine-specific as we examine MACHINE_FEATURES to decide whether to build the UEFI plugins | ||
| 16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 17 | |||
| 18 | inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages | ||
| 19 | |||
| 20 | GIDOCGEN_MESON_OPTION = 'docs' | ||
| 21 | GIDOCGEN_MESON_ENABLE_FLAG = 'docgen' | ||
| 22 | GIDOCGEN_MESON_DISABLE_FLAG = 'none' | ||
| 23 | |||
| 24 | PACKAGECONFIG ??= "curl gnutls gudev gusb lzma \ | ||
| 25 | ${@bb.utils.filter('DISTRO_FEATURES', 'polkit systemd', d)} \ | ||
| 26 | ${@bb.utils.contains('MACHINE_FEATURES', 'efi', 'plugin_uefi_capsule plugin_uefi_pk', '', d)} \ | ||
| 27 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests plugin_dummy', '', d)} \ | ||
| 28 | plugin_altos \ | ||
| 29 | plugin_amt \ | ||
| 30 | plugin_emmc \ | ||
| 31 | plugin_fastboot \ | ||
| 32 | plugin_flashrom \ | ||
| 33 | plugin_intel_spi \ | ||
| 34 | plugin_logitech_bulkcontroller \ | ||
| 35 | plugin_modem_manager \ | ||
| 36 | plugin_msr \ | ||
| 37 | plugin_nvme \ | ||
| 38 | plugin_parade_lspcon \ | ||
| 39 | plugin_platform_integrity \ | ||
| 40 | plugin_realtek_mst \ | ||
| 41 | plugin_redfish \ | ||
| 42 | plugin_synaptics_mst \ | ||
| 43 | plugin_synaptics_rmi \ | ||
| 44 | plugin_thunderbolt" | ||
| 45 | |||
| 46 | PACKAGECONFIG[bluez] = "-Dbluez=true,-Dbluez=false" | ||
| 47 | PACKAGECONFIG[consolekit] = "-Dconsolekit=true,-Dconsolekit=false,consolekit" | ||
| 48 | PACKAGECONFIG[curl] = "-Dcurl=true,-Dcurl=false,curl" | ||
| 49 | PACKAGECONFIG[firmware-packager] = "-Dfirmware-packager=true,-Dfirmware-packager=false" | ||
| 50 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" | ||
| 51 | PACKAGECONFIG[gudev] = "-Dgudev=true,-Dgudev=false,libgudev" | ||
| 52 | PACKAGECONFIG[gusb] = "-Dgusb=true,-Dgusb=false,libgusb" | ||
| 53 | PACKAGECONFIG[libarchive] = "-Dlibarchive=true,-Dlibarchive=false,libarchive" | ||
| 54 | PACKAGECONFIG[lzma] = "-Dlzma=true,-Dlzma=false,xz" | ||
| 55 | PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false" | ||
| 56 | PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false,polkit" | ||
| 57 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd" | ||
| 58 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,gcab-native" | ||
| 59 | |||
| 60 | # TODO plugins-all meta-option that expands to all plugin_*? | ||
| 61 | PACKAGECONFIG[plugin_altos] = "-Dplugin_altos=true,-Dplugin_altos=false,elfutils" | ||
| 62 | PACKAGECONFIG[plugin_amt] = "-Dplugin_amt=true,-Dplugin_amt=false" | ||
| 63 | PACKAGECONFIG[plugin_dell] = "-Dplugin_dell=true,-Dplugin_dell=false,libsmbios" | ||
| 64 | PACKAGECONFIG[plugin_dummy] = "-Dplugin_dummy=true,-Dplugin_dummy=false" | ||
| 65 | PACKAGECONFIG[plugin_emmc] = "-Dplugin_emmc=true,-Dplugin_emmc=false" | ||
| 66 | PACKAGECONFIG[plugin_fastboot] = "-Dplugin_fastboot=true,-Dplugin_fastboot=false" | ||
| 67 | PACKAGECONFIG[plugin_flashrom] = "-Dplugin_flashrom=true,-Dplugin_flashrom=false,flashrom" | ||
| 68 | PACKAGECONFIG[plugin_intel_spi] = "-Dplugin_intel_spi=true,-Dplugin_intel_spi=false" | ||
| 69 | PACKAGECONFIG[plugin_logitech_bulkcontroller] = "-Dplugin_logitech_bulkcontroller=true,-Dplugin_logitech_bulkcontroller=false,protobuf-c-native protobuf-c" | ||
| 70 | PACKAGECONFIG[plugin_modem_manager] = "-Dplugin_modem_manager=true,-Dplugin_modem_manager=false,libqmi modemmanager" | ||
| 71 | PACKAGECONFIG[plugin_msr] = "-Dplugin_msr=true,-Dplugin_msr=false,cpuid" | ||
| 72 | PACKAGECONFIG[plugin_nvme] = "-Dplugin_nvme=true,-Dplugin_nvme=false" | ||
| 73 | PACKAGECONFIG[plugin_parade_lspcon] = "-Dplugin_parade_lspcon=true,-Dplugin_parade_lspcon=false" | ||
| 74 | PACKAGECONFIG[plugin_platform_integrity] = "-Dplugin_platform_integrity=true,-Dplugin_platform_integrity=false" | ||
| 75 | PACKAGECONFIG[plugin_realtek_mst] = "-Dplugin_realtek_mst=true,-Dplugin_realtek_mst=false" | ||
| 76 | PACKAGECONFIG[plugin_redfish] = "-Dplugin_redfish=true,-Dplugin_redfish=false" | ||
| 77 | PACKAGECONFIG[plugin_synaptics_mst] = "-Dplugin_synaptics_mst=true,-Dplugin_synaptics_mst=false" | ||
| 78 | PACKAGECONFIG[plugin_synaptics_rmi] = "-Dplugin_synaptics_rmi=true,-Dplugin_synaptics_rmi=false" | ||
| 79 | PACKAGECONFIG[plugin_thunderbolt] = "-Dplugin_thunderbolt=true,-Dplugin_thunderbolt=false" | ||
| 80 | PACKAGECONFIG[plugin_tpm] = "-Dplugin_tpm=true,-Dplugin_tpm=false,tpm2-tss" | ||
| 81 | # Turn off the capsule splash as it needs G-I at buildtime, which isn't currently supported | ||
| 82 | PACKAGECONFIG[plugin_uefi_capsule] = "-Dplugin_uefi_capsule=true -Dplugin_uefi_capsule_splash=false,-Dplugin_uefi_capsule=false,efivar fwupd-efi" | ||
| 83 | PACKAGECONFIG[plugin_uefi_pk] = "-Dplugin_uefi_pk=true,-Dplugin_uefi_pk=false" | ||
| 84 | |||
| 85 | # Always disable these plugins on non-x86 platforms as they don't compile | ||
| 86 | DISABLE_NON_X86 = "plugin_msr plugin_intel_spi" | ||
| 87 | DISABLE_NON_X86:x86 = "" | ||
| 88 | DISABLE_NON_X86:x86-64 = "" | ||
| 89 | PACKAGECONFIG:remove = "${DISABLE_NON_X86}" | ||
| 90 | |||
| 91 | FILES:${PN} += "${libdir}/fwupd-plugins-* \ | ||
| 92 | ${systemd_unitdir} \ | ||
| 93 | ${datadir}/fish \ | ||
| 94 | ${datadir}/metainfo \ | ||
| 95 | ${datadir}/icons \ | ||
| 96 | ${datadir}/dbus-1 \ | ||
| 97 | ${datadir}/polkit-1 \ | ||
| 98 | ${nonarch_libdir}/modules-load.d" | ||
| 99 | |||
| 100 | FILES:${PN}-ptest += "${libexecdir}/installed-tests/ \ | ||
| 101 | ${datadir}/installed-tests/" | ||
| 102 | RDEPENDS:${PN}-ptest += "gnome-desktop-testing" | ||
