-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·44 lines (37 loc) · 1.07 KB
/
build.sh
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
#!/bin/sh
set -e
if [ -d build ]; then
rm -r build
fi
mkdir build
cp -aRv target build/
cd crts
make
DESTDIR=../build make install
cd ..
build_library () {
cd "$1"
make -j1 clean WF_TARGET_DIR=../build/target/"$2" TARGET="$2"
make WF_TARGET_DIR=../build/target/"$2" TARGET="$2"
make -j1 install WF_TARGET_DIR=../build/target/"$2" TARGET="$2"
cd ..
}
for i in wswan/bootfriend wswan/small wswan/medium wswan/small-sram wswan/medium-sram wwitch; do
build_library libc $i
done
for i in wswan/bootfriend wswan/small wswan/medium wswan/small-sram wswan/medium-sram wwitch; do
build_library libws $i
done
for i in wwitch; do
cd libww/library/gcc
make -j1 clean WF_TARGET_DIR=../../../build/target/wwitch TARGET=wwitch
make WF_TARGET_DIR=../../../build/target/wwitch TARGET=wwitch
make -j1 install WF_TARGET_DIR=../../../build/target/wwitch TARGET=wwitch
cd ../../..
done
for i in wswan/bootfriend wswan/small wswan/medium; do
build_library libwwcl $i
done
for i in wswan/bootfriend wswan/small wswan/medium wswan/small-sram wswan/medium-sram wwitch; do
build_library libwsx $i
done