asn1c: use better version of asn1c

We don't work much on asn1c. The version we use has several bugs.
There is an active community out there that fixes bugs and improves
asn1c. Let's use their version.
This commit is contained in:
Cedric Roux
2023-06-01 18:26:00 +02:00
parent 0e64165093
commit c0c3a737ed
50 changed files with 1063 additions and 2906 deletions
@@ -1,25 +1,53 @@
set(E1AP_GRAMMAR ASN.1/38463-g80.R16.78.0.asn)
set(e1ap_source
ANY_aper.c
ANY.c
ANY_uper.c
ANY_xer.c
aper_decoder.c
aper_encoder.c
aper_opentype.c
aper_support.c
asn_application.c
asn_bit_data.c
asn_codecs_prim.c
asn_codecs_prim_xer.c
asn_internal.c
asn_random_fill.c
asn_SEQUENCE_OF.c
asn_SET_OF.c
ber_decoder.c
ber_tlv_length.c
ber_tlv_tag.c
BIT_STRING.c
BIT_STRING_print.c
BIT_STRING_rfill.c
BIT_STRING_uper.c
BIT_STRING_xer.c
constraints.c
constr_CHOICE_aper.c
constr_CHOICE.c
constr_CHOICE_print.c
constr_CHOICE_rfill.c
constr_CHOICE_uper.c
constr_CHOICE_xer.c
constr_SEQUENCE_aper.c
constr_SEQUENCE.c
constr_SEQUENCE_OF_aper.c
constr_SEQUENCE_OF.c
constr_SEQUENCE_OF_uper.c
constr_SEQUENCE_OF_xer.c
constr_SEQUENCE_print.c
constr_SEQUENCE_rfill.c
constr_SEQUENCE_uper.c
constr_SEQUENCE_xer.c
constr_SET_OF_aper.c
constr_SET_OF.c
constr_SET_OF_print.c
constr_SET_OF_rfill.c
constr_SET_OF_uper.c
constr_SET_OF_xer.c
constr_TYPE.c
der_encoder.c
E1AP_ActivityInformation.c
E1AP_ActivityNotificationLevel.c
E1AP_AdditionalHandoverInfo.c
@@ -182,6 +210,7 @@ set(e1ap_source
E1AP_Extended-NR-CGI-Support-List.c
E1AP_ExtendedPacketDelayBudget.c
E1AP_ExtendedSliceSupportList.c
E1AP_EXTERNAL.c
E1AP_FirstDLCount.c
E1AP_GBR-QoSFlowInformation.c
E1AP_GBR-QosInformation.c
@@ -450,18 +479,50 @@ set(e1ap_source
E1AP_UPSecuritykey.c
E1AP_UP-TNL-Information.c
E1AP_URIaddress.c
GraphicString.c
INTEGER_aper.c
INTEGER.c
INTEGER_print.c
INTEGER_rfill.c
INTEGER_uper.c
INTEGER_xer.c
NativeEnumerated_aper.c
NativeEnumerated.c
NativeEnumerated_uper.c
NativeEnumerated_xer.c
NativeInteger_aper.c
NativeInteger.c
NativeInteger_print.c
NativeInteger_rfill.c
NativeInteger_uper.c
NativeInteger_xer.c
ObjectDescriptor.c
OBJECT_IDENTIFIER.c
OBJECT_IDENTIFIER_print.c
OBJECT_IDENTIFIER_rfill.c
OBJECT_IDENTIFIER_xer.c
OCTET_STRING_aper.c
OCTET_STRING.c
OCTET_STRING_print.c
OCTET_STRING_rfill.c
OCTET_STRING_uper.c
OCTET_STRING_xer.c
OPEN_TYPE_aper.c
OPEN_TYPE.c
OPEN_TYPE_uper.c
OPEN_TYPE_xer.c
per_decoder.c
per_encoder.c
per_opentype.c
per_support.c
PrintableString.c
uper_decoder.c
uper_encoder.c
uper_opentype.c
uper_support.c
UTF8String.c
UTF8String_print.c
UTF8String_rfill.c
VisibleString.c
xer_decoder.c
xer_encoder.c
@@ -470,17 +531,21 @@ set(e1ap_source
set(e1ap_headers
ANY.h
aper_decoder.h
aper_encoder.h
aper_opentype.h
aper_support.h
asn_application.h
asn_bit_data.h
asn_codecs.h
asn_codecs_prim.h
asn_config.h
asn_internal.h
asn_ioc.h
asn_random_fill.h
asn_SEQUENCE_OF.h
asn_SET_OF.h
asn_system.h
ber_decoder.h
ber_tlv_length.h
ber_tlv_tag.h
BIT_STRING.h
@@ -490,7 +555,6 @@ set(e1ap_headers
constr_SEQUENCE_OF.h
constr_SET_OF.h
constr_TYPE.h
der_encoder.h
E1AP_ActivityInformation.h
E1AP_ActivityNotificationLevel.h
E1AP_AdditionalHandoverInfo.h
@@ -654,6 +718,7 @@ set(e1ap_headers
E1AP_Extended-NR-CGI-Support-List.h
E1AP_ExtendedPacketDelayBudget.h
E1AP_ExtendedSliceSupportList.h
E1AP_EXTERNAL.h
E1AP_FirstDLCount.h
E1AP_GBR-QoSFlowInformation.h
E1AP_GBR-QosInformation.h
@@ -922,9 +987,11 @@ set(e1ap_headers
E1AP_UPSecuritykey.h
E1AP_UP-TNL-Information.h
E1AP_URIaddress.h
GraphicString.h
INTEGER.h
NativeEnumerated.h
NativeInteger.h
ObjectDescriptor.h
OBJECT_IDENTIFIER.h
OCTET_STRING.h
OPEN_TYPE.h
@@ -933,6 +1000,10 @@ set(e1ap_headers
per_opentype.h
per_support.h
PrintableString.h
uper_decoder.h
uper_encoder.h
uper_opentype.h
uper_support.h
UTF8String.h
VisibleString.h
xer_decoder.h
+1 -1
View File
@@ -10,7 +10,7 @@ else()
endif()
add_custom_command(OUTPUT ${e1ap_source} ${e1ap_headers}
COMMAND ASN1C_PREFIX=E1AP_ 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}/${E1AP_GRAMMAR}
COMMAND ASN1C_PREFIX=E1AP_ asn1c -gen-APER -gen-UPER -no-gen-JER -no-gen-BER -no-gen-OER -fcompound-names -no-gen-example -findirect-choice -fno-include-deps -D ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}
COMMENT "Generating E1AP source files from ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}"
)