diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-07 22:46:25 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-07 22:46:25 -0500 |
commit | 3154c067ebd5e23b8be9693a1a790c70a9634344 (patch) | |
tree | 595019d0f0cd2224a9763295fa5a01cda5b8fe22 /Makefile.in | |
parent | 59df7bdadbfd50bfaf95cde442c7380cce535254 (diff) |
build: Create init stub
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index f61c4e9..daa0cf9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -69,10 +69,14 @@ override KERNEL_ASMOBJECTS = $(KERNEL_ASMFILES:.S=.S.o) override KERNEL_HEADER_DEPS = $(KERNEL_CFILES:.c=.d) .PHONY: all -all: base lib base/usr/lib/ld.so base/boot/hyra-kernel +all: base init lib base/usr/lib/ld.so base/boot/hyra-kernel rm -f sys/include/machine rm -rf iso_root +base/boot/init: usr.sbin/init/ + cd usr.sbin/; make CC=$(CC) LD=$(LD) + cp usr.sbin/init/init base/boot/ + base: mkdir -p base/usr/lib/ @@ -96,6 +100,7 @@ distclean: rm -f $(KERNEL_ASMOBJECTS) $(KERNEL_OBJECTS) $(KERNEL_HEADER_DEPS) rm -f sys/include/machine rm -f base/usr/lib/ld.so + rm -f base/boot/init cd lib/; make clean .PHONY: clean @@ -115,7 +120,6 @@ base/usr/lib/ld.so: lib/mlibc/ base/boot/hyra-kernel: $(KERNEL_OBJECTS) $(KERNEL_ASMOBJECTS) rm -rf iso_root - mkdir -p base/boot/ $(PROMPT) " LD " $(shell pwd)/base/boot/hyra-kernel $(LD) $(KERNEL_LDFLAGS) $(KERNEL_OBJECTS) $(KERNEL_ASMOBJECTS) -o base/boot/hyra-kernel tools/ksyms sys/kern/ksyms.c base/boot/hyra-kernel |