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
lizhongxiao
OpenXG-RAN
Commits
c25ee6fd
Commit
c25ee6fd
authored
Jun 28, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move symlink creation to radio/transport device to cmake
parent
00e3c5ac
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
19 deletions
+24
-19
cmake_targets/build_oai
cmake_targets/build_oai
+0
-19
radio/AW2SORI/CMakeLists.txt
radio/AW2SORI/CMakeLists.txt
+3
-0
radio/BLADERF/CMakeLists.txt
radio/BLADERF/CMakeLists.txt
+3
-0
radio/ETHERNET/CMakeLists.txt
radio/ETHERNET/CMakeLists.txt
+3
-0
radio/ETHERNET/benetel/4g/CMakeLists.txt
radio/ETHERNET/benetel/4g/CMakeLists.txt
+3
-0
radio/ETHERNET/benetel/5g/CMakeLists.txt
radio/ETHERNET/benetel/5g/CMakeLists.txt
+3
-0
radio/IRIS/CMakeLists.txt
radio/IRIS/CMakeLists.txt
+3
-0
radio/LMSSDR/CMakeLists.txt
radio/LMSSDR/CMakeLists.txt
+3
-0
radio/USRP/CMakeLists.txt
radio/USRP/CMakeLists.txt
+3
-0
No files found.
cmake_targets/build_oai
View file @
c25ee6fd
...
@@ -537,47 +537,28 @@ function main() {
...
@@ -537,47 +537,28 @@ function main() {
# Build RF device and transport protocol libraries #
# Build RF device and transport protocol libraries #
####################################################
####################################################
if
[
"
$HW
"
!=
"None"
]
;
then
if
[
"
$HW
"
!=
"None"
]
;
then
rm
-f
liboai_device.so
if
[
"
$HW
"
==
"OAI_USRP"
]
;
then
if
[
"
$HW
"
==
"OAI_USRP"
]
;
then
compilations
$BUILD_DIR
oai_usrpdevif.txt oai_usrpdevif
compilations
$BUILD_DIR
oai_usrpdevif.txt oai_usrpdevif
ln
-sf
liboai_usrpdevif.so liboai_device.so
echo
"liboai_device.so symlinks to liboai_usrpdevif.so"
elif
[
"
$HW
"
==
"OAI_BLADERF"
]
;
then
elif
[
"
$HW
"
==
"OAI_BLADERF"
]
;
then
compilations
$BUILD_DIR
oai_bladerfdevif.txt oai_bladerfdevif
compilations
$BUILD_DIR
oai_bladerfdevif.txt oai_bladerfdevif
ln
-sf
liboai_bladerfdevif.so liboai_device.so
echo
"liboai_device.so symlinks liboai_bladerfdevif.so"
elif
[
"
$HW
"
==
"OAI_LMSSDR"
]
;
then
elif
[
"
$HW
"
==
"OAI_LMSSDR"
]
;
then
compilations
$BUILD_DIR
oai_lmssdrdevif.txt oai_lmssdrdevif
compilations
$BUILD_DIR
oai_lmssdrdevif.txt oai_lmssdrdevif
ln
-sf
liboai_lmssdrdevif.so liboai_device.so
echo
"liboai_device.so symlinks to liboai_lmssdrdevif.so"
elif
[
"
$HW
"
==
"OAI_IRIS"
]
;
then
elif
[
"
$HW
"
==
"OAI_IRIS"
]
;
then
compilations
$BUILD_DIR
oai_irisdevif.txt oai_irisdevif
compilations
$BUILD_DIR
oai_irisdevif.txt oai_irisdevif
ln
-s
liboai_irisdevif.so liboai_device.so
echo
"liboai_device.so symlinks to liboai_irisdevif.so"
elif
[
"
$HW
"
==
"OAI_AW2SORI"
]
;
then
elif
[
"
$HW
"
==
"OAI_AW2SORI"
]
;
then
compilations
$BUILD_DIR
aw2sori_transpro.txt aw2sori_transpro
compilations
$BUILD_DIR
aw2sori_transpro.txt aw2sori_transpro
ln
-sf
libaw2sori_transpro.so libthirdparty_transpro.so
echo
"libthirdparty_transpro.so symlinks to libaw2sori_transpro.so"
else
else
echo_fatal
"illegal HW option
$HW
"
echo_fatal
"illegal HW option
$HW
"
fi
fi
fi
fi
if
[
"
$TP
"
!=
"None"
]
;
then
if
[
"
$TP
"
!=
"None"
]
;
then
rm
-f
liboai_transpro.so
if
[
"
$TP
"
==
"Ethernet"
]
;
then
if
[
"
$TP
"
==
"Ethernet"
]
;
then
compilations
$BUILD_DIR
oai_eth_transpro.txt oai_eth_transpro
compilations
$BUILD_DIR
oai_eth_transpro.txt oai_eth_transpro
ln
-sf
liboai_eth_transpro.so liboai_transpro.so
echo_info
"liboai_transpro.so symlinks to liboai_eth_transpro.so"
elif
[
"
$TP
"
==
"benetel4g"
]
;
then
elif
[
"
$TP
"
==
"benetel4g"
]
;
then
compilations
$BUILD_DIR
benetel_4g.txt benetel4g
compilations
$BUILD_DIR
benetel_4g.txt benetel4g
ln
-sf
libbenetel_4g.so liboai_transpro.so
echo_info
"liboai_transpro.so symlinks to libbenetel_4g.so"
elif
[
"
$TP
"
==
"benetel5g"
]
;
then
elif
[
"
$TP
"
==
"benetel5g"
]
;
then
compilations
$BUILD_DIR
benetel_5g.txt benetel_5g
compilations
$BUILD_DIR
benetel_5g.txt benetel_5g
ln
-sf
libbenetel_5g.so liboai_transpro.so
echo_info
"liboai_transpro.so symlinks to libbenetel_5g.so"
else
else
echo_fatal
"illegal TP option
$TP
"
echo_fatal
"illegal TP option
$TP
"
fi
fi
...
...
radio/AW2SORI/CMakeLists.txt
View file @
c25ee6fd
...
@@ -11,3 +11,6 @@ add_library(aw2sori_transpro MODULE oaiori.c)
...
@@ -11,3 +11,6 @@ add_library(aw2sori_transpro MODULE oaiori.c)
target_compile_options
(
aw2sori_transpro PRIVATE -shared -fPIC -msse4 -g -ggdb -DLITE_COMPILATION
)
target_compile_options
(
aw2sori_transpro PRIVATE -shared -fPIC -msse4 -g -ggdb -DLITE_COMPILATION
)
target_link_libraries
(
aw2sori_transpro PRIVATE ori oai_eth_transpro
)
target_link_libraries
(
aw2sori_transpro PRIVATE ori oai_eth_transpro
)
set_target_properties
(
aw2sori_transpro PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
aw2sori_transpro PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET aw2sori_transpro POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink libaw2sori_transpro.so libthirdparty_transpro.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
radio/BLADERF/CMakeLists.txt
View file @
c25ee6fd
...
@@ -2,3 +2,6 @@ pkg_check_modules(bladeRF REQUIRED libbladeRF)
...
@@ -2,3 +2,6 @@ pkg_check_modules(bladeRF REQUIRED libbladeRF)
add_library
(
oai_bladerfdevif MODULE bladerf_lib.c
)
add_library
(
oai_bladerfdevif MODULE bladerf_lib.c
)
target_link_libraries
(
oai_bladerfdevif PRIVATE bladeRF
)
target_link_libraries
(
oai_bladerfdevif PRIVATE bladeRF
)
set_target_properties
(
oai_bladerfdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
oai_bladerfdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET oai_bladerfdevif POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink liboai_bladerfdevif.so liboai_device.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
radio/ETHERNET/CMakeLists.txt
View file @
c25ee6fd
...
@@ -5,5 +5,8 @@ add_library(oai_eth_transpro MODULE
...
@@ -5,5 +5,8 @@ add_library(oai_eth_transpro MODULE
)
)
target_include_directories
(
oai_eth_transpro PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
target_include_directories
(
oai_eth_transpro PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
set_target_properties
(
oai_eth_transpro PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
oai_eth_transpro PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET oai_eth_transpro POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink liboai_eth_transpro.so liboai_transpro.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_subdirectory
(
benetel
)
add_subdirectory
(
benetel
)
radio/ETHERNET/benetel/4g/CMakeLists.txt
View file @
c25ee6fd
...
@@ -15,3 +15,6 @@ target_include_directories(benetel_4g PRIVATE ${libdpdk_INCLUDE_DIRS})
...
@@ -15,3 +15,6 @@ target_include_directories(benetel_4g PRIVATE ${libdpdk_INCLUDE_DIRS})
target_link_libraries
(
benetel_4g PRIVATE
${
libdpdk_LIBRARIES
}
)
target_link_libraries
(
benetel_4g PRIVATE
${
libdpdk_LIBRARIES
}
)
target_link_libraries
(
benetel_4g PRIVATE pthread dl rt m numa
)
target_link_libraries
(
benetel_4g PRIVATE pthread dl rt m numa
)
set_target_properties
(
benetel_4g PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
benetel_4g PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET benetel_4g POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink libbenetel_4g.so liboai_transpro.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
radio/ETHERNET/benetel/5g/CMakeLists.txt
View file @
c25ee6fd
...
@@ -14,3 +14,6 @@ target_link_libraries(benetel_5g PRIVATE ${libdpdk_LIBRARIES})
...
@@ -14,3 +14,6 @@ target_link_libraries(benetel_5g PRIVATE ${libdpdk_LIBRARIES})
target_link_libraries
(
benetel_5g PRIVATE pthread dl rt m numa
)
target_link_libraries
(
benetel_5g PRIVATE pthread dl rt m numa
)
set_target_properties
(
benetel_5g PROPERTIES COMPILE_FLAGS
"-fvisibility=hidden -I$ENV{RTE_SDK}/$ENV{RTE_TARGET}/include"
)
set_target_properties
(
benetel_5g PROPERTIES COMPILE_FLAGS
"-fvisibility=hidden -I$ENV{RTE_SDK}/$ENV{RTE_TARGET}/include"
)
set_target_properties
(
benetel_5g PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
benetel_5g PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET benetel_5g POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink libbenetel_5g.so liboai_transpro.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
radio/IRIS/CMakeLists.txt
View file @
c25ee6fd
...
@@ -3,3 +3,6 @@ find_package(SoapySDR REQUIRED)
...
@@ -3,3 +3,6 @@ find_package(SoapySDR REQUIRED)
add_library
(
oai_irisdevif MODULE iris_lib.cpp
)
add_library
(
oai_irisdevif MODULE iris_lib.cpp
)
target_link_libraries
(
oai_irisdevif PRIVATE SoapySDR
)
target_link_libraries
(
oai_irisdevif PRIVATE SoapySDR
)
set_target_properties
(
oai_irisdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
oai_irisdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET oai_irisdevif POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink liboai_irisdevif.so liboai_device.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
radio/LMSSDR/CMakeLists.txt
View file @
c25ee6fd
...
@@ -3,3 +3,6 @@ find_package(LimeSuite REQUIRED)
...
@@ -3,3 +3,6 @@ find_package(LimeSuite REQUIRED)
add_library
(
oai_lmssdrdevif MODULE lms_lib.cpp
)
add_library
(
oai_lmssdrdevif MODULE lms_lib.cpp
)
target_link_libraries
(
oai_lmssdrdevif LimeSuite
)
target_link_libraries
(
oai_lmssdrdevif LimeSuite
)
set_target_properties
(
oai_lmssdrdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
oai_lmssdrdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET oai_lmssdrdevif POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink liboai_lmssdrdevif.so liboai_device.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
radio/USRP/CMakeLists.txt
View file @
c25ee6fd
...
@@ -5,3 +5,6 @@ add_library(oai_usrpdevif MODULE usrp_lib.cpp)
...
@@ -5,3 +5,6 @@ add_library(oai_usrpdevif MODULE usrp_lib.cpp)
#target_include_directories(oai_usrpdevif PRIVATE Boost::boost)
#target_include_directories(oai_usrpdevif PRIVATE Boost::boost)
target_link_libraries
(
oai_usrpdevif uhd
)
target_link_libraries
(
oai_usrpdevif uhd
)
set_target_properties
(
oai_usrpdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_target_properties
(
oai_usrpdevif PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_custom_command
(
TARGET oai_usrpdevif POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink liboai_usrpdevif.so liboai_device.so
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
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