From e54862fcccca0325da8ae2879c1fa965267d3df0 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 29 Mar 2026 15:48:49 +0100 Subject: lbmk: use mkhtemp in libreboot's build system i added a fake -t option, which doesn't actually read optarg, so that -t usage can just override the normal template. mkhtemp isn't ready for distros yet, but it's ready for lbmk. i hacked the makefile to also copy the binary to mktemp, and i set PATH in lbmk so that this binary is used insttead of the one on your system. that way, upstream projects use it. Signed-off-by: Leah Rowe --- util/libreboot-utils/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/libreboot-utils/Makefile') diff --git a/util/libreboot-utils/Makefile b/util/libreboot-utils/Makefile index 07b3a727..5ebc9b93 100644 --- a/util/libreboot-utils/Makefile +++ b/util/libreboot-utils/Makefile @@ -68,6 +68,8 @@ $(PROG): $(OBJS_NVMUTIL) $(PROGMKH): $(OBJS_MKHTEMP) $(CC_MODE) $(OBJS_MKHTEMP) -o $(PROGMKH) $(LDFLAGS) + cp -r mkhtemp mktemp + chmod 755 mktemp $(PROGLOT): $(OBJS_LOTTERY) $(CC_MODE) $(OBJS_LOTTERY) -o $(PROGLOT) $(LDFLAGS) -- cgit v1.2.1