Richard Hughes
1b090802f3
usb: Disable the fallback USB plugin
...
It's not super useful. If this has no bad effects for a couple of releases we
can either remove it completely or move the functionality to the test plugin.
2017-09-05 18:08:29 +01:00
Richard Hughes
ff597b1db4
trivial: Ignore the .pot file in the po directory
...
Also, reindent to 4 spaces.
2017-09-05 09:10:06 +01:00
Mario Limonciello
268d180e3b
Test for missing language translations at build time
...
This will help fix prevent issues such as
https://github.com/hughsie/fwupd/pull/216
happening at release time
2017-09-04 21:20:14 -05:00
Richard Hughes
19ff7b9571
trivial: Add fu_device_to_string()
...
This allows us to easily print the FwupdDevice, the FwupdRelease and the
daemon-specific metadata. This can only be called from the daemon or plugins.
2017-09-04 13:27:48 +01:00
Richard Hughes
adc9dadcf2
trivial: Fix the included headers for fu-common.h
...
The GCancellable object is in gio-2.0.
2017-09-04 13:19:27 +01:00
Richard Hughes
7133ca3924
trivial: Fix a tiny memory leak in DfuPatch
2017-09-01 19:42:40 +01:00
Richard Hughes
499429a4e9
Fix the libdfu self test failure on s390 and ppc64
...
We have to be careful converting the little endian keys and values to and from
a 'bare' uint8 buffer.
2017-09-01 19:36:19 +01:00
Piotr Drąg
396c788c5b
trivial: Update LINGUAS
...
Add Asturian, Finnish, and Chinese (Traditional).
2017-09-01 17:34:24 +01:00
Richard Hughes
57bddd2cd4
trivial: post release version bump
2017-09-01 15:29:13 +01:00
Richard Hughes
de3507d9c0
Release fwupd 0.9.7
2017-09-01 14:59:09 +01:00
Richard Hughes
45838f3606
trivial: Sync translations from Transifex
2017-09-01 14:54:44 +01:00
Richard Hughes
7081975a1a
trivial: Sync example spec file with downstream
2017-09-01 14:54:23 +01:00
Richard Hughes
4f0c828ca6
Fix build with newer versions of libgudev
...
Newer versions include the g_autoptr() macros in the installed headers.
2017-09-01 14:53:14 +01:00
Mario Limonciello
bb9d3b14dd
Revert "dell: prefer to detect supported systems from OEM strings"
...
This reverts commit 257c14ebd1
.
Although this is the preferable way to detect Dell systems this was
leading to executing SMI on some systems with problems.
libsmbios has some memory issues that need to be fixed first.
2017-08-31 16:48:45 -05:00
Richard Hughes
ad1d9b1769
trivial: Fix a tiny leak in FwupdRemote
2017-08-31 20:07:06 +01:00
Richard Hughes
f315719851
trivial: Fix up a literal format string in fwupdmgr
2017-08-31 20:00:01 +01:00
Yehezkel Bernat
ced27e8cbc
thunderbolt: add description to all FwLocation objects
...
Completing what discussed in https://github.com/hughsie/fwupd/pull/214
Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2017-08-31 13:11:52 -05:00
Mario Limonciello
a65ce8392b
trivial: use fu_device_has_flag instead of fwupd_device_has_flag
2017-08-31 13:11:27 -05:00
Mario Limonciello
d63e7317db
trivial: dell: turn device back on for thunderbolt plugin, not tbtfwu plugin
2017-08-31 13:00:32 -05:00
Mario Limonciello
c2ed0cb2bc
trivial: update remaining use of ALLOW_ONLINE to UPDATABLE
2017-08-31 12:59:26 -05:00
Richard Hughes
d55d4f6de1
thunderbolt: All C source files need to include config.h
2017-08-31 14:40:25 +01:00
Christian Kellner
2be0c71b2c
thunderbolt: validation: don't print empty strings
...
Before: "Given location is outside of the given FW ((null))"
2017-08-31 13:46:24 +01:00
Christian Kellner
44879b0252
thunderbolt: test image validation
...
Add a test case to test the new image validation code.
2017-08-31 13:46:24 +01:00
Richard Hughes
b5754f30cb
thunderbolt: Fix a Coverity false-positive in the self tests
2017-08-30 15:06:06 +01:00
Richard Hughes
e655008a73
trivial: Fix starting conditions in the self tests
...
Found using Coverity.
2017-08-30 15:06:06 +01:00
Yehezkel Bernat
a23551e352
thunderbolt: refer to the wiki on image validation failure
...
Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2017-08-30 14:01:26 +01:00
Richard Hughes
0ad11b607f
libdfu: Fix an incomplete cipher when using XTEA on data not in 4 byte chunks
...
Originally found as unaligned data by Yehezkel Bernat, many thanks.
Fixes: https://github.com/hughsie/fwupd/issues/208
2017-08-30 12:46:01 +01:00
Yehezkel Bernat
e6c00362ad
thunderbolt: image validation implemented
...
Fixes: https://github.com/hughsie/fwupd/issues/189
Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2017-08-30 12:37:34 +01:00
Yehezkel Bernat
859f0f0fe8
Enable Thunderbolt plugin in CI and RPM packaging
...
Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2017-08-30 12:03:03 +01:00
Richard Hughes
b95b75a211
trivial: Remove unused function in the dell plugin
...
Fixes: https://github.com/hughsie/fwupd/issues/209
2017-08-30 10:54:29 +01:00
Richard Hughes
1f92addd10
trivial: Remove unused function in fwupdmgr
...
Fixes 2nd half of https://github.com/hughsie/fwupd/issues/209
2017-08-30 10:51:51 +01:00
Yehezkel Bernat
e43f7fb655
trivial: cleanup for many compilation warnings from clang
...
Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2017-08-30 10:43:15 +01:00
Richard Hughes
60eaca18fb
trivial: Fix a const-correctness issue discovered using clang
...
Fixes: https://github.com/hughsie/fwupd/issues/210
2017-08-30 10:37:56 +01:00
Richard Hughes
eb0b3ad71a
libfwupd: Correctly set the ID ownership when using g_object_set()
...
Fixes half of https://github.com/hughsie/fwupd/issues/210
2017-08-30 10:34:59 +01:00
Mario Limonciello
f1cc61d2f0
trivial: dell: TPM switching blacklist->whitelist
...
It's been decided that TPM mode switching won't be supported
on any other new platforms. Instead of blacklisting the outliers
whitelist the (smaller) list of platforms that do support the
feature.
2017-08-29 16:37:14 -05:00
Mario Limonciello
f30a1cbaa1
synapticsmst: use hwid to match supported systems
...
This is to help break the dependence on the Dell plugin during
initalization.
NOTE: there are corner cases that this plugin will no longer
detect Dell systems now, but these are expected to be rare.
2017-08-29 16:37:14 -05:00
Mario Limonciello
257c14ebd1
dell: prefer to detect supported systems from OEM strings
...
This requires dmidecode 3.1 or later.
SMBIOS tables are not a reliable enough method on all systems.
2017-08-29 16:37:14 -05:00
Mario Limonciello
1790115c93
trivial: dell: don't advertise ---force in an error message
2017-08-29 15:23:00 -05:00
Yehezkel Bernat
f8e5622726
trivial: fix compilation warning
...
Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2017-08-29 14:48:45 -05:00
Mario Limonciello
7291c5b3ba
trivial: fix TBT controller safe mode handling on Dell
...
- Set initial (invalid) GUID for TBT controller
- Don't set updatable unless GUID has been refreshed
- Correct the string used for GUID in Dell plugin
2017-08-28 13:24:59 -05:00
Richard Hughes
e0f28539ab
trivial: Pedantic error literal conversion
2017-08-26 18:09:21 +01:00
Richard Hughes
91628ff8b6
dell: Use fu_device_has_flag() in the self tests
2017-08-26 18:09:21 +01:00
Richard Hughes
a785a1c2f6
Remove the confusing ALLOW_OFFLINE and ALLOW_ONLINE flags
...
Over the months the original meaning of ALLOW_OFFLINE and ALLOW_ONLINE have be
lost, and there is now a confusing mixture of uses in the source tree. With this
commit we make it clear the UPDATABLE flag is used to specify when the device is
updatable (e.g. from the desktop live session, or from the systemd offline
updates mode, or both) and the NEEDS_REBOOT flag lets us know when the update
is actually going to be done.
For instance, a UEFI UpdateCapsule can be *scheduled* from either the desktop
or from the update mode (but the latter would be a bit weird), but does require
a reboot. Some devices might only be updatable outside the live session, for
instance a hard drive update or a GPU update -- there's just too much going on
with a live session and we want to tightly control what's running during the
firmware flash.
This also means we don't have to "retry" the update when scheduling an update
that really can be scheduled whenever, but just requires a reboot to apply.
2017-08-26 18:09:21 +01:00
Richard Hughes
e116e2a6a6
trivial: Add the missing device flag to string functionality
2017-08-26 09:50:18 +01:00
Christian Kellner
1283003f2f
thunderbolt: only build tests if glib >= 2.52
...
This change should restore building fwupd with the new thunderbolt
plugin on older systems.
2017-08-25 16:12:55 +02:00
Richard Hughes
e1a3bdec08
thunderbolt: Add a README file
...
Fixes: https://github.com/hughsie/fwupd/issues/185
2017-08-25 13:02:47 +01:00
Christian Kellner
e598f75a00
thunderbolt: test we handle change events properly
...
There was a bug in the plugin that would cause devices to be removed
on change uevents. This test checks for that.
2017-08-25 13:07:53 +02:00
Richard Hughes
6bc5968da2
thunderbolt: Don't remove devices on change events
...
Based on a patch by Mario Limonciello, many thanks.
2017-08-25 09:50:54 +01:00
Mario Limonciello
3bc251b3a8
thunderbolt: when in safe mode on a Dell system look up VID/DID from SMBIOS
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2017-08-25 09:46:41 +01:00
Mario Limonciello
35a0e864b8
Introduce concept of CanForcePower to turn on TBT controllers
...
Supported Dell devices will use this to turn on ThunderBolt controllers
during coldplug.
2017-08-25 09:35:46 +01:00