From 123639e3db0757fb3370516f7eaf50cbfae4d026 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 7 Sep 2026 08:12:24 +0100 Subject: delete util/libreboot-utils (unused code) this was an intense audit of nvmutil that somehow evolved into writing a new, hardened implementation of mktemp. it all works, a few memory bugs to solve on bsd, but i don't see the point in keeping it. mktemp is fine, and nvmutil already works. lbutils implemented atomic writes and integrity checking, in a manner completely overengineered for what it was actually doing (modifying a few bytes in 8KB GbE files) just delete it. i'll bring it back if i ever finish the code. i don't want to leave dead/unfinished code in the tree. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/usage.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 util/libreboot-utils/lib/usage.c (limited to 'util/libreboot-utils/lib/usage.c') diff --git a/util/libreboot-utils/lib/usage.c b/util/libreboot-utils/lib/usage.c deleted file mode 100644 index 4ade2f9e..00000000 --- a/util/libreboot-utils/lib/usage.c +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: MIT - * Copyright (c) 2023 Riku Viitanen - * Copyright (c) 2026 Leah Rowe - */ - -#include -#include - -#include "../include/common.h" - -void -usage(void) -{ - const char *util = lbgetprogname(); - - fprintf(stderr, - "Modify Intel GbE NVM images e.g. set MAC\n" - "USAGE:\n" - "\t%s FILE dump\n" - "\t%s FILE setmac [MAC]\n" - "\t%s FILE swap\n" - "\t%s FILE copy 0|1\n" - "\t%s FILE cat\n" - "\t%s FILE cat16\n" - "\t%s FILE cat128\n", - util, util, util, util, - util, util, util); - - exitf("Too few arguments"); -} -- cgit v1.2.1