Richard Hughes
104459bd10
Check the AMI test key if not installed for HSI-1
...
Fixes https://github.com/fwupd/fwupd/issues/2695
2021-01-05 17:09:02 +00:00
Richard Hughes
6b8d57b0c5
trivial: Fix building on older meson
2021-01-05 15:38:54 +00:00
Richard Hughes
ee2e2c3674
uefi: Rename to uefi-capsule
...
Rename the plugin to make it clearer of the scope.
Based on a patch from Mario Limonciello <mario.limonciello@dell.com>
2021-01-05 15:31:22 +00:00
Jimmy Yu
23cd466ef1
Add plugin to update PixArt RF devices
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2021-01-04 17:20:13 +00:00
Richard Hughes
f9fe19f7f6
Make libcurl optional for fuzzing
...
For fuzzing we want to exclude libcurl support as it depends on other very heavy
libraries like OpenSSL or libtasn which make the fuzzing binary much larger if
linked statically.
2021-01-04 16:22:36 +00:00
Richard Hughes
2b850b96c2
trivial: post release version bump
2020-12-16 13:16:36 +00:00
Richard Hughes
f99dc76cfe
trivial: Actually check if __get_cpuid_count exists before using cpuid.h
2020-12-15 12:21:32 +00:00
Richard Hughes
93867eda8e
Allow linking with the CXX linker
...
This is required by oss-fuzz, for non-obvious reasons!
2020-12-14 20:34:20 +00:00
Richard Hughes
c0d4c09a02
Lower libcurl requirement further still
...
This allows us to build on Ubuntu 16.04!
2020-12-14 16:50:30 +00:00
Richard Hughes
68f565c441
Don't assume we have memfd_create()
2020-12-14 13:09:47 +00:00
Richard Hughes
91e5957b05
trivial: Only define HF_ITER if available...
2020-12-11 09:45:48 +00:00
Richard Hughes
c4ca8e25d1
Use honggfuzz to fuzz firmware rather than AFL
...
This has better multi-core performance and can run in persistent mode -- which
allows us to construct a test harness of all the parsers (which takes time) and
then just reuse the process for lots of different data.
2020-12-11 09:37:42 +00:00
Richard Hughes
f475b48718
trivial: post release version bump
2020-12-08 10:17:13 +00:00
Richard Hughes
00640f42f2
Lower the CURL version required to fix build in RHEL
...
Some vendors really really want 1.5.x in newer RHEL versions, but the version
of curl is too old. Add #ifdefs so that we can emulate (somewhat imperfectly)
the 'new' CURLU functonality.
2020-12-07 14:17:22 +00:00
Richard Hughes
b6f3ff9330
Do not use meson ternary operations to avoid bumping the required meson version
...
This fixes building on RHEL 8.
2020-12-07 14:16:10 +00:00
Richard Hughes
e8fda7bc5a
trivial: post release version bump
2020-11-23 15:51:51 +00:00
Richard Hughes
173d389fa5
Register the SoupSession gtype when required
...
This allows old gnome-software clients to work with new fwupd versions.
2020-11-19 19:39:37 +00:00
Richard Hughes
3a73c342ba
Switch from libsoup to libcurl
...
The former drags on glib-networking and then gsettings-desktop-schemas, which
add over 5Mb to the minimal IoT and CoreOS composes. Everything already uses
libcurl (even NetworkManager!) and so this is an easy way to reduce image size.
2020-11-19 19:39:37 +00:00
tinywrkb
07d5aef247
Install modules-load configs in the correct directory
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2020-11-16 15:27:13 +00:00
Mario Limonciello
fca9a74de0
make gcab optional
2020-11-13 06:17:47 -06:00
Mario Limonciello
90e80e6752
trivial: allow building as a subproject
2020-11-13 06:17:47 -06:00
Mario Limonciello
bd60de12be
Add a flag to indicate if packages are supported
...
Anyone can easily add this, but it makes it clearer that by default hand
build, snap, and flatpak are not checked by anyone.
2020-11-11 14:34:59 -06:00
Richard Hughes
a053134504
Notify the service manager when idle-quitting
...
This makes sure that the main process won't get SIGTERM on shutdown.
Inspired from a patch by Jonathan Kang <jonathankang@gnome.org>
2020-11-04 14:45:59 +00:00
Richard Hughes
27846c448a
trivial: post release version bump
2020-11-02 14:54:39 +00:00
Richard Hughes
203ed841da
trivial: Codespell fixes
2020-11-02 14:26:26 +00:00
Richard Hughes
a2d8b94bf1
trivial: post release version bump
2020-10-26 11:52:16 +00:00
Richard Hughes
c7283ea61e
uefi: Drop efivar dependency
2020-10-19 16:13:21 +01:00
Richard Hughes
f019971c00
redfish: Drop efivar dependency
2020-10-19 16:13:21 +01:00
Mario Limonciello
68df30bd2b
dell: Drop efivar dependency
...
Since we removed the ability to turn on/off force power this is dead code, and
an unnecessary dependency.
2020-10-19 16:13:21 +01:00
Mario Limonciello
11b71f4978
Offer to compile daemon without polkit support
...
Based on a patch from Daniel Campello at
https://chromium-review.googlesource.com/c/chromiumos/third_party/fwupd/+/2354521
2020-10-14 07:58:16 -05:00
Érico Rolim
0651aeef24
Fix header names.
...
- <sys/poll.h> should be <poll.h>
- <sys/errno.h> should be <errno.h>
2020-10-10 12:33:56 +01:00
Érico Rolim
acd95c661b
uefi: add configuration option for objcopy utility.
2020-10-10 12:32:13 +01:00
Richard Hughes
4123885c81
bcm57xx: Add a plugin that can update the BCM5719 network adapter
2020-10-08 16:49:07 +01:00
Mario Limonciello
110eb286bc
Make TPM more optional ( Fixes : #2360 )
...
- Rename the `plugin_tpm` option to `tpm` and when it's disabled
remove TPM support from all plugins
- If enabled then require the TSS to be installed
2020-09-08 15:16:58 -05:00
Jan Tojnar
3e82beedda
build: fix systemd_root_prefix for systemd 246
...
systemd 246 replaced the variable names (4908de44b0
).
The old ones are kept for backwards compatibility but some of them interpolate new variable names so redefining them breaks.
Curiously, only systemdshutdowndir is affected by that here.
2020-08-30 13:39:48 +01:00
Benson Leung
96bad357ad
Require libgusb 0.3.5
...
Newer version of libgusb has g_usb_device_get_configuration_index which
will be used by cros-ec plugin.
Skip bumping this dependency on Debian and Ubuntu as of this commit date,
they don't know about 0.3.5 yet.
2020-08-28 10:48:03 -07:00
Mario Limonciello
5de5dd3582
Install the installed tests
...
Move binaries out of fwupd tree to https://github.com/fwupd/fwupd-test-firmware
Fixes some of https://github.com/fwupd/fwupd/issues/1956
2020-08-28 10:10:43 -05:00
Mario Limonciello
82c3e3471d
Remove support for UEFI dbx security attribute
...
This is no longer relevant as fwupd is providing dbxtool now.
2020-08-19 07:38:51 +01:00
Richard Hughes
891de60df5
trivial: Disable -Wnull-dereference
...
It just doesn't work correctly.
2020-08-13 13:41:49 +01:00
Richard Hughes
cad96542e2
Check if CET is actually being used on the runtime system
...
With thanks to H.J. Lu <hjl.tools@gmail.com> for the initial code.
2020-07-27 15:53:38 +01:00
Richard Hughes
9a04ce8f29
msr: Add a new plugin to detect the Intel DCI state
2020-07-16 20:13:06 +01:00
Richard Hughes
71ba813a71
libfwupd: Add fwupd_client_update_metadata_bytes()
...
Sometimes the data is coming from a blob of memory and not a cached file, so
use a memfd to create a file descriptor that can be passed to the daemon.
2020-07-09 20:57:00 +01:00
Richard Hughes
885faa4011
trivial: Require libjcat even when compiled with -Dbuild=library
2020-07-03 11:51:05 -05:00
Benson Leung
cd65aeaa41
Require libgusb 0.3.3
...
Newer version of libgusb has support for a usb endpoint wrapper.
2020-05-29 06:55:40 +01:00
Mario Limonciello
d39bcee29d
trivial: detect cpuid.h
and also look for host architecture
...
Fixes cross compilation for arm with clang which provides cpuid.h
but helpfully has this error:
```
#if !(__x86_64__ || __i386__)
#error this header is for x86 only
#endif
```
Fixes : #2131
2020-05-26 15:06:08 -05:00
Richard Hughes
bd44432240
trivial: Fix a build failure on aarch64
...
It seems cpuid.h isn't available everywhere, which make sense in retrospect.
2020-05-21 12:05:05 +01:00
Mario Limonciello
07f3fe702b
trivial: if not specified try to use some better dbx defaults
2020-05-15 09:33:01 -05:00
Richard Hughes
f58ac7316c
hsi: Abstract out the list of FwupdSecurityAttr objects for plugins
...
This exports FuSecurityAttrs into libfwupdplugin so that we can pass the plugins
this object rather than a 'bare' GPtrArray. This greatly simplifies the object
ownership, and also allows us to check the object type before adding.
In the future we could also check for duplicate appstream IDs or missing
properties at insertion time.
This change also changes the fu_plugin_add_security_attrs() to not return an
error. This forces the plugin to handle the error, storing the failure in the
attribute itself.
Only the plugin know if a missing file it needs to read indicates a runtime
problem or a simple failure to obtain a specific HSI level.
2020-05-12 16:47:24 +01:00
Richard Hughes
b9640a28ec
uefi-dbx: Add a plugin that analyses the UEFI dbx variable
...
This will be used for future functionality.
2020-05-07 16:59:36 +01:00
Richard Hughes
9ed79ae644
Fix various build issues with -Wdiscarded-qualifiers
...
Fixes https://github.com/fwupd/fwupd/issues/2068
2020-05-07 16:15:30 +01:00