-
Notifications
You must be signed in to change notification settings - Fork 0
/
rockcraft.yaml
92 lines (87 loc) · 3.01 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
name: oai-ran-nr-ue
base: [email protected]
version: '2.1.1'
summary: OAI RAN NR UE ROCK
license: Apache-2.0
description: Container image for the OAI RAN New Radio (5G) UE (User Equipment).
platforms:
amd64:
environment:
DEBIAN_FRONTEND: noninteractive
LD_LIBRARY_PATH: "/usr/lib/x86_64-linux-gnu:/usr/local/lib"
OAI_GDBSTACKS: "1"
TZ: UTC
parts:
ue:
plugin: nil
source: https://gitlab.eurecom.fr/oai/openairinterface5g.git
source-type: git
source-branch: develop
build-environment:
- BUILD_UHD_FROM_SOURCE: "True"
- UHD_VERSION: "4.4.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 \
--nrUE \
--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
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.4.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.4.0: usr/local/lib/libuhd.so.4.4.0
uhd_find_devices: usr/local/bin/uhd_find_devices
build/nr-uesoftmodem: opt/oai-nr-ue/bin/nr-uesoftmodem
stage:
- usr/local/bin/uhd_find_devices
- usr/local/lib/*
- usr/local/share/uhd/*
- opt/oai-nr-ue/bin/*
tools:
after:
- ue
plugin: nil
stage-packages:
- iperf
- iperf3
- iproute2
- iputils-ping
- net-tools
- libboost-program-options1.74.0
- libboost-chrono1.74.0
- libboost-filesystem1.74.0
- libboost-serialization1.74.0
- libboost-thread1.74.0