diff options
author | Sean Rhodes <sean@starlabs.systems> | 2021-11-12 08:54:50 +0000 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2022-01-27 16:16:23 +0000 |
commit | 9c89e3ada2dd30d683c44364e8eea5de757b74eb (patch) | |
tree | 30e29cf5094559f82589dd7583aeac89c5a95592 /util/coreboot-configurator/src/application/Configuration.h | |
parent | aef6de34263694a62f42135be1a97075ec3a2b7a (diff) |
util: Add coreboot-configurator
A simple GUI to change settings in coreboot's CBFS, via the nvramtool utility.
Test on the StarBook Mk IV running coreboot 4.15 with:
* Ubuntu 20.04
* Ubuntu 21.10
* MX Linux 21
* elementary OS 6
* Manjaro 21
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I491922bf55ed87c2339897099634a38f8d055876
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59256
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/coreboot-configurator/src/application/Configuration.h')
-rw-r--r-- | util/coreboot-configurator/src/application/Configuration.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/coreboot-configurator/src/application/Configuration.h b/util/coreboot-configurator/src/application/Configuration.h new file mode 100644 index 0000000000..b2559d4960 --- /dev/null +++ b/util/coreboot-configurator/src/application/Configuration.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#pragma once + +#include <QFile> +#include <QMap> +#include <QObject> +#include <QString> + + +namespace Configuration { + +using Parameters = QMap<QString,QString>; + +Parameters fromFile(const QString& curr_path); +bool toFile(const QString& curr_path, const Parameters& params); + +} |