fwupd_2.0.16.bb 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. SUMMARY = "A simple daemon to allow session software to update firmware"
  2. LICENSE = "LGPL-2.1-or-later"
  3. LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
  4. DEPENDS = "\
  5. curl \
  6. gcab \
  7. glib-2.0 \
  8. json-glib \
  9. hwdata \
  10. libjcat \
  11. libusb \
  12. libxmlb \
  13. python3-jinja2-native \
  14. vala-native \
  15. "
  16. SRC_URI = "\
  17. https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \
  18. file://run-ptest \
  19. "
  20. SRC_URI[sha256sum] = "79cce6b61d9ea531de0ef3b13e7f2682c699901b11f410b2ed91192618e1620e"
  21. UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
  22. UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
  23. # Machine-specific as we examine MACHINE_FEATURES to decide whether to build the UEFI plugins
  24. PACKAGE_ARCH = "${MACHINE_ARCH}"
  25. inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages
  26. GIDOCGEN_MESON_OPTION = 'docs'
  27. GIDOCGEN_MESON_ENABLE_FLAG = 'enabled'
  28. GIDOCGEN_MESON_DISABLE_FLAG = 'disabled'
  29. GIR_MESON_ENABLE_FLAG = 'enabled'
  30. GIR_MESON_DISABLE_FLAG = 'disabled'
  31. EXTRA_OEMESON = "-Dvendor_ids_dir=${datadir}/hwdata"
  32. PACKAGECONFIG ??= "\
  33. ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
  34. ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
  35. ${@bb.utils.filter('DISTRO_FEATURES', 'bluetooth polkit', d)} \
  36. gnutls \
  37. hsi \
  38. plugin_flashrom \
  39. plugin_modem_manager \
  40. protobuf \
  41. "
  42. PACKAGECONFIG[bluetooth] = "-Dbluez=enabled,-Dbluez=disabled"
  43. PACKAGECONFIG[firmware-packager] = "-Dfirmware-packager=true,-Dfirmware-packager=false"
  44. PACKAGECONFIG[fish-completion] = "-Dfish_completion=true,-Dfish_completion=false"
  45. PACKAGECONFIG[gnutls] = "-Dgnutls=enabled,-Dgnutls=disabled,gnutls"
  46. PACKAGECONFIG[hsi] = "-Dhsi=enabled,-Dhsi=disabled"
  47. PACKAGECONFIG[libarchive] = "-Dlibarchive=enabled,-Dlibarchive=disabled,libarchive"
  48. PACKAGECONFIG[libdrm] = "-Dlibdrm=enabled,-Dlibdrm=disabled,libdrm"
  49. PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false"
  50. PACKAGECONFIG[metainfo] = "-Dmetainfo=true,-Dmetainfo=false"
  51. PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit"
  52. PACKAGECONFIG[readline] = "-Dreadline=enabled,-Dreadline=disabled,readline"
  53. PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
  54. PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,gcab-native"
  55. # TODO plugins-all meta-option that expands to all plugin_*?
  56. PACKAGECONFIG[plugin_flashrom] = "-Dplugin_flashrom=enabled,-Dplugin_flashrom=disabled,flashrom"
  57. PACKAGECONFIG[protobuf] = "-Dprotobuf=enabled,-Dprotobuf=disabled,protobuf-c-native protobuf-c"
  58. PACKAGECONFIG[plugin_modem_manager] = "-Dplugin_modem_manager=enabled,-Dplugin_modem_manager=disabled,libqmi modemmanager"
  59. PACKAGECONFIG[plugin_uefi_capsule_splash] = "-Dplugin_uefi_capsule_splash=true,-Dplugin_uefi_capsule_splash=false,python3-pygobject"
  60. FILES:${PN} += "\
  61. ${libdir}/fwupd-plugins-* \
  62. ${libdir}/fwupd-${PV} \
  63. ${systemd_unitdir} \
  64. ${nonarch_libdir}/sysusers.d/fwupd.conf \
  65. ${datadir}/fish \
  66. ${datadir}/metainfo \
  67. ${datadir}/icons \
  68. ${datadir}/dbus-1 \
  69. ${datadir}/polkit-1 \
  70. ${nonarch_libdir}/modules-load.d \
  71. "
  72. FILES:${PN}-ptest += "${libexecdir}/installed-tests/ \
  73. ${datadir}/installed-tests/"
  74. RDEPENDS:${PN}-ptest += "gnome-desktop-testing python3 dbus"
  75. # ESP mounting, not strictly necessary
  76. RRECOMMENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'udisks2', '', d)}"
  77. INSANE_SKIP:${PN}-ptest += "buildpaths"