Skip to content

Commit

Permalink
Fix missing rootfs Makefile target
Browse files Browse the repository at this point in the history
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
  • Loading branch information
otteryc committed Dec 26, 2024
1 parent e2e954c commit 92121cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ $(OUT)/ext4.img:
$(Q)dd if=/dev/zero of=$@ bs=4k count=600
$(Q)mkfs.ext4 -F $@

rootfs: $(ROOTFS_IMG)

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

distclean: clean
$(Q)rm -rf build
$(Q)rm -rf $(OUT)

-include $(deps)

0 comments on commit 92121cc

Please sign in to comment.