[TOOLCHAIN] Setup for emulation

This commit is contained in:
thomas committed 2017-03-27 23:09:05 +02:00
1 parent 94999611d4
commit 1f8d5b3482
8 files changed
+165 -1

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -e
. util/helpers.sh
function fail() {
print_error "Something went wrong"
die "Building boot iso failed"
}
SYSROOT=${SYSROOT-${BUILDROOT}/sysroot}
function collect() {
print_info "Collecting sysroot"
mkdir -p ${SYSROOT}
# Grub menu configuration
mkdir -p ${SYSROOT}/boot/grub
cp ${BUILDROOT}/util/grub.cfg ${SYSROOT}/boot/grub/grub.cfg
}
function mkimage() {
print_info "Making boot disk"
grub-mkrescue -o ${BUILDROOT}/mittos64.iso ${SYSROOT}
}
collect
mkimage
+6
View File
@@ -0,0 +1,6 @@
set timeout=0
set default=0
menuentry "mittos64" {
}