diff options
author | 2023-11-21 22:27:40 +0100 | |
---|---|---|
committer | 2023-11-21 22:29:39 +0100 | |
commit | dc9b0f067bd0b2bd5637841253e0b115c6aa8646 (patch) | |
tree | 8d6869427ab1a9cd2835797ef60d7d8a94819b13 /Makefile | |
download | alex-dc9b0f067bd0b2bd5637841253e0b115c6aa8646.tar.gz alex-dc9b0f067bd0b2bd5637841253e0b115c6aa8646.zip |
Initial commit
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 |