commit 0f38ee0e9c8fcac3c0ea12b21cc210f6befb8564
parent 61dc5beca8804b70fb10559d38017526523452be
Author: Daniel Barlow <dan@telent.net>
Date: Thu, 19 Oct 2023 18:59:02 +0100
remove PREINIT_USE_LIBC option as it is now the only option
Diffstat:
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/pkgs/preinit/Makefile b/pkgs/preinit/Makefile
@@ -1,4 +1,4 @@
-CFLAGS+=-Os -DPREINIT_USE_LIBC -fno-stack-protector -fpic -fPIC
+CFLAGS+=-Os -fno-stack-protector -fpic -fPIC
LDFLAGS=-static
preinit: preinit.o parseopts.o
diff --git a/pkgs/preinit/preinit.c b/pkgs/preinit/preinit.c
@@ -1,14 +1,11 @@
-#ifdef PREINIT_USE_LIBC
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mount.h>
#include <sys/wait.h>
#include <string.h>
-#else
-#include <nolibc.h>
-#endif
-#include <asm/setup.h>
+
+#include <asm/setup.h> /* for COMMAND_LINE_SIZE */
void parseopts(char * cmdline, char **root, char **rootfstype);