Commit Graph

9570 Commits

Author SHA1 Message Date
Richard Hughes
b4eaec3654 libdfu: Allow choosing a different alt-setting when downloading 2015-11-15 19:12:13 +00:00
Richard Hughes
3a40e94567 libdfu: Add a merge command to dfu-tool 2015-11-15 19:00:03 +00:00
Richard Hughes
31aa1dd3df libdfu: Allow setting the alternate settings in DfuSe firmware 2015-11-15 16:52:46 +00:00
Richard Hughes
8bbe21a6f8 libdfu: Fix crash when setting a target size 2015-11-15 13:01:14 +00:00
Richard Hughes
7d79e580bb Use the same device identification string format as Microsoft
Using our own special version for the input for the GUID calculations means
that the result is not 'googlable'.

This does have the result of changing the GUIDs stored in the 'verify' database
but given the string->GUID function in appstream-glib has also changed to
become standards compliant and that only a few people are using it I felt it
was worth the pain.
2015-11-15 11:02:33 +00:00
Richard Hughes
cfd399498d libdfu: Use a custom error domain 2015-11-14 17:34:08 +00:00
Richard Hughes
460bc2012e libdfu: Move the VID:PID checks from the tool to DfuDevice 2015-11-14 17:12:29 +00:00
Richard Hughes
eeea7f8b32 libdfu: Don't rely on specific hardware to be present 2015-11-14 16:51:53 +00:00
Richard Hughes
6d79834c55 libdfu: Generate gtk-doc documentation 2015-11-14 16:51:53 +00:00
Richard Hughes
62633af0db libdfu: Add support for DfuSe firmware
Also, move some shared stuff down from DfuTarget to DfuDevice.
2015-11-14 16:34:09 +00:00
Richard Hughes
a40cad92d6 trivial: Fix a small critical warning for broken USB devices 2015-11-12 17:33:12 +00:00
Richard Hughes
a3acd7f711 Add support for updating USB devices with DFU
This adds a private libdfu library and also a small utility program called
dfu-tool.
2015-11-12 17:32:48 +00:00
Richard Hughes
e49b266fd5 trivial: Fix a small critical warning for broken USB devices 2015-11-12 17:32:48 +00:00
Richard Hughes
a48361f82f Use strerror() when printing errors from libfwupdate
Fixes https://github.com/hughsie/fwupd/issues/37
2015-11-12 17:29:30 +00:00
Mario Limonciello
316cfe2236 trivial: include e43cfdcb in fwupdate compilation patch 2015-11-12 10:15:49 -06:00
Mario Limonciello
e43cfdcb3d trivial: return for UEFI errors is a decimal not string.
This is for part of issue #38.
2015-11-12 10:06:39 -06:00
Mario Limonciello
5b7ffab616 Backport 6fade1 to support compiling against fwupdate git 2015-11-10 18:18:19 -06:00
Mario Limonciello
6fade1ffea Fix compile error against fwupdate git due to dropped functions.
Closes #37
2015-11-10 18:13:48 -06:00
Mario Limonciello
b5e8f10a7b Fix FTBFS on armhf by passing -D_FILE_OFFSET_BITS=64 as well. 2015-11-09 08:32:51 -06:00
Mario Limonciello
e02c9d11ac release to unstable 2015-11-07 11:33:58 -06:00
Mario Limonciello
2fa2c80761 Fix hardening flags. 2015-11-07 11:31:02 -06:00
Mario Limonciello
6e0ad7ae03 Add build dependency on udev. (Closes: #804279) 2015-11-07 09:26:26 -06:00
Mario Limonciello
0ca692255b release to unstable 2015-11-05 23:23:51 -06:00
Mario Limonciello
d0f76a0e8f clean up changelog 2015-11-05 23:23:16 -06:00
Mario Limonciello
6f98d50877 bump changelog 2015-11-05 10:26:35 -06:00
Mario Limonciello
c09bd00f63 Release fwupd 0.5.3
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJWOzWaAAoJEBesuo36lw4XLskIAJyjjnlDpvbjUNv8cd2Ozn9q
 4/hVJcUIl0KOY3fSSCWDtakPLrfyxPN+I52T4CLM5SBw+2WGXpVBY8LUuaA87ZDG
 FjDTGjUi/M8poJH9m/8npfjkjOiUNC6q7wnv1IJqZxWVsA/HPh4jJHDqkAqqlUpo
 FhHS1aq9+wDy+26eC9Lufq+J+3s1SG9jGWN7OMKdm4abwbQhmP6NRPTKlYpXQv2U
 ffwuBhcbnpTKlZ1ElzSV+OpWEGFlyMrGwxI4vDahbmjQ1bz4gf3AfscufznojG3X
 zJ0ztdbgTtGkqhL+xGUvB+Jd68EzcBRKATaQZ7kS1COvv85u1pYMoPbO9xkT0fk=
 =ldKW
 -----END PGP SIGNATURE-----

Merge tag '0.5.3' into debian

Release fwupd 0.5.3
2015-11-05 10:25:55 -06:00
Richard Hughes
28afc0baf5 trivial: post release version bump 2015-11-05 10:56:19 +00:00
Richard Hughes
e7dccfd5e9 Release fwupd 0.5.3 2015-11-05 10:55:22 +00:00
Richard Hughes
b2fe639940 Use the correct user agent string for fwupdmgr 2015-11-05 08:48:48 +00:00
Richard Hughes
0f89bcd47d trivial: Update the run-fwupd.sh script to include all debugging 2015-10-30 08:49:03 +00:00
Richard Hughes
bb840ceaff Do not assume that the compressed XML data will be NUL terminated
In most cases this is out of chance, but in some random cases the gzip
decompressor decides to reuse the input buffer as a decompression buffer,
which means we get junk data after the decompressed text.

To solve this, just truncate the data at the reported size, and then feed this
into the XML parser.

Fixes: https://github.com/hughsie/fwupd/issues/36
2015-10-30 08:47:28 +00:00
Richard Hughes
f2fca01989 Avoid seeking when reading the file magic during refresh 2015-10-30 08:44:44 +00:00
Mario Limonciello
7b452068b2 increment changelog 2015-10-28 10:49:56 -05:00
Mario Limonciello
77d1e2163f drop all patches, upstream 2015-10-28 10:48:21 -05:00
Mario Limonciello
6252411adc update build dependency requirements 2015-10-28 10:48:03 -05:00
Mario Limonciello
5c3e2c3c52 Release fwupd 0.5.2
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJWMJxqAAoJEBesuo36lw4XWjAIALrvCm1n3EjRyEzQnv7qowPQ
 MuTDodjppMq4ZyAFB3/wFQ787LL5PYpTBVeMrnIoxQZ9zLpQexhnXdCuxXWGwMgU
 MBzzJa1KsdCejkEYUkq8Gweo4aZj39vuq8rn/phpgotLBKf7LsSdlqtUhShG5b3A
 4bSE30630lCb+xImP51IevUVSW1MXYt/myAmHPRtcQNxn34we40vUl18qGojYZJo
 /h3wC0mcZ+bjqPkBznVBV8B114kTTUsqsb2D2tMIY0Nc1v+ZOKEjwpPPJF3uhMAm
 TCCtGoFXUBB711xGOD2j6SgOyjAlSVrEjrG+TH1ETQoV8Mon7quuwDFMY3A4Dhc=
 =Mq20
 -----END PGP SIGNATURE-----

Merge tag '0.5.2' into debian

Release fwupd 0.5.2
2015-10-28 10:46:46 -05:00
Richard Hughes
5454783699 trivial: post release version bump 2015-10-28 10:00:17 +00:00
Richard Hughes
e22ce82dca Release fwupd 0.5.2 2015-10-28 09:59:06 +00:00
Richard Hughes
727664fa20 Clear the in-memory firmware store only after parsing a valid XML file
If we send junk to UpdateMetadata() the deamon did something like this:

* Clear existing entries from memory
* Try to load junk file into memory -> error

This left us with no entries in the in-memory store, which required the user to
either keep retrying the 'fwupdmgr update' until it worked or just forced them
to restart fwupd so it loaded the old valid store from the cache file.

Now, only clear the in-memory store and add the new firmware entries when
we know the file has been parsed correctly.

Fixes: https://github.com/hughsie/fwupd/issues/35
2015-10-27 09:56:13 +00:00
Richard Hughes
d9fa06b8c9 trivial: Fix compile with really new versions of appstream-glib 2015-10-18 20:56:16 +01:00
Richard Hughes
709d0114e3 Fix verify-update to produce components with the correct provide values 2015-10-09 12:17:08 +01:00
Richard Hughes
60f48c2013 trivial: Do no ship the old-style cleanup functions 2015-10-08 20:25:51 +01:00
Richard Hughes
3f23650f15 Add profiling data to debug slow startup times 2015-10-08 20:11:57 +01:00
Richard Hughes
d449447fc8 Add the update description to the GetDetails results 2015-10-08 20:11:34 +01:00
Richard Hughes
01d9ac56f0 trivial: Fix make check 2015-10-08 19:57:03 +01:00
Richard Hughes
5d14deff4a Support cabinet archives files with more than one firmware
This allows a vendor to upload a single file that targets different versions of
the same hardware. If this feature is used, the metainfo.xml files *must* have
something like <checksum target="content" filename="firmware2.rom"/> inside the
latest <release> tag.
2015-10-07 17:45:11 +01:00
Richard Hughes
9e1768940d When the version is from the 'FW' extension do not cache the device
This ensures we don't get confused when plugging in and out multiple ColorHug
devices of the same kind but with different version numbers.
2015-10-06 10:37:32 +01:00
Richard Hughes
2b549a6419 trivial: Remove unused struct member 2015-10-06 10:37:32 +01:00
Richard Hughes
51189ffeae Merge pull request #33 from attente/master
trivial: Fix configure checks for docbook2man and gcab
2015-10-06 07:31:36 +01:00
William Hua
7447fd16ad trivial: Add configure check for docbook2man 2015-10-05 22:44:14 -04:00