Enhanced SIM for E2AP v1 for TS UC
[sim/e2-interface.git] / e2sim / e2apv1sim / tools / asn_defs / generate_e2ap_e2sm_codes
1 #!/bin/bash
2 #/*****************************************************************************
3 #                                                                            *
4 # Copyright 2019 AT&T Intellectual Property                                  *
5 # Copyright 2019 Nokia                                                       *
6 #                                                                            *
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                                    *
10 #                                                                            *
11 #      http://www.apache.org/licenses/LICENSE-2.0                            *
12 #                                                                            *
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.                                             *
18 #                                                                            *
19 #******************************************************************************/
20
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"
24
25 GEN_DIR=../../src/ASN1c/
26
27 rm -f $GEN_DIR/*.c $GEN_DIR/*.h
28
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
32
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
36
37 echo "ASN1 C codes generated at $GEN_DIR"
38
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