-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·47 lines (42 loc) · 766 Bytes
/
build.sh
File metadata and controls
executable file
·47 lines (42 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
#rm -rf PSXLinux
#tar -xvf PSXLinux-kernel-2.4.x-beta1.tar.gz
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
cd $SCRIPT_DIR
function build {
cd linux
make mrproper
cp Config .config
make dep
make menuconfig
make 2>&1 | tee ../build.log
cd ..
tools/elf2psx/elf2psx -p linux/linux bin/kernel.exe
}
function delete {
rm bin/kernel.exe
cd linux
make mrproper
exit
}
function run {
exec wine ./tools/no\$psx/NO\$PSX.EXE bin/kernel.exe
}
#----------------------------------------------------------------------
#process commandline arguments
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-d|-delete|-deleteall)
delete
shift; # past argument and value
;;-r|-run)
run
exit
shift; # past argument and value
;;
esac
done
build
run