Commit 62208bfc authored by 庞子文's avatar 庞子文
Browse files

makefile

parent a1c399c7
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -187,11 +187,13 @@ IMGDIR=/
fs.img: $(UPROGS)
@if [ ! -f "fs.img" ]; then \
echo "making fs image..."; \
dd if=/dev/zero of=fs.img bs=512k count=512; \
dd if=/dev/zero of=fs.img bs=512k count=64; \
mkfs.vfat -F 32 -s 4 fs.img; fi
@sudo mount fs.img $(dst)
sudo cp $(patsubst %_,%,$(UPROGS)$^) $(dst)$(IMGDIR)
@sudo cp user/_init $(dst)/init
@sudo cp user/_sh $(dst)/sh
@sudo umount $(dst)
xxd -i fs.img > kernel/ramdisk.h
-include kernel/*.d user/*.d
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment