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();
|
apic_init();
|
||||||
|
|
||||||
dirent_t *init;
|
dirent_t *init;
|
||||||
res = vfs_open("/bin/utest", &init);
|
res = vfs_open("/bin/init", &init);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
panic("failed to open /bin/utest: %s\n", strerror(-res));
|
panic("failed to open /bin/utest: %s\n", strerror(-res));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ else
|
||||||
Q :=
|
Q :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
usr_dirs := utest
|
usr_dirs := init
|
||||||
usr_bins := $(foreach d,$(usr_dirs),$d/$d)
|
usr_bins := $(foreach d,$(usr_dirs),$d/$d)
|
||||||
|
|
||||||
.PHONY: all $(usr_dirs)
|
.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
|
USR_LDFLAGS ?= -nostdlib -static -m elf_x86_64 -z max-page-size=0x1000
|
||||||
|
|
||||||
|
DEPS := $(UOBJ:.o=.d)
|
||||||
|
|
||||||
$(OUT): $(UOBJ)
|
$(OUT): $(UOBJ)
|
||||||
$(Q)echo " LD [U] $(DIR)/$@"
|
$(Q)echo " LD [U] $(DIR)/$@"
|
||||||
$(Q)$(LD) $(USR_LDFLAGS) -o $@ $^
|
$(Q)$(LD) $(USR_LDFLAGS) -o $@ $^
|
||||||
|
|
@ -23,7 +25,7 @@ $(OUT): $(UOBJ)
|
||||||
$(Q)$(CC) $(USR_CFLAGS) -c $< -o $@
|
$(Q)$(CC) $(USR_CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(Q)rm -rf $(UOBJ) $(OUT)
|
$(Q)rm -rf $(UOBJ) $(OUT) $(DEPS)
|
||||||
|
|
||||||
print-%:
|
print-%:
|
||||||
$(Q)echo $($(*))
|
$(Q)echo $($(*))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
OUT := utest
|
OUT := init
|
||||||
UOBJ := utest.o syscall.o
|
UOBJ := init.o syscall.o
|
||||||
-include ../Makefile.common
|
-include ../Makefile.common
|
||||||
Loading…
Reference in a new issue