Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patricio Latini
openairinterface5G
Commits
ee57ae65
Commit
ee57ae65
authored
9 months ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
doc/cross-compile.md: update some text, compile with ninja
parent
199f8c21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake_targets/cross-arm.cmake
+2
-2
2 additions, 2 deletions
cmake_targets/cross-arm.cmake
doc/cross-compile.md
+9
-5
9 additions, 5 deletions
doc/cross-compile.md
with
11 additions
and
7 deletions
cmake_targets/cross-arm.cmake
+
2
−
2
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)
...
...
This diff is collapsed.
Click to expand it.
doc/cross-compile.md
+
9
−
5
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
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment