Commit Graph

7 Commits

Author SHA1 Message Date
Caleb Connolly
3390f642e3
meson.build: use gnu11 std instead of c11
This fixes a few compilation issues on different platforms (yay C
standards)

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-09-27 18:43:46 +01:00
Caleb Connolly
ea34c3f0b9
drop test stub, fix licenses 2023-06-24 01:38:14 +01:00
Caleb Connolly
e9e86efb96
even even more rework, drop zlib dep
Also fix the mark_boot_successful feature which I broke earlier
2023-06-24 01:04:15 +01:00
Caleb Connolly
bca9aa5dd7
more rework, cleanup, port to pure C
The only C++ was for handling discovering and iterating over the
partitions PER block device, this was implemented in a really
overcomplicated way.

Simplify things, port everything over to c11 and drop the libstdc++
requirement entirely.
2023-06-24 00:06:02 +01:00
Caleb Connolly
04f4ac81ea
rework, fixup, cleanup
Allocate gpt_disk on stack, allocate when needed, rather than multiple
times for every partition.

Huge code cleanup, rerun clang-format, etc

Many changes here inspired by Eric's earlier work.
2023-06-23 21:53:30 +01:00
Caleb Connolly
4c49647382
cleanup, stub out tests
not sure how best to write tests, probably a larger test framework on
a board farm to test on real devices will be more sensible.
2022-06-04 15:51:22 +01:00
Caleb Connolly
55612452e0
its ALIIIIIIVE
not yet properly tested, but it seems to mostly work just fine. Slot
switching and marking boot as successful at least just work!
2022-06-04 04:42:40 +01:00