Richard Hughes
ab5683deb0
emmc: Do not print (null)
...
PVS: Incorrect format. A null pointer is used.
2022-09-09 19:23:29 +01:00
Richard Hughes
f79572891b
cros-ec: Fix trivial format specifier
...
PVS: The size_t type argument is expected.
2022-09-09 19:23:29 +01:00
Richard Hughes
425f1a70c7
dell-dock: Remove trivial duplicate line
2022-09-09 19:23:29 +01:00
Richard Hughes
0c80952e30
synaptics-mst: Check the firmware payload size when updating cayenne
...
PVS: Parameter 'payload_len' is always rewritten in function body before being used.
2022-09-09 19:22:58 +01:00
Richard Hughes
07b368d6b1
vbe: Fix a crash when dumping firmware
...
PVS: The null pointer is passed into 'g_byte_array_append' function.
2022-09-09 18:50:56 +01:00
Dylan Van Assche
c62e7a6bab
android-boot: fix segfault
...
Store strings during the lifetime of the plugin and free them
when destroyed.
2022-09-09 16:16:50 +01:00
Richard Hughes
5f554d1668
ccgx: Write all the metadata block as intended
...
PVS: It's odd that 'sizeof()' operator evaluates the size of a pointer to a
class, but not the size of the 'metadata' class object.
2022-09-09 06:42:51 -05:00
Richard Hughes
aaf1f21dd3
Limit the archive size to 25% of the RAM, or 4G
...
PVS: Expression is always false
2022-09-09 06:12:14 -05:00
Mario Limonciello
f5d51d80eb
trivial: fix container generation
2022-09-08 23:18:22 -05:00
Richard Hughes
80608dcac9
Allow setting the FuFirmware size when building firmware
2022-09-08 08:55:51 -05:00
Mario Limonciello
684c663dee
trivial: add goshen ridge nvm version parsing
2022-09-08 09:56:33 +01:00
Richard Hughes
5ebc3b6ad9
Move the generic Intel Goshen Ridge code out to a new plugin
...
The original code was written by Dell for the dell-dock plugin, but
it's exactly the same code and NVM format for Intel reference hardware.
2022-09-08 09:56:33 +01:00
Richard Hughes
fc3ac81978
Load coSWID metadata from a uSWID MTD block device
...
The coSWID is a child of the parent, and the parent container does not have a
version. Also fix a small memory leak when parsing container formats.
Fixes https://github.com/fwupd/fwupd/issues/4294
2022-09-07 16:02:27 +01:00
Richard Hughes
c43b981d63
Fix parsing uSWID uncompressed metadata
...
The magic offset is not required as we're working on a pre-offset GBytes.
2022-09-07 16:02:27 +01:00
Richard Hughes
9e3bd17c70
Fix parsing the coSWID firmware ID when encoded as a UUID
2022-09-07 16:02:27 +01:00
Richard Hughes
1d308b2361
trivial: Export fu_device_set_quirk_kv() for future use
...
This seems like a useful thing regardless.
2022-09-07 14:43:08 +01:00
Mario Limonciello
b0ccde5b27
trivial: add libumock-dev into debian/control
2022-09-07 08:33:02 -05:00
Mario Limonciello
eb8e527a6c
trivial: debian: drop libglib2.0-doc package
...
We don't need a documentation package to build fwupd.
2022-09-07 08:33:02 -05:00
Mario Limonciello
c598f27eab
trivial: make sure libfdt-dev is in debian/control
2022-09-07 08:33:02 -05:00
Mario Limonciello
e3979f5da6
trivial: debian: don't populate dependencies without <control>
...
clang-format isn't needed to build fwupd, but it is needed for
contributors to pass CI.
2022-09-07 08:33:02 -05:00
Mario Limonciello
d6a455e856
trivial: try harder to make sure mtdram is set up
...
the autopkgtest environment in Ubuntu seems to not be preparing the mtdram
device properly. Sometimes the udev node "exists" but the /dev/mtd0 does not
exist.
Look for this explicitly and skip the test if it happens.
2022-09-07 08:24:10 -05:00
Mario Limonciello
aebf33c4f6
trivial: libfwupdplugin: fix an error return string
2022-09-07 08:24:10 -05:00
Mario Limonciello
cc8b4905ef
trivial: only build thunderbolt for x86 architectures
...
It's true that the USB4 spec won't require x86, but a recent autopkgtest
failure on powerpc doesn't make sense to debug. You won't ever see TBT
in a powerpc machine.
We can loosen this to any non-x86 architectures later that DO prove to
have support for USB4 add-in cards.
2022-09-07 08:05:08 -05:00
Richard Hughes
f9de0ee2f9
android-boot: Quirk data is available as soon as the instance ID has been added
2022-09-06 21:28:58 +01:00
Richard Hughes
0b8640929c
android-boot: Only add the device if updatable
...
Otherwise we get devices like:
├─EFI\x20system\x20partition:
│ Device ID: 003a0352e13dc2defe8548eb541d56067e5e5d71
│ Summary: Android Bootloader
│ Current version: 0.0.0
│ GUIDs: a4001789-0ca9-5f4c-8c53-e65f8ec8a825
│ 9d825eae-ef58-501c-944f-6a0a8d9cfb49
│ Device Flags: • Internal device
│ • System requires external power source
│ • Needs a reboot after installation
│ • Cryptographic hash verification is available
2022-09-06 21:28:58 +01:00
Richard Hughes
26e029756c
android-boot: Don't set the GError if not checking return code
2022-09-06 21:28:58 +01:00
Richard Hughes
ce014ccf65
trivial: Fix a tiny memory leak when loading BIOS settings
2022-09-06 21:23:44 +01:00
Richard Hughes
89c16bfb2a
Only parse the ARC_PARAMS section of the NVM if provided
...
The thunderbolt plugin reads in 0x80 bytes if we just want to know if a
firmware is native, and 0x224 if we just want the DIGITAL section. The reason
we do this is that reading the entire NVM is really slow.
If we can see the firmware is smaller than the ARC section, read all the
expected data and return success without adding a payload.
2022-09-06 20:45:38 +01:00
Richard Hughes
39b931938f
trivial: Allow parsing thunderbolt-nvm images from fwupdtool
2022-09-06 20:45:38 +01:00
Richard Hughes
1faac75aa5
Ensure the context is set for all backends
...
This isn't required right now, but new functionality is much easier to add if
we know the context has always been set.
2022-09-06 20:30:21 +01:00
Richard Hughes
571cff69c4
Disable the snap build until the systemd deps are fixed
2022-09-06 20:08:10 +01:00
Richard Hughes
a904a7f2d6
trivial: Fix Debian CI harder
2022-09-06 18:46:14 +01:00
Richard Hughes
b3ead97f46
trivial: Fix a -Wdeprecated-declarations issue
...
G_APPLICATION_FLAGS_NONE was deprecated, but we don't actually need the single
instance functionality, so just use a non-deprecated flag instead.
This fixes Debian CI.
2022-09-06 18:06:55 +01:00
Dylan Van Assche
d0d4b17a7f
plugins: android-boot: new plugin
...
Add a plugin for supporting Android bootloaders which are used on
all Qualcomm-based Android devices. These bootloaders are stored on
their own partitions and the partition table cannot be altered on
Qualcomm devices. This plugin supports any block device, but only
exposes the ones defined in the quirk file as updatable.
2022-09-05 17:59:11 +01:00
Richard Hughes
92db5fc87a
modem-manager: Fix a critical warning when issuing Secure Boot AT commands
...
Fixes https://github.com/fwupd/fwupd/issues/4998
2022-09-05 17:53:27 +01:00
Mario Limonciello
4f3105369a
trivial: debian: fix debian/control generator
...
In a previous move we lost the ability to populate the control file
with archicture specific information. Restore this feature.
2022-09-05 07:09:05 -05:00
Mario Limonciello
62fd53d7ae
trivial: debian: add fwupd-unsigned-dev to build deps
2022-09-05 07:09:05 -05:00
Mario Limonciello
f535bc4bd3
trivial: debian: conditionally install quirks.d
2022-09-05 07:09:05 -05:00
Mario Limonciello
20eb0ff32e
trivial: debian: Add support for Build-Profile nodoc
...
Link: https://wiki.debian.org/BuildProfileSpec
2022-09-05 07:09:05 -05:00
Richard Hughes
709af2a269
Add shared functionality to get the parsed kernel cmdline
2022-09-02 14:35:48 +01:00
Andrii Dushko
e6e17a69d7
corsair: remove support for some devices
...
Vendor has decided to remove these devices from the initial supported
device list:
* KATAR PRO WIRELESS mouse
* HARPOON RGB WIRELESS mouse
2022-09-02 14:39:19 +03:00
Mario Limonciello
8da0fc347b
trivial: fix automatically turning off introspection
2022-09-02 06:10:53 -05:00
Mario Limonciello
f9b631f704
trivial: match markdown version using meson instead
...
This drops the python packaging module requirement
2022-09-02 06:10:53 -05:00
Mario Limonciello
04573f46a3
trivial: loosen markdown dependency to 3.2
...
Link: https://gitlab.gnome.org/GNOME/gi-docgen/-/merge_requests/166
2022-09-02 06:10:53 -05:00
Mario Limonciello
22cc5d8caa
trivial: find python installation using meson find_installation
2022-09-02 06:10:53 -05:00
Mario Limonciello
f6fddc1470
trivial: show a better error why docs fails if markdown not installed
...
We require at least 3.3.3, but if they don't have anything at least show a message.
2022-09-01 10:43:34 -05:00
Andrii Dushko
330a67b5fe
corsair: add SABRE RGB PRO Gaming mouse
2022-09-01 11:41:49 +01:00
Mario Limonciello
ff06f98a38
trivial: update golang container for msi publishing
...
The deploy job failed at 1.8.4 release, move up to a current version
of golang instead to fix this.
2022-08-31 10:07:28 -05:00
Richard Hughes
949763102d
trivial: Only build CI for macos-11
...
We've never found a different in compilation between 10.15 and 11.
2022-08-31 09:32:52 -05:00
Richard Hughes
143f9a124c
Remove FreeBSD CI
...
It's not worked for several months and is just spamming my inbox with failures.
2022-08-31 15:28:47 +01:00