Commit Graph

2033 Commits

Author SHA1 Message Date
Richard Hughes
afd05b88bd trivial: Load the custom ESP mountpoint from _setup() 2018-03-09 13:44:45 +00:00
Richard Hughes
89e968b79b trivial: Add a common function to get a recursive file list 2018-03-09 13:44:45 +00:00
Yehezkel Bernat
1ccd5d0bbd thunderbolt: correct handling of unknown devices
For unknown device only vendor and model IDs should be checked

Signed-off-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
2018-03-09 13:08:56 +00:00
Andrei Emeltchenko
2872867110 firmware-packager: Allow to create package out of provided binary
In a case we have firmware binary instead of exe archive allow to
create package.
2018-03-09 18:53:45 +08:00
Andrei Emeltchenko
1e1789c7e6 plugins: thunderbolt: Add support for newest chips
Add support for the latest TR Thunderbolt controllers.
2018-03-09 18:53:45 +08:00
Robert Ancell
911e40f1aa Fix Vala bindings:
- Name the bindings the same as the pkgconfig file
 - Update the GIR bindings to include the appropriate header file which updates
   the Vala bindings
2018-03-07 09:21:31 +00:00
Richard Hughes
e7b902eb7b Correctly detect new remotes that are manually copied
Create an inotify watch on the parent remotes.d directory to be notified of new
files being created. This allows us to load the new remote without restarting
the daemon.

Fixes https://github.com/hughsie/fwupd/issues/428
2018-03-05 16:53:01 +00:00
Richard Hughes
00a5f2cb30 trivial: Code style fixup 2018-03-02 14:52:42 +00:00
Richard Hughes
ab4c2d13a6 Remove support for RaspberryPi
This was never used, and the foundation want to stick to the existing 'just
download a new file' distribution method.
2018-03-01 18:45:47 +00:00
Mario Limonciello
5dbdd0b243 Allow exiting device prompt with a "0" device too
This makes it more obvious for people that don't know about ctrl-d
2018-03-01 10:28:48 -06:00
Mario Limonciello
80d1a294d1 Allow ctrl-d out of the prompt for devices
Currently this will segfault fwupdmgr

Choose a device:
1.	8a21cacfb0a8d2b30c5ee9290eb71db021619f8b (XPS 13 9370 System Firmware)
2.	cb52b4cd86255a70d1d9e6b09c6bf00b9f876b61 (XPS 9370 Thunderbolt Controller)
<ctrl-d>

Thread 1 "fwupdmgr" received signal SIGSEGV, Segmentation fault.
fu_util_prompt_for_device (priv=<optimized out>, error=<optimized out>) at ../src/fu-util.c:315
315		return g_object_ref (dev);
2018-03-01 09:27:29 -06:00
Mario Limonciello
2d8f2455c9 trivial: amt: Adjust to use [] instead of () in device name
This makes it more friendly to bash completion
2018-03-01 09:27:29 -06:00
Mario Limonciello
c8d15f924c Show device description when bash completing an argument 2018-03-01 09:27:29 -06:00
Mario Limonciello
9e965ada49 Allow all functions that take device arguments to be prompted
As part of this ignore extra string arguments other than the device
ID for these methods.

This has two benefits:
1) No more copying and pasting device ID's for any of these methods
2) Bash completion can now show nicer output for these methods
2018-03-01 09:27:29 -06:00
Mario Limonciello
a667bfb76e Fix a crash related to when passing device to downgrade in command line
(fwupdmgr:15071): Fwupd-CRITICAL **: 09:08:55.248: fwupd_client_get_device_by_id: assertion 'device_id != NULL' failed

Thread 1 "fwupdmgr" received signal SIGSEGV, Segmentation fault.
0x000055555555c5b1 in main (argc=<optimized out>, argv=<optimized out>) at ../src/fu-util.c:2401
2401				g_print ("%s\n", error->message);
2018-03-01 09:27:29 -06:00
Mario Limonciello
ce5ed9ce58 Add bash completion for fwupdmgr 2018-02-28 06:40:59 -06:00
Richard Hughes
8e883407c0 Fix running the self tests when no fwupd is installed
Fixes https://github.com/hughsie/fwupd/issues/409
2018-02-27 14:30:28 -06:00
Mario Limonciello
963dc4245c
uefi: Allow overriding ESP mount point via conf file (Fixes: #421) (#422)
* uefi: Allow overriding ESP mount point via conf file (Fixes: #421)
2018-02-27 14:26:58 -06:00
Ogier Bouvier
620d973fc2 unifying: fix signature writing and parsing for texas bootloader
Signed-off-by: Ogier Bouvier <obouvier@logitech.com>
2018-02-26 11:25:51 +00:00
Robert Ancell
5c535a53ce Generate Vala bindings 2018-02-26 06:04:27 +00:00
Richard Hughes
60a9bded16 trivial: Fix up three typos in error messages 2018-02-23 15:57:30 +00:00
Richard Hughes
34e48634af trivial: Fix a critical warning when checking component requirements 2018-02-23 15:26:15 +00:00
Richard Hughes
efc5abe74e unifying: Fix a tiny memory leak on daemon unload 2018-02-23 13:08:58 +00:00
Richard Hughes
3f0b3f8f24 Only send success and failure reports to the server
We were getting some composite reports with 'needs-reboot' which isn't useful.
2018-02-23 12:55:51 +00:00
Richard Hughes
4ee0836ff3 Use a CNAME to redirect to the correct CDN for metadata
The current CDN (~$100/month) is kindly sponsored by Amazon, but that won't
last forever. In the future we can switch to a 'dumb' provider like BunnyCDN
for 1/10th of the cost.

Use a CNAME we control to make switching CDN providers easy in the future.
2018-02-22 06:21:17 +00:00
Mario Limonciello
a0f9f619ca contrib: Don't declare OS variable in docker run command (Fixes: #413)
Since the containers are ephemeral just declare directly in the Dockerfile
This also simplifies the run command for users building fwupd
2018-02-21 13:30:12 -06:00
Mario Limonciello
d838ae045f trivial: Re-enable the Debian builds 2018-02-21 13:30:12 -06:00
Mario Limonciello
d0b4898912 Rename ubuntu-clang to ubuntu-x86_64
Although it's built with clang, it's the x86_64 variant.
2018-02-21 13:30:12 -06:00
Mario Limonciello
2de274fada contrib/ci: Detect machine type when generating debian/control 2018-02-21 13:30:12 -06:00
Mario Limonciello
02c469052f uefi: Report if UX capsule was supported in the report metadata 2018-02-19 15:06:29 -06:00
Richard Hughes
7b19f7db5b Use a longer timeout when powering back the Thunderbolt device
It seems 2s is not long enough on some hardware. We also get a much better
error message if the device fails to come back online.
2018-02-19 19:02:36 +00:00
Mario Limonciello
5d4d7272cd trivial: travis: re-enable ubuntu CI builds
The efivar transition finished there.
2018-02-19 11:36:19 -06:00
Richard Hughes
fbf17e9c85 Allow devices to use the runtime version when in bootloader mode
Some devices like the Nitrokey use a generic DFU bootloader that reports a
version number unrelated to the version number of the runtime. Add a flag so
that we can set the correct version when switching plugins during detach and
attach.
2018-02-16 18:23:07 +00:00
Richard Hughes
3c94eb0909 trivial: Don't remove all flags when the device is removed
We only really want to say 'the device is no longer updatable' and other flags
on the device (for instance, if it was locked) might still be useful.
2018-02-16 18:23:07 +00:00
Mario Limonciello
6a029ba2f6 trivial: 386 will fail too, only do s390x 2018-02-14 16:15:55 -06:00
Mario Limonciello
7af8d4cb70 trivial: disable deb builds for now
there is a transition going on with efivar and they won't yield
useful data until it's done
2018-02-14 16:12:26 -06:00
Mario Limonciello
7f458e67dd Update VCS URL for debian packaging 2018-02-14 16:01:10 -06:00
Mario Limonciello
1d2a243978 contrib/ci: explicitly require at least fwupdate 10-3 to build
efivar 34-1 is needed to fix the ux_capsule_guid symbol
2018-02-14 16:00:10 -06:00
Richard Hughes
3698deb351 trivial: post release version bump 2018-02-14 20:04:30 +00:00
Richard Hughes
1ef028121e Release fwupd 1.0.5 2018-02-14 19:58:36 +00:00
Richard Hughes
849914e642 trivial: Don't keep asking the user if they want to report firmware
Don't optimize the device flag away. We need to be able to set the flag on all
devices that match the device ID, not just the one that happens to match now.
2018-02-14 19:57:27 +00:00
Mario Limonciello
ef5305ddeb contrib/ci: Place all build results in dist/ 2018-02-14 09:12:55 -06:00
Richard Hughes
321f77a07f Use the default value if ArchiveSizeMax is unspecified in daemon.conf
Fixes: https://github.com/hughsie/fwupd/issues/405
2018-02-14 12:55:45 +00:00
Richard Hughes
919f8ab910 trivial: Do no assert if we try to read from a fd with zero maximum size 2018-02-14 12:55:45 +00:00
Richard Hughes
271f68b740 trivial: Fix critical warning when reporting history against a broken server 2018-02-14 12:45:40 +00:00
Mario Limonciello
bd60825749 libfwupd: Allow skipping machine ID self test (Fixes #403)
Some sandbox environments won't allow creating this file, so skip
this test.

We're still running it on all Travis CI test cases though.
2018-02-14 07:00:36 +00:00
Richard Hughes
29a9e4f105 trivial: Show the 'known issue' URI by searching the message
If the report replaces an existing report we'll get two messages.
2018-02-13 20:36:58 +00:00
Mario Limonciello
238d14669f ci: Drop unneeded perl-sgmls dependency 2018-02-13 14:13:49 -06:00
Bruno Pagani
2c96c630eb ci: Remove an unneeded dep for building on Arch
perl-sgml is not required anymore since docbook has been removed.
2018-02-13 14:13:49 -06:00
Mario Limonciello
911925642f contrib: re-enable test suite on arch (Fixes #370)
Arch has a new umockdev now with the fixes
2018-02-13 14:13:49 -06:00