dotfiles/.bin/OLD/openbsd_kernel.sh
2024-02-14 07:55:58 +01:00

25 lines
394 B
Bash
Executable File

#!/bin/sh
export DEBUG=-g
export DEBUG_FLAGS=-g
if [ $1 = "compile" ]; then
cd /usr/src/sys/arch/amd64/conf
if [ ! -f MYKERNEL ]; then
cp GENERIC.MP MYKERNEL
fi
\config MYKERNEL
cd /sys/arch/amd64/compile/MYKERNEL
make
fi
if [ $1 = "install" ]; then
cd /sys/arch/amd64/compile/MYKERNEL
make install
fi
if [ $1 = "clean" ]; then
cd /sys/arch/amd64/compile/MYKERNEL
make clean
fi