summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-05-31 11:45:42 -0400
committerRobert Morris <[email protected]>2019-05-31 11:45:42 -0400
commit5d34fa2a489940f19ee6c4728e4b11b6d8ffad01 (patch)
tree98bb91986da866684aa0159d3e44991ea8a1a87c /Makefile
parent2ec1959fd1016a18ef3b2d154ce7076be8f237e4 (diff)
downloadxv6-labs-5d34fa2a489940f19ee6c4728e4b11b6d8ffad01.tar.gz
xv6-labs-5d34fa2a489940f19ee6c4728e4b11b6d8ffad01.tar.bz2
xv6-labs-5d34fa2a489940f19ee6c4728e4b11b6d8ffad01.zip
-initrd fs.img, ramdisk.c, file system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1424d7c..6c3df2b 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,14 @@ OBJS = \
trampoline.o \
trap.o \
syscall.o \
- sysproc.o
+ sysproc.o \
+ bio.o \
+ fs.o \
+ log.o \
+ sleeplock.o \
+ file.o \
+ pipe.o \
+ ramdisk.o
XXXOBJS = \
bio.o\
@@ -83,15 +90,15 @@ endif
LDFLAGS = -z max-page-size=4096
-kernel: $(OBJS) entry.o kernel.ld
+kernel: $(OBJS) entry.o kernel.ld initcode
$(LD) $(LDFLAGS) -T kernel.ld -o kernel entry.o $(OBJS)
$(OBJDUMP) -S kernel > kernel.asm
$(OBJDUMP) -t kernel | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > kernel.sym
initcode: initcode.S
$(CC) $(CFLAGS) -nostdinc -I. -c initcode.S
- #$(LD) $(LDFLAGS) -N -e start -Ttext 0 -o initcode.out initcode.o
- #$(OBJCOPY) -S -O binary initcode.out initcode
+ $(LD) $(LDFLAGS) -N -e start -Ttext 0 -o initcode.out initcode.o
+ $(OBJCOPY) -S -O binary initcode.out initcode
$(OBJDUMP) -S initcode.o > initcode.asm
tags: $(OBJS) entryother.S _init
@@ -107,6 +114,9 @@ _%: %.o $(ULIB)
$(OBJDUMP) -S $@ > $*.asm
$(OBJDUMP) -t $@ | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > $*.sym
+usys.S : usys.pl
+ perl ./usys.pl > usys.S
+
_forktest: forktest.o $(ULIB)
# forktest has less library code linked in - needs to be small
# in order to be able to max out the proc table.
@@ -171,7 +181,7 @@ ifndef CPUS
CPUS := 1
endif
QEMUOPTS = -machine virt -kernel kernel -m 3G -smp $(CPUS) -nographic
-#QEMUOPTS += -initrd fs.img
+QEMUOPTS += -initrd fs.img
qemu: kernel
$(QEMU) $(QEMUOPTS)