From: Cristiano Giuffrida Date: Wed, 18 Jun 2014 11:57:16 +0000 (+0200) Subject: llvm: Add the serverctl script. X-Git-Tag: v3.3.0~151 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=8eb30202e680d3587b2e56f6e00b50e3964cf367;p=minix.git llvm: Add the serverctl script. --- 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