utest: rename utest to init

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-22 01:13:18 -04:00
commit 5a67532500
7 changed files with 7 additions and 5 deletions

View file

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

View file

@ -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 $($(*))

View file

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