-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·58 lines (49 loc) · 1.08 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
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
rm -rf build-blake
rm -rf build-kyber
rm -rf build-dilithium
mkdir -p build-blake
cd build-blake
cmake ../modules/blake3
make -j`nproc`
cd ..
rm -rf build-kyber/arm
mkdir -p build-kyber/arm
cd modules/kyber/arm
./build.sh -b=64
cd ../../..
mv modules/kyber/arm/build build-kyber/arm/build64
cd modules/kyber/arm
./build.sh -b=32
cd ../../..
mv modules/kyber/arm/build build-kyber/arm/build32
mkdir -p build-kyber/jni
cd build-kyber/jni
cmake ../../modules/kyber/jni
make -j`nproc`
cd ../../
mkdir -p build-kyber/py
cd build-kyber/py
cmake ../../modules/kyber/py
make -j`nproc`
cd ../../
rm -rf build-dilithium/arm
mkdir -p build-dilithium/arm
cd modules/dilithium/arm
./build.sh -b=64
cd ../../..
mv modules/dilithium/arm/build build-dilithium/arm/build64
cd modules/dilithium/arm
./build.sh -b=32
cd ../../..
mv modules/dilithium/arm/build build-dilithium/arm/build32
mkdir -p build-dilithium/jni
cd build-dilithium/jni
cmake ../../modules/dilithium/jni
make -j`nproc`
cd ../../
mkdir -p build-dilithium/py
cd build-dilithium/py
cmake ../../modules/dilithium/py
make -j`nproc`
cd ../../