From 7d0fe7e944823470d831cfa267b326f4467b0a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Mon, 23 Oct 2017 22:49:52 +0200 Subject: [PATCH] A script for generating an iso file and running the emulator --- .gitignore | 1 + toolchain/emul | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100755 toolchain/emul diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f59486 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +sysroot/ diff --git a/toolchain/emul b/toolchain/emul new file mode 100755 index 0000000..d468481 --- /dev/null +++ b/toolchain/emul @@ -0,0 +1,18 @@ +#!/bin/sh -e + +if [ -z ${MITTOS64+x} ]; then + echo -en "\033[31mWarning: \033[0m" + echo "It seems you are trying to build mittos64 in an unsuported environment." + echo "This makefile is designed to run inside a mittos64-specific docker container." + echo "If you know what you're doing, define the environment variable "MITTOS64"" + echo "See README.md for more information" + exit 1 +fi + +sysroot=/opt/sysroot +iso=/opt/mittos64.iso + +mkdir -p ${sysroot} + +grub-mkrescue -o ${iso} ${sysroot} +qemu-system-x86_64 -cdrom ${iso} -curses