aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-04-24 23:52:41 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-04-24 23:52:41 +0300
commit9bf5719d4c59993c07113c089ebd5a92d692f785 (patch)
tree7310918ccac5bb3cfffc18861c286a6872554c01 /build.sh
parent2ca6677667af23ecb1e17479c5b5cc08efa53309 (diff)
skeleton done
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/build.sh b/build.sh
deleted file mode 100755
index f285004..0000000
--- a/build.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-set -e
-
-cd ${0%/*} # go to project root
-
-KERNEL="bin/kernel-$(uname -r)"
-INITRAMFS="bin/initramfs"
-
-mkdir -p bin
-
-# get the kernel
-sudo cp /boot/vmlinuz-linux-lts "$KERNEL"
-
-# initramfs directory
-rm -rf $INITRAMFS
-mkdir -p $INITRAMFS
-
-# copy the init file
-cp src/init $INITRAMFS
-chmod +x $INITRAMFS/init
-
-# get the busybox things
-install -D $(which busybox) $INITRAMFS/bin/busybox
-ln -sf busybox $INITRAMFS/bin/sh
-
-# make the image
-(cd $INITRAMFS; find . | cpio -H newc -o | gzip > ../initramfs.img )
-
-qemu-system-x86_64 \
- -kernel "$KERNEL" \
- -initrd "$INITRAMFS.img" \
- -append "console=ttyS0" -nographic