summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/Makefile
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-04-01 12:19:43 +0100
committerLeah Rowe <leah@libreboot.org>2026-04-01 12:30:55 +0100
commit44004191cbc1a2a4fc2a60aca215560b5d989b7c (patch)
tree6e1baaf6fc5a90e6aea4f3987486d74b6df06b24 /util/libreboot-utils/Makefile
parent2c40ad78166c4cdb667caf4238080a4708c43326 (diff)
lbutils: don't set USE_OPENAT and USE_URANDOM
these can be set explicitly in the compiler flags, e.g. make CC="cc -DUSE_OPENAT=1 -DUSE_URANDOM=1" these options, if set to 1, will cause you to use the code as if it were running on non-linux systems such as openbsd. of course, some differences will still exist, but this is useful for portability testing when compiling on linux. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/Makefile')
-rw-r--r--util/libreboot-utils/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/libreboot-utils/Makefile b/util/libreboot-utils/Makefile
index efa0aedc..f42c4ab6 100644
--- a/util/libreboot-utils/Makefile
+++ b/util/libreboot-utils/Makefile
@@ -7,6 +7,7 @@
CC = cc
HELLCC = clang
+OLDCC = $(CC) -DUSE_URANDOM=1 -DUSE_OPENAT
CFLAGS = -Os -Wall -Wextra -std=c99 -pedantic -Werror
LDFLAGS =