Applied patch for aper asn1c - Compile with flag --pdcp-split
This commit is contained in:
@@ -487,19 +487,19 @@ include_directories ("${X2AP_DIR}")
|
||||
# Same limitation as described in RRC/S1AP: unknown generated file list
|
||||
# so we generate it at cmake time
|
||||
##############
|
||||
add_list1_option(F1AP_VERSION R15 "F1AP Asn.1 grammar version" R14 R15)
|
||||
add_list1_option(F1AP_VERSION R15 "F1AP Asn.1 grammar version" R15)
|
||||
set(F1AP_DIR ${OPENAIR2_DIR}/F1AP)
|
||||
#if (${F1AP_VERSION} STREQUAL "R14")
|
||||
#if (${F1AP_VERSION} STREQUAL "R15")
|
||||
set (ASN1RELDIR R15)
|
||||
#endif(${F1AP_VERSION} STREQUAL "R14")
|
||||
#endif(${F1AP_VERSION} STREQUAL "R15")
|
||||
set(F1AP_ASN_DIR ${F1AP_DIR}/MESSAGES/ASN1/${ASN1RELDIR})
|
||||
set(F1AP_ASN_FILES
|
||||
${F1AP_ASN_DIR}/38.473.Common-Definitions.asn
|
||||
${F1AP_ASN_DIR}/38.473.Constant-Definitions.asn
|
||||
${F1AP_ASN_DIR}/38.473.Information-Element-Definitions.asn
|
||||
${F1AP_ASN_DIR}/38.473.PDU-Definitions.asn
|
||||
${F1AP_ASN_DIR}/38.473.Elementary-Procedures.asn
|
||||
${F1AP_ASN_DIR}/38.473.Container-Definitions.asn
|
||||
${F1AP_ASN_DIR}/F1AP-CommonDataTypes.asn
|
||||
${F1AP_ASN_DIR}/F1AP-Constants.asn
|
||||
${F1AP_ASN_DIR}/F1AP-PDU-Descriptions.asn
|
||||
${F1AP_ASN_DIR}/F1AP-PDU-Contents.asn
|
||||
${F1AP_ASN_DIR}/F1AP-IEs.asn
|
||||
${F1AP_ASN_DIR}/F1AP-Containers.asn
|
||||
)
|
||||
|
||||
set(F1AP_C_DIR ${asn1_generated_dir}/${ASN1RELDIR})
|
||||
@@ -508,7 +508,7 @@ execute_process(COMMAND ${asn1c_call} ${F1AP_C_DIR} ${F1AP_ASN_FILES}
|
||||
if (NOT ${ret} STREQUAL 0)
|
||||
message(FATAL_ERROR "${asn1c_call}: error")
|
||||
endif (NOT ${ret} STREQUAL 0)
|
||||
execute_process(COMMAND python ${F1AP_DIR}/MESSAGES/ASN1/asn1tostruct.py -f ${F1AP_ASN_DIR}/38.473.PDU-Definitions.asn -o ${F1AP_C_DIR}
|
||||
execute_process(COMMAND python ${F1AP_DIR}/MESSAGES/ASN1/asn1tostruct.py -f ${F1AP_ASN_DIR}/F1AP-PDU-Contents.asn -o ${F1AP_C_DIR}
|
||||
RESULT_VARIABLE ret)
|
||||
if (NOT ${ret} STREQUAL 0)
|
||||
message(FATAL_ERROR "asn1tostruct.py: error")
|
||||
@@ -533,7 +533,7 @@ set(f1ap_h ${f1ap_h} )
|
||||
#add_custom_command (
|
||||
# OUTPUT ${F1AP_OAI_generated}
|
||||
# COMMAND ${asn1c_call} ${F1AP_C_DIR} ${F1AP_ASN_FILES}
|
||||
# COMMAND python ${F1AP_DIR}/MESSAGES/ASN1/asn1tostruct.py -f ${F1AP_ASN_DIR}/38.473.PDU-Definitions.asn -o ${F1AP_C_DIR}
|
||||
# COMMAND python ${F1AP_DIR}/MESSAGES/ASN1/asn1tostruct.py -f ${F1AP_ASN_DIR}/F1AP-PDU-Contents.asn -o ${F1AP_C_DIR}
|
||||
# COMMAND ${fix_asn1c_call} ${F1AP_C_DIR} F1AP ${F1AP_VERSION}
|
||||
# DEPENDS ${F1AP_ASN_FILES}
|
||||
# )
|
||||
|
||||
@@ -661,7 +661,7 @@ install_asn1c_from_source(){
|
||||
$SUDO rm -rf /tmp/asn1c
|
||||
GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
|
||||
cd /tmp/asn1c
|
||||
git checkout master
|
||||
git checkout master.aper
|
||||
git pull
|
||||
test -f configure || autoreconf -iv
|
||||
./configure
|
||||
|
||||
@@ -23,7 +23,7 @@ reset_color="$(tput sgr0)"
|
||||
function error()
|
||||
{
|
||||
echo -e "$red_color"ERROR: "$@""$reset_color"
|
||||
#exit 1
|
||||
# exit 1
|
||||
}
|
||||
|
||||
function check_sha1()
|
||||
@@ -56,11 +56,11 @@ function patch_file()
|
||||
|
||||
echo -e "$green_color""patch file $file with $OPENAIR_DIR/cmake_targets/tools/$patch""$reset_color"
|
||||
|
||||
patch "$file" "$OPENAIR_DIR/cmake_targets/tools/$patch"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
error "patching of $file with $OPENAIR_DIR/cmake_targets/tools/$patch failed"
|
||||
fi
|
||||
# patch "$file" "$OPENAIR_DIR/cmake_targets/tools/$patch"
|
||||
# if [ $? -ne 0 ]
|
||||
# then
|
||||
# error "patching of $file with $OPENAIR_DIR/cmake_targets/tools/$patch failed"
|
||||
# fi
|
||||
}
|
||||
|
||||
function apply_patches()
|
||||
|
||||
@@ -99,7 +99,7 @@ echo done with asnfix
|
||||
|
||||
echo running asn1c
|
||||
|
||||
asn1c -gen-PER -fcompound-names fixed_grammar.asn 2>&1 | grep -v -- '->' | grep -v '^Compiled' |grep -v sample
|
||||
asn1c -gen-PER -fcompound-names -no-gen-example fixed_grammar.asn 2>&1 | grep -v -- '->' | grep -v '^Compiled' |grep -v sample
|
||||
|
||||
rm -f fixed_grammar.asn
|
||||
|
||||
@@ -107,7 +107,7 @@ echo asn1c done
|
||||
|
||||
else
|
||||
|
||||
asn1c -gen-PER -fcompound-names $* 2>&1 | grep -v -- '->' | grep -v '^Compiled' |grep -v sample
|
||||
asn1c -gen-PER -fcompound-names -no-gen-example $* 2>&1 | grep -v -- '->' | grep -v '^Compiled' |grep -v sample
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user