feat(misc): created recompile script

- For faster recompilation
This commit is contained in:
minhtrannhat 2025-03-01 02:48:43 -05:00
parent 8654300ef4
commit 1ed0d7a2e9
Signed by: minhtrannhat
GPG Key ID: E13CFA85C53F8062

23
recompile.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
set -e
# Configure the build.
cd ~/os161/src
./configure --ostree=$HOME/os161/root
# Build userland.
bmake -j 10
bmake install
# Configure a kernel.
cd kern/conf
./config DUMBVM
# Compile and install the kernel
cd ~/os161/src/kern/compile/DUMBVM
bmake depend -j 10
bmake -j 10
bmake install
echo "Kernel + Userland baked fresh ! :)"