aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-08-27 15:29:55 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-08-27 15:29:55 +0200
commitbf27de1c9da14cb4de1ebd31ebc4eed2c0f5bd9c (patch)
tree2c5a2e8dd71f5177dcf83d7fadef7b8533b88912
parentc0350c95743a8addf28c3d53159bf22fbcfc924b (diff)
make help support
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--Makefile16
-rw-r--r--README5
2 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 684ee0b..3999c0d 100644
--- a/Makefile
+++ b/Makefile
@@ -144,3 +144,19 @@ qemu-console: image
qemu-net: image
qemu-system-$(ARCH) -kernel '$(LINUX_BUILD_DIR)/arch/$(ARCH)/boot/bzImage' -initrd '$(INITRD_TARGET)' -enable-kvm -vga qxl -display sdl \
-net nic,macaddr=$(NET_HWADDR) -net tap,ifname=linux-qemu-test,br=$(NET_BRIDGE) -append 'net $(if $(NET_IP4),ip4)'
+
+define HELP_PREFIX
+@echo "\t make $1\t- $2"
+endef
+
+help:
+ @echo 'Available Makefile targets are:'
+ $(call HELP_PREFIX,build,build LinuxKernel/musl/BusyBox)
+ $(call HELP_PREFIX,image,create initramfs cpio archive)
+ $(call HELP_PREFIX,image-rebuild,force recreation of rootfs)
+ $(call HELP_PREFIX,image-reinstall,force reinstallation of LinuxKernel/musl/BusyBox into rootfs)
+ $(call HELP_PREFIX,image-repack,force initramfs cpio archive recreation)
+ $(call HELP_PREFIX,qemu,testing your kernel/initramfs combination with QEMU)
+ $(call HELP_PREFIX,qemu-console,testing your kernel/initramfs combination with [n]curses QEMU)
+ $(call HELP_PREFIX,qemu-net,testing your kernel/initramfs combination with QEMU and network support through TAP)
+ @echo "\t\tAdditional options: NET_BRIDGE, NET_IP4"
diff --git a/README b/README
index aed4b9b..7e9f8ee 100644
--- a/README
+++ b/README
@@ -1,7 +1,8 @@
Mini Linux
++++++++++
-Developed for fast testing Linux Kernel/Module code modifications.
-
+What? Mainline/Stable Linux Kernel + musl + BusyBox
+Why? Fast testing Linux Kernel/Module code modifications.
+How? see `make help`
Inspired by: https://gist.github.com/chrisdone/02e165a0004be33734ac2334f215380e