summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/libreboot-utils/Makefile2
-rw-r--r--util/libreboot-utils/mkhtemp.c8
2 files changed, 9 insertions, 1 deletions
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)
diff --git a/util/libreboot-utils/mkhtemp.c b/util/libreboot-utils/mkhtemp.c
index de86a2bf..c9315b0c 100644
--- a/util/libreboot-utils/mkhtemp.c
+++ b/util/libreboot-utils/mkhtemp.c
@@ -68,7 +68,7 @@ main(int argc, char *argv[])
xpledgex("stdio flock rpath wpath cpath", NULL);
while ((c =
- getopt(argc, argv, "qdp:")) != -1) {
+ getopt(argc, argv, "qdp:t")) != -1) {
switch (c) {
case 'd':
@@ -83,6 +83,12 @@ main(int argc, char *argv[])
/* (exit status unchanged) */
break;
+ case 't':
+ break; /* not supported yet. TODO */
+ /* configured above without optarg,
+ * so that it is treated as a normal
+ * template string */
+
default:
goto err_usage;
}