Skip to content

Commit 92121cc

Browse files
committed
Fix missing rootfs Makefile target
The README indicated that download and compling process can be done with `make rootfs` command. However, the corresponding Makefile target was removed in commit 25571f7: Modularize the build system. Originally, the rootfs target was introduced in commit 9d5eac5: Parse the cmdline arguments more perfectly, but was later removed in the aforement- ioned commit without updates to the README or integration into mk/external.mk
1 parent e2e954c commit 92121cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ $(OUT)/ext4.img:
6666
$(Q)dd if=/dev/zero of=$@ bs=4k count=600
6767
$(Q)mkfs.ext4 -F $@
6868

69+
rootfs: $(ROOTFS_IMG)
70+
6971
check: $(BIN) $(LINUX_IMG) $(ROOTFS_IMG) $(OUT)/ext4.img
7072
$(VECHO) "\nOnce the message 'Kernel panic' appears, press Ctrl-C to exit\n\n"
7173
$(Q)sudo $(BIN) -k $(LINUX_IMG) -i $(ROOTFS_IMG) -d $(OUT)/ext4.img
@@ -75,6 +77,6 @@ clean:
7577
$(Q)rm -f $(OBJS) $(deps) $(BIN)
7678

7779
distclean: clean
78-
$(Q)rm -rf build
80+
$(Q)rm -rf $(OUT)
7981

8082
-include $(deps)

0 commit comments

Comments
 (0)