Commit Graph

8120 Commits

Author SHA1 Message Date
Richard Hughes
3043c1d68f ccgx: Fix building with -Dgusb=disabled 2022-10-07 08:04:06 -05:00
Haowei Lo
96e832bd02 FPC: Increase max firmware size to 400KB 2022-10-06 13:32:00 +01:00
Kai Michaelis
6054d09f35
redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
Richard Hughes
f579c03223 trivial: Only show the DS20 debug output when debugging 2022-10-06 12:44:36 +01:00
Richard Hughes
ac27638878 Only request the BOS descriptor for newer libgusb versions
This fixes a deadlock only recently debugged and fixed in GUsb.
2022-10-06 12:44:36 +01:00
Richard Hughes
71af241835 Tweak the do-not-power-off message
We don't ever want to infer that the user is required to turn off the computer.
2022-10-06 10:30:31 +01:00
Richard Hughes
423637ef80 Use LVFS::UpdateRequestId to create a translated FwupdRequest 2022-10-06 10:30:31 +01:00
Max Gautier
1446857830 Use details balise for devices in issue templates 2022-10-05 08:31:00 -05:00
Richard Hughes
3f6f35d8c6 trivial: Fix two more plugin names 2022-10-05 12:46:04 +01:00
Richard Hughes
1b6438e8ff trivial: Only set the fallback builtin plugin name when required
We only want to use the gtype-generated name if the plugin has not already used
fu_plugin_set_name() to set a custom name.
2022-10-04 08:32:18 +01:00
Richard Hughes
1c3c5d9892 Allow optionally translating request messages
Also add two more request IDs to make these specific enough to be useful.
2022-10-03 20:54:24 +01:00
Richard Hughes
bd5f13f938 Add FwupdRequestFlags for future usage 2022-10-03 18:04:15 +01:00
Richard Hughes
1f8d3b61bb linux-tainted: Fix a daemon warning if the daemon has disabled the plugin 2022-10-03 09:34:20 +01:00
Richard Hughes
b21d29d98d Ignore mei devices without a device file
Else we get a whole ton of log messages on --verbose.
2022-10-01 13:10:21 +01:00
Richard Hughes
a69341b228 trivial: Add a new env var to show MEI reads and writes 2022-10-01 13:10:21 +01:00
Richard Hughes
1f261ba283 Rename the source file and private data of modular plugins
This would allow us to convert more easily to a built-in plugin in the future
and means we match the source style used in 97% of the other plugins.

No logic changes.
2022-09-30 15:20:23 +01:00
Richard Hughes
fc3cfbad92 Do not check the build hash of modular plugins
We removed the abilty to easily build modular plugins, and so we don't need to
worry so much about random 3rd party modules being loaded.
2022-09-30 14:19:56 +01:00
Richard Hughes
52e9885c87 Use a higher compression preset for the UEFI splash images
This reduces the size of the archive by ~500Kb at the expense of taking a few
seconds more to compress.
2022-09-30 12:48:20 +01:00
Richard Hughes
e1e8b9e261 Only include the last 5 releases in the installed metainfo file
We have to include the entire history in git, and also to generate the NEWS
file, but this reduces the size of the on-disk file by 116Kb.
2022-09-30 12:48:07 +01:00
Richard Hughes
edcdd44795 trivial: Enable all the builtin plugins
Fixes https://github.com/fwupd/fwupd/pull/4836
2022-09-30 12:30:11 +01:00
Richard Hughes
842f32b209 trivial: Fix a few more plugin names 2022-09-30 12:28:20 +01:00
Richard Hughes
a484eb769f trivial: Remove unused source file 2022-09-30 12:07:41 +01:00
Ivan Mikhanchuk
b170bc348e modem-manager: check driver name instead of bus type
Firmware update mechanism depends on the bus and driver type.
Since USB devices can be sitting on the PCI bus, use driver names
comparison instead of physical ids.
2022-09-30 12:04:40 +01:00
Richard Hughes
f05589263a trivial: Remove unused build file from fwupdmgr 2022-09-30 12:04:25 +01:00
Richard Hughes
e8de491030 trivial: Do not require fu-hash.h for builtin plugins 2022-09-30 10:36:12 +01:00
Mario Limonciello
56adf2473b trivial: debian: fix building fwupd-tests package 2022-09-29 15:59:33 -05:00
Mario Limonciello
23747cccbc trivial: fix dfu-tool linking 2022-09-29 11:04:38 -05:00
Mario Limonciello
999d2368bb trivial: disable greetings workflow
It is crashing for some reason, and we don't really need it.
2022-09-29 10:59:00 -05:00
Richard Hughes
cdbc6b5266 Fix installing the dbx update when not using fwupdtool --force
Fixes https://github.com/fwupd/fwupd/issues/5089
2022-09-29 15:32:30 +01:00
Richard Hughes
ae70c210c5 trivial: Make the build simpler by not using libfwupdbuiltin
Just compile the plugin libs into libfwupdengine.
2022-09-29 15:32:05 +01:00
dependabot[bot]
19c6b7b036 build(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-29 13:20:07 +01:00
Richard Hughes
35bd34fffd Build FuEngine functionality into libfwupdengine
This speeds up the build, and further reduces the on disk size by 340kB.
2022-09-29 13:19:49 +01:00
Richard Hughes
6af68ff17e trivial: Load the builtin plugins when parsing firmware using fwupdtool 2022-09-29 12:48:28 +01:00
Richard Hughes
1bd8b5d211 trivial: Speed up the build by about 9%
Only build libfwupdplugin source files once; we were only using one
non-exported symbol and so move that to the exported map so we can just link
the library in the self tests.
2022-09-29 12:42:50 +01:00
Richard Hughes
75e3c4e8ac trivial: Use the existing plugin objects in dbxtool 2022-09-29 12:32:53 +01:00
Richard Hughes
9648eac936 trivial: Use the existing plugin objects in fwupdtpmevlog 2022-09-29 12:32:53 +01:00
Richard Hughes
b85f36ceb3 trivial: Use the existing plugin objects in fwupdate 2022-09-29 12:32:53 +01:00
Richard Hughes
a8e56396d5 Prevent a partial fuzzing DoS when loading corrupt SREC files
The SREC parser attempts to fill 1Mb of data when parsing corrupt data sections
-- which in the static fuzz targets takes a long time. Correctly check that the
data exists to mitigate.

Fixes https://oss-fuzz.com/testcase-detail/6102934106013696
2022-09-29 12:32:35 +01:00
Richard Hughes
66bf03e8eb trivial: Run the fuzzers for less time during PRs 2022-09-29 12:32:35 +01:00
Haowei Lo
653b1b67e5 dfu: Ignore FPC fingerprint readers 2022-09-28 21:46:22 +01:00
Richard Hughes
c8e0f2c475 dfu: Use more standard string parsing for DfuForceVersion 2022-09-28 21:46:22 +01:00
Richard Hughes
09b37cecb0 dfu: Allow disabling a DFU device by setting the version to 0
This would be used where the device matches the `USB\CLASS_FE&SUBCLASS_01`
instance ID, but wants to be handled in another plugin.
2022-09-28 21:46:22 +01:00
Mario Limonciello
d5585728a2 trivial: don't refer to plugindir in the build system anymore 2022-09-28 15:12:10 -05:00
Mario Limonciello
5c069f81e8 trivial: remove stray fwupd.conf 2022-09-28 15:12:10 -05:00
Mario Limonciello
6165e3b34b trivial: fedora: don't refer to fwupdplugin_version anymore 2022-09-28 20:50:59 +01:00
Richard Hughes
99002a7a18 Build many more plugins as builtin
This reduces the plugin directory size by 2.2Mb
2022-09-28 17:01:23 +01:00
Richard Hughes
439c364f46 trivial: Fold FuPluginVfuncs into FuPluginClass
This adds 7 pointer-size blocks of wasted space for each modular plugin, and
three pointers for builtin plugins, but allows us to use the exact same vfuncs
when building plugins in either mode.

This will allow us to convert nearly all the plugins to being builtin.
2022-09-28 14:42:04 +01:00
Richard Hughes
f8400ffaae trivial: Rename the FuPluginClass signals callbacks
The aim is to fold FuPluginVfuncs into this, and the names clash.
2022-09-28 14:42:04 +01:00
Richard Hughes
2a5f7766a4 trivial: Remove the deprecated fu_plugin_set_secure_config_value() 2022-09-28 14:42:04 +01:00
Richard Hughes
3dbf5fa8a4 trivial: Remove the deprecated fu_volume_new_esp_default() 2022-09-28 14:42:04 +01:00