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/Makefile | 60 ------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 util/libreboot-utils/Makefile (limited to 'util/libreboot-utils/Makefile') diff --git a/util/libreboot-utils/Makefile b/util/libreboot-utils/Makefile deleted file mode 100644 index f19612d3..00000000 --- a/util/libreboot-utils/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -# SPDX-License-Identifier: MIT -# Copyright (c) 2022,2026 Leah Rowe -# Copyright (c) 2023 Riku Viitanen - -CC = cc -CFLAGS = -Os -Wall -Wextra -std=c99 -pedantic -LDFLAGS = -PREFIX = /usr/local -DESTDIR = -INSTALL = install - -PROGS = nvmutil mkhtemp lottery - -LIB_OBJS = \ - lib/state.o \ - lib/file.o \ - lib/string.o \ - lib/usage.o \ - lib/command.o \ - lib/num.o \ - lib/io.o \ - lib/checksum.o \ - lib/word.o \ - lib/mkhtemp.o \ - lib/rand.o - -OBJS_NVMUTIL = nvmutil.o $(LIB_OBJS) -OBJS_MKHTEMP = mkhtemp.o lib/file.o lib/string.o lib/num.o lib/mkhtemp.o lib/rand.o -OBJS_LOTTERY = lottery.o lib/file.o lib/string.o lib/num.o lib/mkhtemp.o lib/rand.o - -all: $(PROGS) - -nvmutil: $(OBJS_NVMUTIL) - $(CC) $(CFLAGS) $(OBJS_NVMUTIL) -o $@ $(LDFLAGS) - -mkhtemp: $(OBJS_MKHTEMP) - $(CC) $(CFLAGS) $(OBJS_MKHTEMP) -o $@ $(LDFLAGS) - -lottery: $(OBJS_LOTTERY) - $(CC) $(CFLAGS) $(OBJS_LOTTERY) -o $@ $(LDFLAGS) - -.c.o: - $(CC) $(CFLAGS) -c $< -o $@ - -install: $(PROGS) - mkdir -p $(DESTDIR)$(PREFIX)/bin - for p in $(PROGS); do \ - $(INSTALL) $$p $(DESTDIR)$(PREFIX)/bin/$$p; \ - chmod 755 $(DESTDIR)$(PREFIX)/bin/$$p; \ - done - -uninstall: - for p in $(PROGS); do \ - rm -f $(DESTDIR)$(PREFIX)/bin/$$p; \ - done - -clean: - rm -f $(PROGS) *.o lib/*.o - -distclean: clean -- cgit v1.2.1