-
Notifications
You must be signed in to change notification settings - Fork 0
/
rockcraft.yaml
93 lines (88 loc) · 3.07 KB
/
rockcraft.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: oai-ran-du
base: [email protected]
version: '2.1.1'
summary: OAI RAN DU ROCK
license: Apache-2.0
description: Container image for the OAI RAN Distributed Unit (DU).
platforms:
amd64:
environment:
DEBIAN_FRONTEND: noninteractive
LD_LIBRARY_PATH: "/usr/lib/x86_64-linux-gnu:/usr/local/lib"
OAI_GDBSTACKS: "1"
TZ: UTC
parts:
du:
plugin: nil
source: https://gitlab.eurecom.fr/oai/openairinterface5g.git
source-type: git
source-commit: ec06c78b30ac1a0caf8c33a9e55348008134b642
build-environment:
- BUILD_UHD_FROM_SOURCE: "True"
- UHD_VERSION: "4.7.0.0"
overlay-packages:
- gdb
- libconfig9
- libsctp1
- libusb-1.0-0
build-packages:
- ca-certificates
- g++-12
- gcc-12
- openssl
override-build: |
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 --slave /usr/bin/g++ g++ /usr/bin/g++-12
/bin/sh oaienv
cd cmake_targets && mkdir -p log
./build_oai -I -w USRP --install-optional-packages
./build_oai -c --ninja \
--gNB \
--build-lib "telnetsrv enbscope uescope nrscope" \
-w USRP -t Ethernet \
--build-e2 --cmake-opt -DXAPP_MULTILANGUAGE=OFF \
--noavx512 \
--cmake-opt -DCMAKE_C_FLAGS="-Werror" --cmake-opt -DCMAKE_CXX_FLAGS="-Werror"
/usr/local/lib/uhd/utils/uhd_images_downloader.py -t b2xx
/usr/local/lib/uhd/utils/uhd_images_downloader.py -t x3xx
cp -r ran_build/build $CRAFT_PART_INSTALL
cp /usr/local/bin/uhd_find_devices $CRAFT_PART_INSTALL
cp /usr/local/lib/libuhd.so.4.7.0 $CRAFT_PART_INSTALL
cp -r /usr/local/share/uhd $CRAFT_PART_INSTALL
organize:
build/liboai_device.so: usr/local/lib/liboai_device.so
build/liboai_eth_transpro.so: usr/local/lib/liboai_eth_transpro.so
build/librfsimulator.so: usr/local/lib/librfsimulator.so
build/liboai_usrpdevif.so: usr/local/lib/liboai_usrpdevif.so
build/libcoding.so: usr/local/lib/libcoding.so
build/libparams_libconfig.so: usr/local/lib/libparams_libconfig.so
build/libdfts.so: usr/local/lib/libdfts.so
build/libldpc.so: usr/local/lib/libldpc.so
build/libldpc_optim.so: usr/local/lib/libldpc_optim.so
build/libldpc_optim8seg.so: usr/local/lib/libldpc_optim8seg.so
build/libldpc_orig.so: usr/local/lib/libldpc_orig.so
build/libtelnetsrv.so: usr/local/lib/libtelnetsrv.so
build/libtelnetsrv_ci.so: usr/local/lib/libtelnetsrv_ci.so
uhd/*: usr/local/share/uhd/
libuhd.so.4.7.0: usr/local/lib/libuhd.so.4.7.0
uhd_find_devices: usr/local/bin/uhd_find_devices
build/nr-softmodem: opt/oai-gnb/bin/nr-softmodem
stage:
- usr/local/bin/uhd_find_devices
- usr/local/lib/*
- usr/local/share/uhd/*
- opt/oai-gnb/bin/*
tools:
after:
- du
plugin: nil
stage-packages:
- iperf
- iperf3
- iproute2
- iputils-ping
- net-tools
- libboost-program-options1.83.0
- libboost-chrono1.83.0
- libboost-filesystem1.83.0
- libboost-serialization1.83.0
- libboost-thread1.83.0