Commit Graph

1274 Commits

Author SHA1 Message Date
Richard Hughes
d0d2ae66e0 trivial: Add fu_common_get_contents_bytes() for future use 2017-08-09 09:37:48 +01:00
Mario Limonciello
465f223710 ci: switch to debian unstable
appstream-glib was uploaded to unstable so now CI can run on that.
https://tracker.debian.org/news/860552
2017-08-04 09:53:53 -05:00
Richard Hughes
7664fa7251 trivial: Target Fedora 26 for CI 2017-08-03 11:52:35 +01:00
Richard Hughes
8e07099265 trivial: post release version bump 2017-08-03 10:46:22 +01:00
Richard Hughes
53403360ed Release fwupd 0.9.6 2017-08-03 10:44:39 +01:00
Chris Lee
f519834bb9 Make flashing ebitdo devices actually work
When my SNES30 controller was in bootloader mode, it wouldn't update,
and when it was in controller mode, it tried and failed. Now, it prints
out the instructions on how to reset the device if it's in controller
mode, and if it's in bootloader mode, it successfully installs the
firmware update from the .DAT file.
2017-08-02 06:43:09 +01:00
Richard Hughes
cef8042edc libdfu: Add DfuPatch
This allows us to binary patch firmware images.

The diff generation is implemented with a forwards-only algorithm; this allows
a vendor to remove non-free code without shipping a "reversed" version of the
non-redistributable code.
2017-07-31 11:58:21 +01:00
Richard Hughes
3c3f608781 trivial: Use warning_level in the top level meson file 2017-07-31 11:58:18 +01:00
Richard Hughes
260e970297 Rename the thunderbolt plugin to tbtfwu 2017-07-30 17:39:25 +01:00
Richard Hughes
2d95a71a0c Support embedded devices with local firmware metadata
In this mode, both the metadata and firmware is stored on the local filesystem
and distributed using a distribution system like OSTree.

Fixes https://github.com/hughsie/fwupd/issues/162
2017-07-28 17:41:24 +01:00
Richard Hughes
ba51279752 trivial: Fix two tiny leaks in fwupdmgr 2017-07-27 16:32:43 +01:00
Patrick Ohly
eb03b0f33d meson: introspection optional
Calling g-ir-scanner when cross-compiling with bitbake/OpenEmbedded
fails because it calls the wrong ld (the one from the host). More work
will be needed in meson.bbclass and/or gobject-introspection.bbclass
to make it work.

In the meantime, having an option to turn of introspection is useful
perhaps also in other cases where the extra work is not needed. For
example, fwupd works fine also when it is off.

The name of the new meson option matches the --disable-introspection
that is used by some autotools-based projects.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2017-07-26 13:29:21 +01:00
Mario Limonciello
9ac53e28b1 Add information about compile-time dependency versions
Since the codebase looks at these versions for turning on and off
functionality it will be useful to use this for debugging
2017-07-24 15:30:28 -05:00
Richard Hughes
70d13a5a58 unifying: Make sure the percentage completion goes from 0% to 100%
Pre-filter the pending LuDeviceBootloaderRequest's after they are parsed so
that we know exactly how many packets need to be sent to the hardware.

As shown in https://github.com/hughsie/fwupd/issues/155, people get worried
if the progress bar finishes before 100% as they'll wonder if all the writing
completed successfully.
2017-07-24 12:02:14 +01:00
Richard Hughes
b31791a11f trivial: Allow setting the unifying bootloader address for self tests 2017-07-24 11:54:31 +01:00
Richard Hughes
da928d1da7 unifying: Fix trivial error handler warning 2017-07-24 11:46:54 +01:00
Richard Hughes
1ad45caeec Use new GUsb functionality to fix flashing Unifying devices
This avoids open()ing and close()ing multiple times on hotplug -- which in
itself isn't a huge problem as the requests are refcounted in libusb, but it
matters hugely when a plugin accidentally closes a device that was not opened.

As all the devices are going to be opened anyway (to read the vendor strings)
and the cost of keeping the device is open is tiny, just get libgusb to
auto-open *all* devices and keep them open for the duration.

Fixes: https://github.com/hughsie/fwupd/issues/155
2017-07-24 11:08:25 +01:00
Richard Hughes
f592b06722 dell: Fix the last of the memory leaks in the self tests
Fixes: https://github.com/hughsie/fwupd/issues/158
2017-07-24 10:55:03 +01:00
Richard Hughes
4bfcae2921 trivial: Fix a tiny leak in the Dell plugin 2017-07-24 10:51:29 +01:00
Richard Hughes
535664cd1e Run the plugin coldplug methods in a predictable order
When reading with g_dir_read_name() the returned files do not have to be sorted
in any particular order and could even change between invokation. This patch
makes debugging the interactions between plugins much easier.
2017-07-24 10:32:06 +01:00
Mario Limonciello
5f6a574fd7 fix some more memory leaks in dell plugin (#158) 2017-07-21 13:17:47 -05:00
Mario Limonciello
24add2222b trivial: debian: correct duplicate descriptions in control file 2017-07-21 13:16:15 -05:00
Richard Hughes
ca52a8541e trivial: Fix self tests after downgrading warnings commit 2017-07-21 15:42:32 +01:00
Richard Hughes
3cca1c65c2 trivial: Remove or downgrade some superfluous warnings
Fixes bugs like https://github.com/hughsie/fwupd/issues/159
2017-07-21 13:38:27 +01:00
Richard Hughes
c3c50fba4c libdfu: Fix a crash if elf32_newehdr() fails 2017-07-21 13:07:00 +01:00
Richard Hughes
061ad8c5e8 trivial: Make fu_dell_detect_dock() slightly more NULL-deref safe 2017-07-19 09:14:56 +01:00
Mario Limonciello
11ca8122c3 Revert "trivial: fix some more memory leaks in dell plugin (#158)"
This reverts commit 49aba8cd87.

That was prematurely committed, my apologies.
2017-07-18 16:00:03 -05:00
Mario Limonciello
32899e5ff7 dell: use plugin hash table instead 2017-07-18 15:53:38 -05:00
Mario Limonciello
49aba8cd87 trivial: fix some more memory leaks in dell plugin (#158) 2017-07-18 15:53:38 -05:00
Mario Limonciello
d817c53697 Correct a memory leak in Dell plugin (Fixes #158) 2017-07-18 10:35:21 -05:00
Richard Hughes
3745e8e481 trivial: Fix spelling of delimiter 2017-07-18 10:20:59 +01:00
Mario Limonciello
ef2079b20a trivial: clarify delimitter in use for fwupd.conf is a semicolon 2017-07-17 14:50:17 -05:00
Mario Limonciello
f6005940e6 debian: enable test suite via /etc/fwupd.conf 2017-07-17 14:46:50 -05:00
Mario Limonciello
47c2e9b6a8 rpm: enable test suite via /etc/fwupd.conf 2017-07-17 14:46:32 -05:00
Mario Limonciello
5033d9c92e Add capability to enable test suite via /etc/fwupd.conf 2017-07-17 14:45:51 -05:00
Mario Limonciello
a8a3c6f6b6 debian: run lintian as part of CI
If any new changes are introduced that break plicy, this should
catch them much sooner.
2017-07-17 14:35:20 -05:00
Mario Limonciello
c29b398ad0 trivial: fix various spelling errors 2017-07-17 13:07:05 -05:00
Mario Limonciello
531a223b80 trivial: debian: recusively cleanup on purge 2017-07-17 12:34:08 -05:00
Mario Limonciello
ed8e4a54cf trivial: debian: remove transient items on purge (Closes: #868464, #868465) 2017-07-17 12:15:28 -05:00
Mario Limonciello
531f6a210a trivial: debian: update standards version 2017-07-17 12:15:28 -05:00
Mario Limonciello
b036d0c4ad trivial: debian: add missing dh-strip-nondeterminism dependency 2017-07-17 12:15:28 -05:00
Mario Limonciello
5ad8555f46 trivial: debian: correct some linitian errors about fwupd-tests 2017-07-17 12:15:28 -05:00
Mario Limonciello
92be642cb4 trivial: debian: move DFU introspection to it's own package 2017-07-17 12:15:22 -05:00
Mario Limonciello
e9bcab0f8f Default to "en" for UEFI capsule graphics
"C" is not a supported locale code per ISO 639-2
see https://lintian.debian.org/tags/unknown-locale-code.html
for more information
2017-07-17 11:56:40 -05:00
Richard Hughes
4851158249 trivial: Fix a -Wsign-compare warning on 32 bit 2017-07-17 16:39:35 +01:00
Richard Hughes
e8b5db66f4 Fix a hang on 32 bit computers
It turns out using a string hash for a pointer object doesn't always work...
2017-07-17 14:18:29 +01:00
Mario Limonciello
5735fd67c1 trivial: set engine back to idle
A regression from 9945edbe74 causes
a missing newline for many actions because it doesn't go back to idle
2017-07-13 16:22:19 -05:00
Mario Limonciello
790701f32b trivial: adjust get-details and get-devices output Display Name output
This returns them back to the more readable 0.8.x behavior where
devices have the name first and then all the details indented.
2017-07-13 16:22:19 -05:00
Richard Hughes
32684f2344 Check all the device GUIDs against the blacklist when added
To the user it's not obvious which is the default GUID.

See https://github.com/hughsie/fwupd/issues/127
2017-07-13 09:32:26 +01:00
Mario Limonciello
8e1297f46d trivial: move compilation instructions to github wiki
New problems will be introduced with software outside of fwupd.
It's better to document compilation difficulties to be expected
in the wiki.
2017-07-10 16:49:53 -05:00