Commit Graph

4635 Commits

Author SHA1 Message Date
Richard Hughes
0e3dccd34b trivial: Fix the example spec file 2015-08-20 08:09:00 +01:00
Richard Hughes
b990ceefee Use the new secure metadata URI
We're out of beta testing stage now...
2015-08-20 08:09:00 +01:00
Richard Hughes
3b9f0b2dfe trivial: Remove the website
This needs to be in it's own repo to be useful for OpenShift.
2015-08-20 08:08:56 +01:00
Mario Limonciello
001558db63 Install fwupd and fwsignd into /usr/lib/$(triplet)/fwupd instead.
Fixes https://github.com/hughsie/fwupd/issues/29
2015-08-14 18:58:33 -05:00
Richard Hughes
2d6712b651 trivial: post release version bump 2015-08-12 09:23:53 +01:00
Richard Hughes
13e9d1266c Release fwupd 0.1.5 2015-08-12 09:21:52 +01:00
Richard Hughes
ff7e6ceb98 Generate the ColorHug test files at runtime
Also, fix the firmware.inf to have the correct ClassGuid.
2015-08-12 09:09:28 +01:00
Richard Hughes
ba14582ef4 Use the AppStream 0.9 firmware specification by default 2015-08-11 14:34:08 +01:00
Richard Hughes
76d14e1a03 trivial: Use the new libappstream-glib API where available 2015-08-10 09:29:18 +01:00
Richard Hughes
25cf6ab53e Add a Raspberry Pi firmware provider
This queries the current firmware version and also allows online or offline
updating.
2015-08-05 12:14:56 +01:00
Richard Hughes
804c075fee Make parsing the option ROM runtime optional
On devices with a lot of PCI devices this can take a couple of seconds per
device, and if this feature is not desired then disabling it saves system
resources.
2015-08-04 14:56:39 +01:00
Richard Hughes
ac8b192033 Add a simple config file to store the correct LVFS download URI 2015-08-04 14:56:39 +01:00
Richard Hughes
e00d70dabe trivial: Fix compile with AppStreamGlib git master 2015-08-04 14:44:37 +01:00
Richard Hughes
c6ff8fa574 Move the verification and metadata matching phase to the daemon
This allows us to use the functionality in gnome-software or cockpit without
loading the system AppStream store.
2015-08-03 18:00:54 +01:00
Richard Hughes
9985a24a29 Fix validation of written firmware
It turns out comparing sha1{firmware.cab} and sha1{firmware.bin} doesn't match.
Require appstream-glib 0.5.x for the new API required to fix this.
2015-08-03 13:22:34 +01:00
Richard Hughes
6064c2ef88 Add the ability to remove a vendor on the LVFS site 2015-07-31 07:55:31 +01:00
Richard Hughes
d51173d448 Allow no arguments to 'fwupdmgr verify-update' and use sane defaults
Reading firmware from devices and writing to the default path will typically
require authentication.
2015-07-30 19:56:04 +01:00
Richard Hughes
40b6b3f597 Prefer the GUID from the firmware than the device
The firmware may be more generic, and it also allows us to match the GUID then
doing 'verify' on a device with a different device PID than the firmware
actually declares.
2015-07-30 18:41:39 +01:00
Richard Hughes
a7c99b54ea Devices with option ROM are always internal 2015-07-29 15:55:48 +01:00
Richard Hughes
a245841335 trivial: Always enable fwsignd when doing 'make distcheck' 2015-07-29 15:30:57 +01:00
Richard Hughes
441785d215 trivial: Fix up some harmless lint, no code changes 2015-07-28 14:56:19 +01:00
Richard Hughes
eaa09993b0 trivial: Remove some unused code found by clang 2015-07-28 14:05:26 +01:00
Richard Hughes
1e9adee499 trivial: Add a simple style guide for firmware descriptions 2015-07-28 13:13:49 +01:00
Richard Hughes
fe8b96e74e Do not pre-convert the update description from AppStream XML
This allows the text clients like fwupdmgr to convert to UTF-8 text, and
graphical clients can use the markdown target to ensure the links are made
clickable and paragraphs are presented in the right way.
2015-07-28 13:13:41 +01:00
Richard Hughes
04ee5856d0 Sign the test binary with the correct key
Use the LVFS key rather than my own GPG key, and load that in the self tests.

Fixes https://github.com/hughsie/fwupd/issues/14
2015-07-28 09:47:03 +01:00
Richard Hughes
e223577fac trivial: Update spec file from downstream 2015-07-27 15:50:04 +01:00
Richard Hughes
23b500a3af Allow fwupd to be autostarted by systemd 2015-07-27 15:49:48 +01:00
Richard Hughes
d6e8885bf2 Merge pull request #28 from phomes/master
trivial: remove unused variables
2015-07-27 08:18:48 +01:00
Thomas Hindoe Paaboel Andersen
1058ce8155 trivial: remove unused variables 2015-07-27 00:24:01 +02:00
Richard Hughes
324b49d6a1 trivial: post release version bump 2015-07-25 14:54:03 +01:00
Richard Hughes
578a195094 Release fwupd 0.1.4 2015-07-25 14:52:14 +01:00
Richard Hughes
31477cf4e7 trivial: Fix make distcheck 2015-07-25 14:51:36 +01:00
Mario Limonciello
3ed5447c92 Reload appstream data after refreshing. 2015-07-23 19:01:15 -05:00
Mario Limonciello
a570bb5195 Fallback to offline install when calling the update argument.
The fallback support is currently only present in the regular
install argument.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-07-23 20:40:52 +01:00
Richard Hughes
69fa1d37e9 trivial: Prepend the SHA hash to the uploaded firmware file
We don't want to enforce a filename policy on vendors.
2015-07-23 10:36:49 +01:00
Richard Hughes
0950db9340 Only sign files when the entire file has been copied
For large files, EVENT_CREATED gets emitted when the first chunk hits the disk,
not when the file has finished copying. To fix, just wait for the file monitor
to hint that all the changes in the operation have happened and then process
the firmware files.
2015-07-23 09:15:28 +01:00
Richard Hughes
152670a371 Increase the size limit of firmware to 50Mb 2015-07-23 09:13:58 +01:00
Richard Hughes
e70f12af9e trivial: Allow parsing unsigned firmware 2015-07-22 17:42:41 +01:00
Richard Hughes
e97261ab3d trivial: rename 'update-metadata' to 'refresh' now we have an 'update' command 2015-07-22 10:36:00 +01:00
Richard Hughes
777917ef21 Add a 'fwupdmgr update' command to update all devices to latest versions
This downloads the latest version of the firmware and applies it to any
matching hardware. e.g.

$ fwupdmgr update
Downloading 1.2.3 for ColorHug...
Updating 1.2.3 on ColorHug...
 * Loading firmware
 * Decompressing firmware
 * Restarting device
 * Writing firmware to device
 * Verifying firmware from device
 * Restarting device
Done!
2015-07-22 10:36:00 +01:00
Richard Hughes
ade063b0df Allow installing an offline UEFI update without --offline
The way this works is we try with the user settings, and if this fails with
NotSupported and the offline flag is unset then we retry the action with a
warning and the flag manually set.

I chose to do this in the client rather than the daemon as I don't want to
encode too many magic rules when we don't know the kind of devices that will
appear in the future.

Fixes the other half of https://github.com/hughsie/fwupd/pull/23
2015-07-22 10:36:00 +01:00
Richard Hughes
63a407ab34 Change the DBus method for installing firmware to 'Install'
It seems a little odd to call it 'Update' when it's being used for downgrading
and reinstalling as well.

As we're making things simpler, just use a single 'install' action in fwupdmgr
rather than 'install', 'update-online', 'update-offline'. We can use the flags
and fallbacks to do the right thing in all cases, and make the typical case
(installing a local file to any matching hardware) simple.

Fixes half of https://github.com/hughsie/fwupd/pull/23
2015-07-22 10:36:00 +01:00
Richard Hughes
7708a0f3fd Move GetUpdates to the daemon
This only returns the latest version, if you actually need to know details
about all versions including downgrades then you still need to load the
AppStream metadata and match devices manually.
2015-07-22 10:35:05 +01:00
Richard Hughes
0daed7c259 Do not use the file hash when storing the LVFS submitted firmwares
This means we can't easily map between the MetaInfo entry and the file itself.
2015-07-22 10:03:36 +01:00
Richard Hughes
ecbc06ff3d trivial: Add fwsignd systemd service file which was not added 2015-07-22 10:03:36 +01:00
Richard Hughes
2b60a33c8f Do not merge existing LVFS metadata
If we change the filenames or hash values we don't want duplicate locations.
2015-07-21 17:19:54 +01:00
Richard Hughes
0b8d461099 trivial: Use the correct error codes when failing to download metadata 2015-07-21 13:27:10 +01:00
Richard Hughes
ebaf7ba035 Allow running fwsignd as the non-root user
...however, most users will still want to use the root user so that the owner
and group are set correctly on the destination files.
2015-07-21 13:24:26 +01:00
Richard Hughes
0bdd5cbcb8 Use the actual LVFS GPG key 2015-07-21 13:24:26 +01:00
Richard Hughes
b48e385922 Associate the contact email address directly with the vendor key
Also add a page to add and deactivate vendors.

Fixes: https://github.com/hughsie/fwupd/issues/25
2015-07-20 21:48:55 +01:00