BarinkOS/run.sh

28 lines
463 B
Bash
Raw Permalink Normal View History

2023-02-21 13:36:20 +00:00
#!/bin/bash
PROC=$$
2023-02-21 13:36:20 +00:00
# Build the Corelib static library
(cd CoreLib
2023-09-11 21:21:43 +00:00
if ! make 2> warnings.log 1> /dev/null ; then
echo "Build Corelib failed!"
kill -10 $PROC
fi)
2023-02-21 13:36:20 +00:00
# Build the kernel image
(cd kernel
2023-09-11 21:21:43 +00:00
# make clean
if ! make 2> warnings.log 1> /dev/null ; then
echo "Build kernel failed!"
kill -10 $PROC
fi)
2023-02-21 13:36:20 +00:00
./scripts/update_harddrive.sh
./scripts/create_symbol_lookup.sh
2023-09-11 21:21:43 +00:00
args="";
if [[ $1 == "-d" ]]
then
args="debug"
fi
./scripts/run_qemu.sh $args