Commit Graph

862 Commits

Author SHA1 Message Date
Crag Wang
1be055fb1e trivial: check-license: exclude files from build directory earlier 2021-10-29 12:21:55 +08:00
Crag Wang
996ca6a0df trivial: docs not really required for debugging builds 2021-10-29 12:21:55 +08:00
Richard Hughes
0a7ce0cf25 Allow specifying the version format in firmware_packager
Fixes https://github.com/fwupd/fwupd/issues/3903
2021-10-25 18:00:34 +01:00
Richard Hughes
28678235cd Move the fuzzing files into the plugin directories
We only had to pile everything into the src/fuzzing/firmware directory
because honggfuzz could not cope with more than one input path.

This way each plugin is self contained and easy to copy.
Also, install the fuzzing builder objects as this fixes the installed
tests when srcdir does not exist.

Based on a patch by Jan Tojnar <jtojnar@gmail.com>, many thanks.
2021-10-22 15:24:05 +01:00
Richard Hughes
2d00cda464 Remove PLUGINBUILDDIR and use G_TEST_SRCDIR and G_TEST_BUILDDIR instead
This allows us to override the location we load data files from, which
allows us to do more kinds of installed tests in the future.

Also, move the global data/tests content into the place that it is used
as it was getting impossible to manage.
2021-10-21 18:36:22 +01:00
Richard Hughes
a5ef3629d4 trivial: Build the fuzzers with -g to get stacktraces 2021-10-18 20:02:03 +01:00
Richard Hughes
8e24fa77cf cfu: Add an initial outline CFU plugin
There's no actual hardware to test this against yet, but this is how I
would lay out a plugin if there was.

We still need to work out a generic encapsulation for the offer and
payload (for each component and bank) so this can work with LVFS and
fwupd.
2021-10-15 18:38:36 +01:00
Richard Hughes
d1dff82803 Allow installing developer-friendly PolicyKit rules from setup 2021-10-15 16:30:24 +01:00
Richard Hughes
46c90f11a4 trivial: Add missing Fedora BuildRequires 2021-10-06 16:43:50 +01:00
Mario Limonciello
d64607b98d trivial: add a helper to contrib/setup to rename branches
This will help for any local checkouts using the old branch name.
2021-09-24 14:21:17 -05:00
Richard Hughes
7f5b0c0b60 Rename the development branch from master to main
Fixes https://github.com/fwupd/fwupd/issues/3799
2021-09-24 14:20:24 -05:00
michaelcheng04
10549674b1 Add a plugin to flash Elan fingerprint reader hardware 2021-09-23 10:41:00 +01:00
Mario Limonciello
cc8eb5ca8c trivial: Merge python steps from contrib/setup into helper script
This avoids having to hardcode profile targets in multiple places
and also fixes the confusing entry points into scripts both by
arguments and environment variables.

It also makes the setup script a lot more debuggable and scalable.

OS detection is a lot more robust, where it will try to use pip to
set up the distro python package, and if pip is missing try to install
it.

If OS detection fails now, a user can use --os on contrib/setup for
specifying it.
2021-09-17 10:59:35 -05:00
Mario Limonciello
349975bb70 trivial: setup: drop the special case for python3-venv
Install it via dependencies.xml like the rest
2021-09-17 10:59:35 -05:00
Richard Hughes
9d37e447a1 Convert the device test script to a fwupdmgr subcommand
This allows us to do a few things:

 * Remove the runtime dep on Python 3, which is tricky for ChromeOS
 * Test composite devices more efficiently, only writing once per test
 * Automatically upload signed reports for successful device tests.
2021-09-16 15:01:36 +01:00
Mario Limonciello
24970acf4a trivial: generate_dependencies: add variant to OS strings that are generated 2021-09-16 06:43:55 -05:00
Mario Limonciello
de2774846f trivial: contrib/setup: use distro.id() 2021-09-16 06:43:55 -05:00
Mario Limonciello
15f0029624 trivial: generate_dependencies: fallback to "like" distros
This should cause linuxmint to run the Ubuntu dependency resolution.
2021-09-16 06:43:55 -05:00
Mario Limonciello
0c77e34c73 trivial: drop the flatpak target
We don't use it for dependency building at all.
2021-09-16 06:43:55 -05:00
Mario Limonciello
05a3ee1fc8 trivial: generate_dependencies: use distro.id() to better find defaults 2021-09-16 06:43:55 -05:00
dkwo
d6645e1447 update void linux ci target 2021-09-14 16:07:10 -05:00
Simon Ho
5e67108ab8
plugins: add new plugin for Synaptics CAPE devices (#3746)
CAPE family is Audio DSP for a board range of applications in IOT, PC
and mobile can be interfaced via I2C, UART or USB interface. This patch
is only for CX31993 and CX31988 chips, there is not immediate plans is
to add support to other CAPE devices.

CX31993 have two separate firmware .hid file for for each partition. It
need to convert two .hid files into a .fw file for fwupd tool to
consume.

Currently, this patch is only support for EPOS headsets with basic
firmware update feature. Either new code singing or manifest.xml are
unsupported yet.

The code has been tested with CX31993 EVK board.

A test firmware file is put at 'src/fuzzing/firmware/synaptics-cape.fw'

synaptics-cape: Port to new FuProgress API and style fixups

synaptics-cape: Fix compile errors and add missing test fw file

Signed-off-by: Simon Ho <simon.ho@synaptics.com>

synaptics-cape: Fix fuzzer test

Signed-off-by: Simon Ho <simon.ho@synaptics.com>

synaptics-cape: Fix progress bar number

Signed-off-by: Simon Ho <simon.ho@synaptics.com>

synaptics-cape: Mark the fuzzing target

trivial: Use a stable GLib branch for fuzzing

synaptics-cape: Fix progress bar number

Signed-off-by: Simon Ho <simon.ho@synaptics.com>

synaptics-cape: Fix readme

synaptics-cape: Style fixups

synaptics-cape: Fix progress bar percentage

synaptics-cape: Style fixups
2021-09-15 03:42:07 +08:00
Richard Hughes
1210aa4ae7 redfish: Create user accounts automatically using IPMI
This allows the Redfish plugin to "just work" when there is no username
or password in the SMBIOS data. Using KCS we can create an admin account
from the host OS and then automatically enumerate devices.
2021-09-07 17:25:37 +01:00
Mario Limonciello
113c784ce4 trivial: run Ubuntu CI target tests with "nobody" user account
This should ensure that self tests are never trying to access or
create things they shouldn't be.
2021-09-03 15:10:38 -05:00
Sean Rhodes
42136840bd contri/ci: Add dependancies for flashrom
Add libpci-dev for Ubuntu and Debian as it's required for flashrom
2021-09-03 12:49:57 -05:00
Sanjay Sheth
b6ff1ea40e Add support for devices supporting the Logitech bulk controller protocol 2021-08-29 20:33:16 +01:00
Mario Limonciello
f6a8c740e0 trivial: ignore commits for tree wide changes 2021-08-24 11:18:40 -05:00
Mario Limonciello
55de39c077 trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
Richard Hughes
c1ff02f055 trivial: Make the quirk style more consistent 2021-08-23 18:10:12 +01:00
Richard Hughes
6a8f285ee2 Check the quirk format as part of precommit 2021-08-23 18:10:12 +01:00
Norbert Kamiński
3fe782cddd build_freebsd_package.sh: Build package with generated pkg-plist
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-08-18 08:39:11 -05:00
Norbert Kamiński
c1f06b6b82 freebsd-ci: Change FreeBSD artifact extension
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-08-18 08:39:11 -05:00
Mario Limonciello
684bc03813 trivial: fix various shellcheck warnings 2021-08-18 07:58:17 -05:00
Mario Limonciello
682f962006 trivial: move clone firmware shell code into common script 2021-08-18 07:58:17 -05:00
Mario Limonciello
cfd584f26b trivial: build-windows: fix some shellcheck warnings 2021-08-18 07:58:17 -05:00
Mario Limonciello
4f36ec32e8 trivial: freebsd: remove unused variable
found by codacity
2021-08-18 07:58:17 -05:00
Mario Limonciello
a1b746d276 trivial: don't use built-in types
found by codacity
2021-08-18 07:58:17 -05:00
Mario Limonciello
1c25453aa8 trivial: contrib/setup: update markdown if it's too old
gi-docgen requires 3.3.3 or later, but some of the distro packages
are too old.  Upgrade them to make the default

```
meson build
```

work out of the box
2021-08-12 16:38:14 -05:00
Mario Limonciello
0114c9ada7 trivial: check-license: ignore subprojects too 2021-08-08 19:44:33 -05:00
Mario Limonciello
1384e94c64 trivial: check-license: detect and ignore build directory
Find the build directory by finding `config.h`
2021-08-08 15:41:43 -05:00
Mario Limonciello
28a04c7c78 trivial: check-license: rename license variable to lic
license is a built-in.
caught by codacity.
2021-08-08 15:41:43 -05:00
Mario Limonciello
915916e22a Add a pre-commit rule to verify a SPDX license header is present 2021-08-08 14:43:21 -05:00
Mario Limonciello
9c35617b54 trivial: out-of-tree: add SPDX license headers 2021-08-08 14:43:21 -05:00
Richard Hughes
a5a978b3f6 Rename some confusing API
More than one person has asked about 'why call fu_plugin_update() for a
reinstall or downgrade' and I didn't have a very good answer.

The plugin API is not officially stable, and we should fix things to be
less confusing. Use the same verbs as the FuDevice vfuncs instead.
2021-08-06 19:49:53 +01:00
Richard Hughes
731190a500 trivial: Don't expect 35_fwupd for non-UEFI packages 2021-08-02 14:26:45 +01:00
Richard Hughes
19ab121f80 trivial: Write some initial release notes 2021-07-31 20:46:03 +01:00
Mario Limonciello
89e975490e trivial: try again to fix void docker creation 2021-07-31 13:17:05 -05:00
Mario Limonciello
8b679f7320 trivial: make contrib/reformat-code.py easier to use
1. Let the user know what commit it's reformatting in stdout
2. Add a debug mode to show the command that was launched
3. Fix output of errors
4. Allow the user to specify starting commit in an argument
2021-07-30 06:42:57 -05:00
Mario Limonciello
192083479e trivial: fix void container build 2021-07-29 19:56:19 -05:00
Mario Limonciello
9233ceb8d4 trivial: fix void docker container creation 2021-07-28 21:42:54 -05:00