bugfix: 编译错误时仍可启动虚拟机的问题

This commit is contained in:
fslongjin
2022-09-01 15:44:30 +08:00
parent 00181545f8
commit 08df258142
3 changed files with 20 additions and 2 deletions

View File

@ -42,6 +42,9 @@ all: kernel
cd $$x;\
$(MAKE) generate_kallsyms kernel_root_path="$(shell pwd)";\
cd ..;\
if [ "$$?" != "0" ]; then\
exit $$?;\
fi;\
done
# 重新链接
@ -59,7 +62,6 @@ $(kernel_subdirs): ECHO
$(MAKE) -C $@ all CFLAGS="$(CFLAGS)" ASFLAGS="$(ASFLAGS)" PIC="$(PIC)" kernel_root_path="$(shell pwd)"
kernel: head.o main.o $(kernel_subdirs)