From 8eb30202e680d3587b2e56f6e00b50e3964cf367 Mon Sep 17 00:00:00 2001 From: Cristiano Giuffrida Date: Wed, 18 Jun 2014 13:57:16 +0200 Subject: [PATCH] llvm: Add the serverctl script. --- minix/llvm/serverctl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 minix/llvm/serverctl diff --git a/minix/llvm/serverctl b/minix/llvm/serverctl new file mode 100755 index 000000000..062c7c84b --- /dev/null +++ b/minix/llvm/serverctl @@ -0,0 +1,20 @@ +#!/bin/bash + +mode=$1 +shift || mode="no_action" + +ROOT=../.. +IMAGE=$( readlink -f $ROOT/minix_x86.img) + +case "$mode" in + 'buildimage') + (cd $ROOT && CREATE_IMAGE_ONLY=1 releasetools/x86_hdimage.sh) + ;; + 'start') + (cd ../../../obj.i386/destdir.i386/multiboot && kvm -nographic -kernel kernel -append "console=tty00 rootdevname=c0d0p1" -initrd "mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,mod07_tty,mod08_mfs,mod09_vm,mod10_pfs,mod11_init" -hda $IMAGE) + ;; + *) + echo "Invalid action: $mode" + exit 1 + ;; +esac -- 2.44.0