remove PREINIT_USE_LIBC option as it is now the only option

armv7
Daniel Barlow 2023-10-19 18:59:02 +01:00
parent 61dc5beca8
commit 0f38ee0e9c
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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);