2 #/*****************************************************************************
4 # Copyright 2019 AT&T Intellectual Property *
5 # Copyright 2019 Nokia *
7 # Licensed under the Apache License, Version 2.0 (the "License"); *
8 # you may not use this file except in compliance with the License. *
9 # You may obtain a copy of the License at *
11 # http://www.apache.org/licenses/LICENSE-2.0 *
13 # Unless required by applicable law or agreed to in writing, software *
14 # distributed under the License is distributed on an "AS IS" BASIS, *
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
16 # See the License for the specific language governing permissions and *
17 # limitations under the License. *
19 #******************************************************************************/
21 E2AP_asn="e2ap-v031.asn"
22 E2SM_asn="e2sm-gNB-X2-release-1-v041.asn"
23 X2AP_asn="x2ap-no-desc-15-04.asn"
25 GEN_DIR=../../src/ASN1c/
27 rm -f $GEN_DIR/*.c $GEN_DIR/*.h
29 asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example \
30 -fno-include-deps -D $GEN_DIR $E2AP_asn $X2AP_asn \
31 |& egrep -v "^Copied|^Compiled" | sort -u
33 asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example \
34 -fno-include-deps -D $GEN_DIR $E2SM_asn $X2AP_asn \
35 |& egrep -v "^Copied|^Compiled" | sort -u
37 echo "ASN1 C codes generated at $GEN_DIR"
39 # asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER /tmp/e2ap-v031.asn /tmp/x2ap-no-desc-15-04.asn