-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_gdev_lib_arch64.sh
More file actions
executable file
·42 lines (34 loc) · 1005 Bytes
/
build_gdev_lib_arch64.sh
File metadata and controls
executable file
·42 lines (34 loc) · 1005 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
#!/bin/bash
#
# deprecated: use buildroot gdev-guest package package to build
# this builds gdev and cuda without runtime api
#
set -euo pipefail
CUR_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $CUR_DIR/../../../scripts/env-aarch64.sh
SRC=$CUR_DIR/lib/kernel/
set -x
cd $SRC
make clean
make all
ls -al
ln -s libgdev.so.1.0.0 libgdev.so || true
ln -s libgdev.so.1.0.0 libgdev.so.1 || true
ln -s --relative . lib64 || true
# copies assets to snapshot dir
mkdir -p $ASSETS_DIR/snapshots/aarch64-lib || true
cp -rf $SRC/*so* $ASSETS_DIR/snapshots/aarch64-lib || true
ls -al $ASSETS_DIR/snapshots/aarch64-lib || true
SRC_CUDA=$CUR_DIR/cuda
cd $SRC_CUDA
rm -rf build
mkdir build
cd build
../configure
../../common/autogen.sh
make GDEVDIR=$SRC
ln -s libucuda.so.1.0.0 libucuda.so || true
ln -s libucuda.so.1.0.0 libucuda.so.1 || true
# copies assets to snapshot dir
cp -rf *so* $ASSETS_DIR/snapshots/aarch64-lib || true
ls -al $ASSETS_DIR/snapshots/aarch64-lib || true