Richard Hughes
ec73f86a79
trivial: Allow building GCab from a subpackage
2019-11-26 17:32:27 +00:00
Richard Hughes
7d82a09808
trivial: Fix under-include to define O_RDONLY
2019-11-26 17:15:45 +00:00
Richard Hughes
9e5675e1b4
trivial: Allow compiling without <glib-unix.h>
2019-11-26 17:15:45 +00:00
Richard Hughes
f0f504c740
trivial: Do not use FuProgressbar in dfu-tool
...
This is a debug-only command line program, and we don't want plugins to have
access to the animated progressbar header in the future.
2019-11-26 17:15:18 +00:00
Richard Hughes
ed3f6cfd4f
synaptics-prometheus: Manually set the bootloader mode when attaching
...
The fingerprint reader device doesn't actually disconnect and reconnect and
so the FuDevice->setup() vfunc never gets called.
2019-11-26 14:15:11 +00:00
Richard Hughes
aba4a5a2bd
trivial: Split out a new helper funtion
...
Other devices need to use this functionality too.
2019-11-26 14:15:11 +00:00
Richard Hughes
f3880bce26
trivial: Add some optional debugging when hotplugging devices
2019-11-26 14:14:48 +00:00
Richard Hughes
ed7a549b3a
trivial: Include the correct header for S_IRWXU
2019-11-26 14:14:37 +00:00
Richard Hughes
11d10a00e7
Always use the more portable 3-arg form for open()
2019-11-26 14:14:37 +00:00
Richard Hughes
019a1bc2b0
trivial: Untangle FuHistory from FuPlugin
...
This will allow us to export FuPlugin in the future without dragging in the
private fu-history.h too.
2019-11-26 14:14:27 +00:00
Richard Hughes
5c508de173
trivial: Allow compiling without <fnmatch.h>
...
This also allows us to add a Win32 implementation if required in the future.
2019-11-26 13:13:31 +00:00
Richard Hughes
28e8b953d0
Revert "synaptics-rmi: Use the build ID as the version number to match the vendor tool"
...
This reverts commit 28ab968cbf
as Synaptics
deviced that vmajor and vminor would actually be useful.
2019-11-26 08:25:45 +00:00
Mario Limonciello
f1a4d87063
Add missing documentation from the plugin interface
...
Also update the structure as the documentation doesn't only describe
libfwupd.
2019-11-26 06:31:57 +00:00
Mario Limonciello
4a7bb8d98a
trivial: fu-udev-device: remove a prototype that was missed in b3d4d2ff
2019-11-26 06:31:57 +00:00
Mario Limonciello
1a680f3b18
trivial: add missing gtk-doc fields for many files in src/
2019-11-26 06:31:57 +00:00
Mario Limonciello
0bf1c330aa
trivial: fix compile failure without gudev
2019-11-25 18:11:59 -06:00
Richard Hughes
cb59a44f28
synaptics-prometheus: Mirror the _IS_BOOTLOADER from device to config
2019-11-25 18:10:38 -06:00
Richard Hughes
be956bdb66
Allow setting the device flags using GObject properties
2019-11-25 18:10:38 -06:00
Richard Hughes
741e1e5323
vli_usbhub: Set the composite parent at construction time
2019-11-25 20:01:33 +00:00
Richard Hughes
0df243ad44
synaptics-prometheus: Set the composite parent at construction time
2019-11-25 20:01:33 +00:00
Richard Hughes
23c6359d13
Allow plugins to set the parent during construction
2019-11-25 20:01:33 +00:00
Richard Hughes
52e15b8fb3
vli-usbhub: Whitelist the PD and I²C devices
...
On advice from VIA.
2019-11-25 12:36:13 -06:00
Richard Hughes
56ac823af9
Set the protocol per-device not per-plugin
...
Some plugins have devices with more than one protocol. Logically the protocol
belongs to the device, not the plugin, and in the future we could use this to
further check firmware that's about to be deployed.
This is also not exported into libfwupd (yet?) as it's remains a debug-feature
only -- protocols are not actually required for devices to be added.
2019-11-25 18:01:54 +00:00
Richard Hughes
28ab968cbf
synaptics-rmi: Use the build ID as the version number to match the vendor tool
2019-11-25 17:44:25 +00:00
Richard Hughes
98ad926196
Create a REV_00 instance ID as this may be what the vendor needs to target
2019-11-25 17:27:03 +00:00
Mario Limonciello
c5efb21519
fu-util-common: Invert default behavior for reboot and shutdown prompts
...
Current behavior for the prompt:
```
Y … Restart & Update
y … Restart & Update
N … Tool abort & Update complete after next Power cycle
n …Tool abort & Update complete after next Power cycle
0 … Pause -> (Push anykey) -> Restart & Update
* … Pause -> (Push anykey) -> Restart & Update
“”(Enter Only) … Restart & Update
```
If someone just keeps pressing enter without reading the system will reboot
which might lead to data loss.
Set the default scenario to abort reboot, so they can just see the message
to reboot instead.
2019-11-25 08:22:42 -06:00
Mario Limonciello
802be8b1b3
trivial: fu-plugin-vfuncs: Add GTK documentation for all vfuncs
2019-11-25 09:29:46 +00:00
Richard Hughes
1665837e78
Make gudev a compile-time option
...
This should make it nearly possible to build fwupd on FreeBSD.
2019-11-25 09:29:46 +00:00
Richard Hughes
afdba37644
trivial: Set the offline trigger using an environment variable
...
This allows us to build a object that does not have a custom FU_OFFLINE_DESTDIR.
2019-11-25 09:29:46 +00:00
Mario Limonciello
9b36a370ae
trivial: ci: pull lintian from unstable for now.
...
Fixes E: fwupd: library-not-linked-against-libc usr/lib/x86_64-linux-gnu/fwupd-plugins-3/libfu_plugin_upower.so
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945276
2019-11-25 09:29:46 +00:00
Mario Limonciello
6abe21efbd
trivial: stop including fu-hash.h as part of fu-plugin-vfuncs.h
...
Explicitly include it in all "in-tree" plugins.
If headers are exported out of tree we will likely explicitly not
export this header.
2019-11-25 09:29:46 +00:00
Leo
6640b571bf
Fix shebangs on scripts
2019-11-24 18:51:56 -06:00
Richard Hughes
668ee21567
trivial: Use prefixes for DATADIR in config.h for portability
...
DATADIR is an enumerated type in MinGW, and the other names are very generic.
2019-11-24 14:17:38 -06:00
Richard Hughes
40bef88ce1
Allow compiling GUsb as a subproject
...
This allows us to get closer to compiling on FreeBSD.
2019-11-24 16:59:48 +00:00
Mario Limonciello
b3d4d2ff68
trivial: fu-udev-device: add a to_string func for debugging
2019-11-24 08:14:48 +00:00
Richard Hughes
00d6f4734f
trivial: Don't assume that plugins end in .so
2019-11-24 08:14:48 +00:00
Mario Limonciello
89a9e245f9
trivial: optionrom: remove unneeded includes
2019-11-23 14:34:55 -06:00
Mario Limonciello
4fcf48606f
trivial: debian: ci: ignore library-not-linked-against-libc for more
2019-11-23 20:18:36 +00:00
Mario Limonciello
d454485be3
trivial: remove version-format.md
...
It's not being kept up to date, and superceded by
https://fwupd.org/lvfs/docs/metainfo/version
2019-11-23 20:17:22 +00:00
Richard Hughes
1f68b021d1
trivial: Allow compiling without pwrite()
2019-11-23 17:07:53 +00:00
Richard Hughes
633445dc10
trivial: Allow compiling without <errno.h>
2019-11-23 17:07:53 +00:00
Richard Hughes
8694dee4e7
trivial: Allow compiling without realpath()
2019-11-23 17:07:53 +00:00
Richard Hughes
b026e456f3
trivial: Allow compiling without HAVE_LC_MESSAGES
2019-11-23 17:07:53 +00:00
Richard Hughes
01c0badd38
trivial: Allow compiling without getuid()
2019-11-23 17:07:53 +00:00
Richard Hughes
4f642400f8
trivial: Allow compiling without <sys/ioctl.h>
2019-11-23 17:07:53 +00:00
Richard Hughes
e7fbb248f9
trivial: Allow compiling without <poll.h>
2019-11-23 17:07:53 +00:00
Richard Hughes
fc1e267d33
trivial: Allow compiling without <sys/utsname.h>
2019-11-23 17:07:53 +00:00
Richard Hughes
17957ebf13
Ensure the _get_type() gets the same ABI version as the constructor
...
This was also causing the _get_type() symbol to be ignored for objects without
any class methods except constructors.
2019-11-23 12:59:47 +00:00
Richard Hughes
0fe4914320
Use the correct unlocker when using GRWLock
...
Linux doesn't care if you use g_rw_lock_reader_unlock() on a write lock, but
Windows really does.
2019-11-22 20:53:45 +00:00
Mario Limonciello
0f54b54250
trivial: plugins: only build coreboot when option set
...
The option was set but wasn't being used.
2019-11-22 14:50:15 -06:00