🆕 运行文件系统中的二进制程序

This commit is contained in:
fslongjin
2022-05-06 00:25:32 +08:00
parent 099b24539a
commit 0aec6827ee
24 changed files with 673 additions and 68 deletions

View File

@ -1,8 +1,22 @@
SUBDIRS = kernel
SUBDIRS = kernel user
export ARCH=x86_64
export ROOT_PATH=$(shell pwd)
export DEBUG=DEBUG
export GLOBAL_CFLAGS := -mcmodel=large -fno-builtin -m64 -O0 -fno-stack-protector -D $(ARCH)
ifeq ($(DEBUG), DEBUG)
GLOBAL_CFLAGS += -g
endif
.PHONY: all
all:
mkdir -p bin/kernel/
mkdir -p bin/user/
@list='$(SUBDIRS)'; for subdir in $$list; do \
echo "make all in $$subdir";\
cd $$subdir;\