diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-17 20:59:31 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-17 20:59:31 -0400 |
commit | 0776264c266e7c1619b8b8b84d2da5384979bb3c (patch) | |
tree | 80b6ded012336e24c72cc2c16e4c3ce952b7b739 /usr.sbin | |
parent | 7895aaff402a021a1b04645ca8d251f760e5662e (diff) | |
parent | 2896f4126de2ee0fd1bab4b960bfb2213c359f18 (diff) |
Merge branch 'user' into dev
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/Makefile | 7 | ||||
-rw-r--r-- | usr.sbin/init/Makefile | 8 | ||||
-rw-r--r-- | usr.sbin/init/main.c | 6 |
3 files changed, 21 insertions, 0 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile new file mode 100644 index 0000000..c75ebd0 --- /dev/null +++ b/usr.sbin/Makefile @@ -0,0 +1,7 @@ +CC = +LD = +LDSO = + +.PHONY: all +all: + cd init/; make LDSO=$(LDSO) CC=$(CC) LD=$(LD) diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile new file mode 100644 index 0000000..fa65c8d --- /dev/null +++ b/usr.sbin/init/Makefile @@ -0,0 +1,8 @@ +CC = +LD = +LDSO = + +.PHONY: all +all: + $(CC) -c main.c -o main.o; + $(LD) --dynamic-linker /usr/lib/ld.so $(LDSO) main.o -o init -e main diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c new file mode 100644 index 0000000..af62d76 --- /dev/null +++ b/usr.sbin/init/main.c @@ -0,0 +1,6 @@ +int +main(void) +{ + /* Do nothing */ + while (1); +} |