20 lines
349 B
Bash
Executable File
20 lines
349 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
BUILD_DIR="${DIR}/../builddbg"
|
|
|
|
bash ${DIR}/build.sh
|
|
sudo sh ${DIR}/build_image.sh ${BUILD_DIR}/disk.img
|
|
|
|
BOCHS_ARGS=
|
|
if [[ $1 == "debug" ]]; then
|
|
BOCHS_ARGS+="--dbg"
|
|
fi
|
|
|
|
# TODO Make this portable, build bochs as a part of toolchain?
|
|
~/opt/bochs/bin/bochs $BOCHS_ARGS -q
|
|
|