summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb
diff options
context:
space:
mode:
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.bb102
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 @@
1SUMMARY = "A simple daemon to allow session software to update firmware"
2LICENSE = "LGPL-2.1+"
3LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
4
5DEPENDS = "glib-2.0 libxmlb json-glib sqlite3 libjcat gcab vala-native"
6
7SRC_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"
11SRC_URI[sha256sum] = "ae56ceb44b786f21f54d133ac70bc5d9cb8cd4bda0167339c669a228da67fa3c"
12
13UPSTREAM_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
16PACKAGE_ARCH = "${MACHINE_ARCH}"
17
18inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages
19
20GIDOCGEN_MESON_OPTION = 'docs'
21GIDOCGEN_MESON_ENABLE_FLAG = 'docgen'
22GIDOCGEN_MESON_DISABLE_FLAG = 'none'
23
24PACKAGECONFIG ??= "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
46PACKAGECONFIG[bluez] = "-Dbluez=true,-Dbluez=false"
47PACKAGECONFIG[consolekit] = "-Dconsolekit=true,-Dconsolekit=false,consolekit"
48PACKAGECONFIG[curl] = "-Dcurl=true,-Dcurl=false,curl"
49PACKAGECONFIG[firmware-packager] = "-Dfirmware-packager=true,-Dfirmware-packager=false"
50PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
51PACKAGECONFIG[gudev] = "-Dgudev=true,-Dgudev=false,libgudev"
52PACKAGECONFIG[gusb] = "-Dgusb=true,-Dgusb=false,libgusb"
53PACKAGECONFIG[libarchive] = "-Dlibarchive=true,-Dlibarchive=false,libarchive"
54PACKAGECONFIG[lzma] = "-Dlzma=true,-Dlzma=false,xz"
55PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false"
56PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false,polkit"
57PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
58PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,gcab-native"
59
60# TODO plugins-all meta-option that expands to all plugin_*?
61PACKAGECONFIG[plugin_altos] = "-Dplugin_altos=true,-Dplugin_altos=false,elfutils"
62PACKAGECONFIG[plugin_amt] = "-Dplugin_amt=true,-Dplugin_amt=false"
63PACKAGECONFIG[plugin_dell] = "-Dplugin_dell=true,-Dplugin_dell=false,libsmbios"
64PACKAGECONFIG[plugin_dummy] = "-Dplugin_dummy=true,-Dplugin_dummy=false"
65PACKAGECONFIG[plugin_emmc] = "-Dplugin_emmc=true,-Dplugin_emmc=false"
66PACKAGECONFIG[plugin_fastboot] = "-Dplugin_fastboot=true,-Dplugin_fastboot=false"
67PACKAGECONFIG[plugin_flashrom] = "-Dplugin_flashrom=true,-Dplugin_flashrom=false,flashrom"
68PACKAGECONFIG[plugin_intel_spi] = "-Dplugin_intel_spi=true,-Dplugin_intel_spi=false"
69PACKAGECONFIG[plugin_logitech_bulkcontroller] = "-Dplugin_logitech_bulkcontroller=true,-Dplugin_logitech_bulkcontroller=false,protobuf-c-native protobuf-c"
70PACKAGECONFIG[plugin_modem_manager] = "-Dplugin_modem_manager=true,-Dplugin_modem_manager=false,libqmi modemmanager"
71PACKAGECONFIG[plugin_msr] = "-Dplugin_msr=true,-Dplugin_msr=false,cpuid"
72PACKAGECONFIG[plugin_nvme] = "-Dplugin_nvme=true,-Dplugin_nvme=false"
73PACKAGECONFIG[plugin_parade_lspcon] = "-Dplugin_parade_lspcon=true,-Dplugin_parade_lspcon=false"
74PACKAGECONFIG[plugin_platform_integrity] = "-Dplugin_platform_integrity=true,-Dplugin_platform_integrity=false"
75PACKAGECONFIG[plugin_realtek_mst] = "-Dplugin_realtek_mst=true,-Dplugin_realtek_mst=false"
76PACKAGECONFIG[plugin_redfish] = "-Dplugin_redfish=true,-Dplugin_redfish=false"
77PACKAGECONFIG[plugin_synaptics_mst] = "-Dplugin_synaptics_mst=true,-Dplugin_synaptics_mst=false"
78PACKAGECONFIG[plugin_synaptics_rmi] = "-Dplugin_synaptics_rmi=true,-Dplugin_synaptics_rmi=false"
79PACKAGECONFIG[plugin_thunderbolt] = "-Dplugin_thunderbolt=true,-Dplugin_thunderbolt=false"
80PACKAGECONFIG[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
82PACKAGECONFIG[plugin_uefi_capsule] = "-Dplugin_uefi_capsule=true -Dplugin_uefi_capsule_splash=false,-Dplugin_uefi_capsule=false,efivar fwupd-efi"
83PACKAGECONFIG[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
86DISABLE_NON_X86 = "plugin_msr plugin_intel_spi"
87DISABLE_NON_X86:x86 = ""
88DISABLE_NON_X86:x86-64 = ""
89PACKAGECONFIG:remove = "${DISABLE_NON_X86}"
90
91FILES:${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
100FILES:${PN}-ptest += "${libexecdir}/installed-tests/ \
101 ${datadir}/installed-tests/"
102RDEPENDS:${PN}-ptest += "gnome-desktop-testing"