2023-02-21 13:36:20 +00:00
|
|
|
#!/bin/bash
|
2023-02-23 22:54:02 +00:00
|
|
|
PROC=$$
|
2023-02-21 13:36:20 +00:00
|
|
|
|
2023-02-23 22:54:02 +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!"
|
2023-02-23 22:54:02 +00:00
|
|
|
kill -10 $PROC
|
|
|
|
fi)
|
2023-02-21 13:36:20 +00:00
|
|
|
|
2023-02-23 22:54:02 +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!"
|
2023-02-23 22:54:02 +00:00
|
|
|
kill -10 $PROC
|
|
|
|
fi)
|
2023-02-21 13:36:20 +00:00
|
|
|
|
|
|
|
./scripts/update_harddrive.sh
|
2023-10-27 16:03:45 +00:00
|
|
|
./scripts/create_symbol_lookup.sh
|
2023-02-23 22:54:02 +00:00
|
|
|
|
2023-09-11 21:21:43 +00:00
|
|
|
args="";
|
|
|
|
if [[ $1 == "-d" ]]
|
|
|
|
then
|
|
|
|
args="debug"
|
|
|
|
fi
|
|
|
|
./scripts/run_qemu.sh $args
|