Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
ee57ae65
Commit
ee57ae65
authored
May 28, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/cross-compile.md: update some text, compile with ninja
parent
199f8c21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
cmake_targets/cross-arm.cmake
cmake_targets/cross-arm.cmake
+2
-2
doc/cross-compile.md
doc/cross-compile.md
+9
-5
No files found.
cmake_targets/cross-arm.cmake
View file @
ee57ae65
set
(
CMAKE_SYSTEM_NAME Linux
)
set
(
CMAKE_SYSTEM_PROCESSOR arm
)
set
(
CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc-
9
)
set
(
CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++-
9
)
set
(
CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc-
11
)
set
(
CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++-
11
)
set
(
CROSS_COMPILE 1
)
set
(
bnProc_gen_128_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
NATIVE_DIR
}
)
# /../build)
...
...
doc/cross-compile.md
View file @
ee57ae65
...
...
@@ -46,11 +46,15 @@ sudo apt-get install -y \
zlib1g-dev:arm64
```
The above enables apt to download packages for arm64. It also installs
gcc cross-compilers for aarch64 in version 11. This version needs to match the
versions of gcc defined in the cmake cross-compilation file (
`cross-arm.cmake`
).
## Install and Build
### Install required packages
Use the host compiler to install
some
dependencies.
Use the host compiler to install
its
dependencies.
```
shell
cd
cmake_targets
...
...
@@ -85,9 +89,9 @@ be defined in order to tell cmake where the host tools have been built.
```
shell
cd
../build-cross
cmake ../../..
-DCMAKE_TOOLCHAIN_FILE
=
../../../cmake_targets/cross-arm.cmake
-DNATIVE_DIR
=
../build
cmake ../../..
-
GNinja
-
DCMAKE_TOOLCHAIN_FILE
=
../../../cmake_targets/cross-arm.cmake
-DNATIVE_DIR
=
../build
make
-j
`
nproc
`
dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim
make
-j
`
nproc
`
lte-softmodem nr-softmodem nr-cuup oairu lte-uesoftmodem nr-uesoftmodem
make
-j
`
nproc
`
params_libconfig coding rfsimulator
ninja
-j
`
nproc
`
dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim
ninja
-j
`
nproc
`
lte-softmodem nr-softmodem nr-cuup oairu lte-uesoftmodem nr-uesoftmodem
ninja
-j
`
nproc
`
params_libconfig coding rfsimulator
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment