utest: rename utest to init
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
11bedfe3a8
commit
5a67532500
7 changed files with 7 additions and 5 deletions
|
|
@ -95,7 +95,7 @@ static void kmain()
|
|||
apic_init();
|
||||
|
||||
dirent_t *init;
|
||||
res = vfs_open("/bin/utest", &init);
|
||||
res = vfs_open("/bin/init", &init);
|
||||
if (res < 0)
|
||||
panic("failed to open /bin/utest: %s\n", strerror(-res));
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ else
|
|||
Q :=
|
||||
endif
|
||||
|
||||
usr_dirs := utest
|
||||
usr_dirs := init
|
||||
usr_bins := $(foreach d,$(usr_dirs),$d/$d)
|
||||
|
||||
.PHONY: all $(usr_dirs)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ USR_CFLAGS ?= -g3 -O0 -pipe -Wall -ffreestanding -nostdlib \
|
|||
|
||||
USR_LDFLAGS ?= -nostdlib -static -m elf_x86_64 -z max-page-size=0x1000
|
||||
|
||||
DEPS := $(UOBJ:.o=.d)
|
||||
|
||||
$(OUT): $(UOBJ)
|
||||
$(Q)echo " LD [U] $(DIR)/$@"
|
||||
$(Q)$(LD) $(USR_LDFLAGS) -o $@ $^
|
||||
|
|
@ -23,7 +25,7 @@ $(OUT): $(UOBJ)
|
|||
$(Q)$(CC) $(USR_CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
$(Q)rm -rf $(UOBJ) $(OUT)
|
||||
$(Q)rm -rf $(UOBJ) $(OUT) $(DEPS)
|
||||
|
||||
print-%:
|
||||
$(Q)echo $($(*))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
OUT := utest
|
||||
UOBJ := utest.o syscall.o
|
||||
OUT := init
|
||||
UOBJ := init.o syscall.o
|
||||
-include ../Makefile.common
|
||||
Loading…
Reference in a new issue