Updating Build scripts

This commit is contained in:
2023-09-11 23:21:43 +02:00
parent 5781f730d9
commit e8df6ec628
3 changed files with 20 additions and 13 deletions

21
run.sh
View File

@ -3,23 +3,24 @@ PROC=$$
# Build the Corelib static library
(cd CoreLib
if ! make; then
echo "Build failed!"
if ! make 2> warnings.log 1> /dev/null ; then
echo "Build Corelib failed!"
kill -10 $PROC
fi)
# Build the kernel image
(cd kernel
make clean
make
if ! make; then
echo "Build failed!"
# make clean
if ! make 2> warnings.log 1> /dev/null ; then
echo "Build kernel failed!"
kill -10 $PROC
fi)
./scripts/update_harddrive.sh
./scripts/run_qemu.sh
args="";
if [[ $1 == "-d" ]]
then
args="debug"
fi
./scripts/run_qemu.sh $args