diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ddf7c36 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +KERNEL_VERSION = 5.11.6 +BUSYBOX_VERSION = 1.33.0 +SYSLINUX_VERSION = 6.03 + +all: busybox linux initrd + +initrd: + @mkdir -p $@ + @cp -R busybox-${BUSYBOX_VERSION}/_install/* initrd/ + @rm initrd/linuxrc + @mkdir initrd/dev initrd/proc initrd/sys + @echo '#!/bin/sh' > initrd/init + @echo 'dmesg -n 1' >> initrd/init + @echo 'mount -t devtmpfs none /dev' >> initrd/init + @echo 'mount -t proc none /proc' >> initrd/init + @echo 'mount -t sysfs none /sys' >> initrd/init + @echo 'setsid cttyhack /bin/sh' >> initrd/init + @chmod +x initrd/init + @cd initrd && find . | cpio -R root:root -H newc -o | gzip > ../rootfs.gz + @echo initrd: creation is completed. + +clean: + rm -rf busybox* kernel* linux* live* *.iso syslinux* initrd* rootfs.gz + +include Makefile.busybox +include Makefile.linux +include Makefile.syslinux |