diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-07 08:12:24 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-07 08:12:24 +0100 |
| commit | 123639e3db0757fb3370516f7eaf50cbfae4d026 (patch) | |
| tree | 2fefd5b712f2935949bd447038cfb867f49f6342 /util/libreboot-utils/Makefile | |
| parent | 01cb422c9771c7daa00c6f832c3294d59802a635 (diff) | |
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/Makefile')
| -rw-r--r-- | util/libreboot-utils/Makefile | 60 |
1 files changed, 0 insertions, 60 deletions
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 <leah@libreboot.org> -# Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> - -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 |
