1- C_SOURCES = $(wildcard kernel/* .c drivers/* .c cpu/* .c libc/* .c apps/* .c net/* .c)
2- HEADERS = $(wildcard kernel/* .h drivers/* .h cpu/* .h libc/* .h apps/* .h net/* .h)
1+ C_SOURCES = $(wildcard kernel/* .c drivers/* .c cpu/* .c libc/* .c apps/* .c net/* .c fs/ * .c )
2+ HEADERS = $(wildcard kernel/* .h drivers/* .h cpu/* .h libc/* .h apps/* .h net/* .h fs/ * .h )
33
44BUILD_DIR = _build
55OBJ = $(patsubst % .c, $(BUILD_DIR ) /% .o, $(C_SOURCES ) ) $(BUILD_DIR ) /cpu/interrupt.o $(BUILD_DIR ) /cpu/task_switch.o
@@ -10,11 +10,11 @@ LD = ld -m elf_i386
1010CFLAGSNO = -fno-pie -nostdlib -fno-builtin -nodefaultlibs -nostartfiles -Wno-error=comment -Wno-error=unused-variable -Wno-error=unused-parameter # -Wno-error=pointer-arith
1111USAN = -fsanitize=undefined -fno-sanitize=shift
1212CFLAGS = -g -O0 -m32 -fno-pie -ffreestanding -nostdlib -fno-builtin -nodefaultlibs -nostartfiles -Werror -Wpedantic -Wall -Wextra -I$(shell pwd)
13- NETWORKING = -netdev tap,id=my_tap0 ,ifname=tap0 -device rtl8139,netdev=my_tap0
13+ NETWORKING = -netdev tap,id=net0 ,ifname=tap0,script=no,downscript=no -device rtl8139,netdev=net0
1414QEMU_FLAGS =-no-shutdown -no-reboot
1515RUN = qemu-system-i386 --enable-kvm $(QEMU_FLAGS ) -m 4 -serial stdio -kernel $(BUILD_DIR ) /kernel.elf -drive file=disk/fat16.img,format=raw -d int,cpu_reset,guest_errors -D qemu.log -trace kvm* -D kvm_trace.log
1616
17- $(shell mkdir -p $(BUILD_DIR)/boot $(BUILD_DIR)/kernel $(BUILD_DIR)/drivers $(BUILD_DIR)/cpu $(BUILD_DIR)/libc $(BUILD_DIR)/apps $(BUILD_DIR)/net)
17+ $(shell mkdir -p $(BUILD_DIR)/boot $(BUILD_DIR)/kernel $(BUILD_DIR)/drivers $(BUILD_DIR)/cpu $(BUILD_DIR)/libc $(BUILD_DIR)/apps $(BUILD_DIR)/net $(BUILD_DIR)/fs )
1818
1919all : format bits $(BUILD_DIR ) /kernel.elf disk/fat16.img
2020
@@ -34,6 +34,8 @@ net: all
3434 $(RUN ) $(NETWORKING )
3535run : all
3636 $(RUN )
37+ vnc : all
38+ $(RUN ) $(NETWORKING ) -vnc :1
3739
3840# ################
3941disk/fat16.img :
0 commit comments