Commit Graph

840 Commits

Author SHA1 Message Date
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
Mario Limonciello
1150189948 trivial: Add VOID into contrib/setup 2021-07-28 11:29:44 -05:00
Mario Limonciello
a7cfe67cfe Add VOID CI target 2021-07-28 11:29:44 -05:00
Mario Limonciello
b87c6dab95 uefi-capsule: Add support for installing UEFI updates from GRUB
Shim has had a hard time with loading updates from arguments in the
most recent release and this isn't the first time that happened.

Give distros and users an escape hatch that will allow using GRUB
instead.
2021-07-28 17:11:39 +01:00
Mario Limonciello
bf32c86c17 trivial: symlink in grub configuration too
If GRUB support was activated in uefi plugin, this will be needed
for it to work.
2021-07-28 10:25:47 -05:00
Mario Limonciello
1dcb42747e trivial: contrib/setup: Run helper stuff to set up local dev environment
If running interactive, offer to setup the local system to using
/usr/local more convenient.
2021-07-28 10:25:47 -05:00
Mario Limonciello
0de861086f trivial: contrib/setup: change the interactive check 2021-07-28 10:25:47 -05:00
Mario Limonciello
01f79c0339 trivial: set the reference commit to run style check against on CI 2021-07-24 20:56:26 -05:00
Daniel Campello
987e7d2929 Add contrib/reformat-code.py to pre-commit hooks 2021-07-24 20:56:26 -05:00
Mario Limonciello
bb202244e3 trivial: add clang-format into dependencies 2021-07-24 20:56:26 -05:00
Richard Hughes
affd39f10b Change the style guide to no space before the bracket 2021-07-24 20:56:26 -05:00
Richard Hughes
a75266e701 trivial: Add the missing unversioned clang-format-diff 2021-07-24 16:38:04 +01:00
Daniel Campello
af1577342a reformat-code.py: add argumentless mode for formatting diffs 2021-07-23 12:41:22 -06:00
Mario Limonciello
7787ba6df9 Add a .clang-format file and helper tool
It won't automatically be enforced, but should be picked up by editors
that support it (such as VS code + CPP extension)

It doesn't yet follow project style entirely, so more tweaking is
likely needed.

Also add a helper tool for reformatting new files to match project style
2021-07-22 16:38:29 +01:00
Twain Byrnes
379250996a Skeleton plugin for powerd
This CL creates a mostly empty fu-plugin-powerd.c that
has the file disable itself on startup with an error.

The README.md file was re-created to include information on
powerd and the specific interface it will use.

A meson.build file re-created to call fu-plugin-powerd.c.
It excludes a .conf install function was removed to be consistent with
an upstream change.

The general meson.build file includes the
powerd subdirectory for powerd to compile.

No .quirk file was included. There will be general daemon.quirk file for all plugins.

FIXUP: Adjusted copyright format and whitespace in fu-plugin-powerd.c
and plugin returns false on startup. Also added to "fu-plugin-powerd.so"
entry fwupd.spec.in.
2021-07-19 13:40:11 -07:00
Mario Limonciello
798d1ed3ee trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00
Richard Hughes
19abf996c7 Allow the daemon to request interactive action from the end user
The "return error and hope the client resubmits the firmware again"
pattern is clunky. There are two plugins doing this now, and about to
be one more.

This adds FwupdRequest which provides a structured way of asking the
user to perform an action, e.g. to replug the device or to press a
special key or button.

This replaces much of the UpdateMessage and UpdateImage API although
it is still used internally. Clients capable of processing the new
DeviceRequest signal should add REQUESTS to their feature flags.

Also, this allows us go back to the old meaning of _NEEDS_BOOTLOADER,
which was "needs rebooting into a bootloader mode" rather than the
slightly weird "user needs to do something and resubmit request".
2021-07-14 17:03:50 +01:00
Richard Hughes
a564e458d2 trivial: Fix Python linting issue spotted by Codacy 2021-07-14 15:20:57 +01:00
Peter Marheine
a12d715038 New plugin: parade-lspcon 2021-07-14 06:40:38 +01:00
Richard Hughes
8eecefeb3b trivial: Allow the cache to build in arch CI 2021-07-12 19:01:55 +01:00
Richard Hughes
e4aeb99296 trivial: Fix oss-fuzz by installing missing deps 2021-07-12 10:33:38 +01:00
Richard Hughes
488f2e1f37 Export the EFI and IFD parsers
We'll need to use this from another plugin soon.
2021-07-12 10:33:38 +01:00
Richard Hughes
30ce27440e trivial: Fix s390x rpmbuild 2021-07-09 17:02:52 +01:00