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
zzha zzha
OpenXG-RAN
Commits
feeb017e
Commit
feeb017e
authored
Nov 28, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate and build LPP ASN.1 during build time
parent
21a252a2
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1334 additions
and
24 deletions
+1334
-24
CMakeLists.txt
CMakeLists.txt
+1
-24
openair3/CMakeLists.txt
openair3/CMakeLists.txt
+1
-0
openair3/LPP/CMakeLists.txt
openair3/LPP/CMakeLists.txt
+1
-0
openair3/LPP/MESSAGES/ASN1/37355-g60.asn
openair3/LPP/MESSAGES/ASN1/37355-g60.asn
+0
-0
openair3/LPP/MESSAGES/ASN1/37355-g60.cmake
openair3/LPP/MESSAGES/ASN1/37355-g60.cmake
+1311
-0
openair3/LPP/MESSAGES/CMakeLists.txt
openair3/LPP/MESSAGES/CMakeLists.txt
+20
-0
No files found.
CMakeLists.txt
View file @
feeb017e
...
...
@@ -524,34 +524,11 @@ target_include_directories(f1ap PUBLIC F1AP_DIR)
target_link_libraries
(
f1ap PUBLIC asn1_f1ap
)
target_link_libraries
(
f1ap PRIVATE ngap nr_rrc
)
# LPP
##############
set
(
LPP_DIR
${
OPENAIR3_DIR
}
/LPP
)
set
(
LPP_ASN_DIR
${
LPP_DIR
}
/MESSAGES
)
set
(
LPP_ASN_FILES
${
LPP_ASN_DIR
}
/37355-g60.asn
)
set
(
LPP_ASN_GENERATED_C_DIR
${
asn1_generated_dir
}
/LPP
)
set
(
lpp_cmd
${
OPENAIR_CMAKE
}
/tools/make_asn1c_includes.sh
"LPP_"
"-findirect-choice -fno-include-deps"
"
${
LPP_ASN_GENERATED_C_DIR
}
"
)
# target asn1_lpp in openair3/LPP/MESSAGES/CMakeLists.txt used below
compile_asn1
(
"
${
LPP_ASN_FILES
}
"
"
${
lpp_cmd
}
"
lpp_flag
)
file
(
GLOB LPP_ASN_GENERATED_C_FILES
${
LPP_ASN_GENERATED_C_DIR
}
/*.c
)
add_library
(
LPP_LIB
${
LPP_ASN_GENERATED_C_FILES
}
)
add_dependencies
(
LPP_LIB lpp_flag
)
target_link_libraries
(
LPP_LIB PRIVATE asn1_nr_rrc asn1_lte_rrc
)
include_directories
(
"
${
LPP_ASN_GENERATED_C_DIR
}
"
)
include_directories
(
"
${
LPP_DIR
}
"
)
#file(GLOB LPP_C_FILES ${LPP_DIR}/*.c)
#add_library(LPP ${LPP_C_FILES} )
# Hardware dependant options
###################################
add_list1_option
(
NB_ANTENNAS_RX
"4"
"Number of antennas in reception"
"1"
"2"
"4"
)
...
...
openair3/CMakeLists.txt
View file @
feeb017e
add_subdirectory
(
LPP
)
add_subdirectory
(
M3AP
)
add_subdirectory
(
S1AP
)
add_subdirectory
(
NGAP
)
openair3/LPP/CMakeLists.txt
0 → 100644
View file @
feeb017e
add_subdirectory
(
MESSAGES
)
openair3/LPP/MESSAGES/37355-g60.asn
→
openair3/LPP/MESSAGES/
ASN1/
37355-g60.asn
View file @
feeb017e
File moved
openair3/LPP/MESSAGES/ASN1/37355-g60.cmake
0 → 100644
View file @
feeb017e
This diff is collapsed.
Click to expand it.
openair3/LPP/MESSAGES/CMakeLists.txt
0 → 100644
View file @
feeb017e
#set(LPP_VERSION 16 78 0)
#make_version(LPP_cc ${LPP_VERSION})
#add_definitions(-DLPP_VERSION=${LPP_cc})
#string(REPLACE ";" "." LPP_RELEASE "${LPP_VERSION}")
#if(LPP_RELEASE VERSION_EQUAL "16.78.0")
include
(
ASN1/37355-g60.cmake
)
#else()
# message(FATAL_ERROR "unknown LPP_RELEASE ${LPP_RELEASE}")
#endif()
add_custom_command
(
OUTPUT
${
lpp_source
}
${
lpp_headers
}
COMMAND ASN1C_PREFIX=LPP_ asn1c -gen-PER -no-gen-OER -fcompound-names -no-gen-example -findirect-choice -fno-include-deps -D
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
LPP_GRAMMAR
}
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
LPP_GRAMMAR
}
COMMENT
"Generating LPP source files from
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
LPP_GRAMMAR
}
"
)
add_library
(
asn1_lpp
${
lpp_source
}
)
target_include_directories
(
asn1_lpp PUBLIC
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
target_compile_options
(
asn1_lpp PRIVATE -DASN_DISABLE_OER_SUPPORT -w
)
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