Cosmetic: put asn1c parameters in separate lines

Change-Id: Id1425753f9b4cbce172a1b875a680aa189bb5737
This commit is contained in:
Oliver Smith 2021-11-12 13:44:34 +01:00
parent e321f0f77f
commit f8ed10a323
4 changed files with 32 additions and 4 deletions

View File

@ -243,7 +243,14 @@ libosmo_asn1_hnbap_la_LIBADD=$(ASN1C_LDADD)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
regenerate-from-asn1-source: regenerate-from-asn1-source:
ASN1C_PREFIX="HNBAP_" asn1c -R -fcompound-names -gen-PER $(HNBAP_ASN1)/HNBAP-CommonDataTypes.asn $(HNBAP_ASN1)/HNBAP-Constants.asn $(HNBAP_ASN1)/HNBAP-IEs.asn $(HNBAP_ASN1)/HNBAP-PDU.asn ASN1C_PREFIX="HNBAP_" asn1c \
-R \
-fcompound-names \
-gen-PER \
$(HNBAP_ASN1)/HNBAP-CommonDataTypes.asn \
$(HNBAP_ASN1)/HNBAP-Constants.asn \
$(HNBAP_ASN1)/HNBAP-IEs.asn \
$(HNBAP_ASN1)/HNBAP-PDU.asn
# change include style to `#include <dir/foo.h>' # change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/hnbap $(ASN_MODULE_INC) $(top_srcdir)/move-asn1-header-files.sh osmocom/hnbap $(ASN_MODULE_INC)
# Finally copy *.c from buildir to srcdir: # Finally copy *.c from buildir to srcdir:

View File

@ -1169,7 +1169,14 @@ libosmo_asn1_ranap_la_LIBADD=$(ASN1C_LDADD)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
regenerate-from-asn1-source: regenerate-from-asn1-source:
ASN1C_PREFIX="RANAP_" asn1c -fcompound-names -R -gen-PER $(top_srcdir)/asn1/ranap/RANAP-CommonDataTypes.asn $(top_srcdir)/asn1/ranap/RANAP-Constants.asn $(top_srcdir)/asn1/ranap/RANAP-IEs.asn $(top_srcdir)/asn1/ranap/RANAP-PDU.asn ASN1C_PREFIX="RANAP_" asn1c \
-fcompound-names \
-R \
-gen-PER \
$(top_srcdir)/asn1/ranap/RANAP-CommonDataTypes.asn \
$(top_srcdir)/asn1/ranap/RANAP-Constants.asn \
$(top_srcdir)/asn1/ranap/RANAP-IEs.asn \
$(top_srcdir)/asn1/ranap/RANAP-PDU.asn
sed -i '7i#include <constr_CHOICE.h>' RANAP_ChosenEncryptionAlgorithm.h RANAP_ChosenIntegrityProtectionAlgorithm.h RANAP_IMSI.h RANAP_PLMNidentity.h RANAP_RAB-ReleaseFailedList.c RANAP_RAB-ReleaseList.c RANAP_RAB-SetupOrModifyList.c RANAP_ResetResourceList.c RANAP_ResetResourceAckList.c sed -i '7i#include <constr_CHOICE.h>' RANAP_ChosenEncryptionAlgorithm.h RANAP_ChosenIntegrityProtectionAlgorithm.h RANAP_IMSI.h RANAP_PLMNidentity.h RANAP_RAB-ReleaseFailedList.c RANAP_RAB-ReleaseList.c RANAP_RAB-SetupOrModifyList.c RANAP_ResetResourceList.c RANAP_ResetResourceAckList.c
# change include style to `#include <dir/foo.h>' # change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/ranap $(ASN_MODULE_INC) $(top_srcdir)/move-asn1-header-files.sh osmocom/ranap $(ASN_MODULE_INC)

View File

@ -81,7 +81,14 @@ libosmo_asn1_rua_la_LIBADD=$(ASN1C_LDADD)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
regenerate-from-asn1-source: regenerate-from-asn1-source:
ASN1C_PREFIX="RUA_" asn1c -R -fcompound-names -gen-PER $(top_srcdir)/asn1/rua/RUA-CommonDataTypes.asn $(top_srcdir)/asn1/rua/RUA-Constants.asn $(top_srcdir)/asn1/rua/RUA-IEs.asn $(top_srcdir)/asn1/rua/RUA-PDU.asn ASN1C_PREFIX="RUA_" asn1c \
-R \
-fcompound-names \
-gen-PER \
$(top_srcdir)/asn1/rua/RUA-CommonDataTypes.asn \
$(top_srcdir)/asn1/rua/RUA-Constants.asn \
$(top_srcdir)/asn1/rua/RUA-IEs.asn \
$(top_srcdir)/asn1/rua/RUA-PDU.asn
# change include style to `#include <dir/foo.h>' # change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/rua $(ASN_MODULE_INC) $(top_srcdir)/move-asn1-header-files.sh osmocom/rua $(ASN_MODULE_INC)
# Finally copy *.c from buildir to srcdir: # Finally copy *.c from buildir to srcdir:

View File

@ -135,7 +135,14 @@ libosmo_asn1_sabp_la_LIBADD=$(ASN1C_LDADD)
regen: regenerate-from-asn1-source regen: regenerate-from-asn1-source
regenerate-from-asn1-source: regenerate-from-asn1-source:
ASN1C_PREFIX="SABP_" asn1c -R -fcompound-names -gen-PER $(top_srcdir)/asn1/sabp/SABP-CommonDataTypes.asn $(top_srcdir)/asn1/sabp/SABP-Constants.asn $(top_srcdir)/asn1/sabp/SABP-IEs.asn $(top_srcdir)/asn1/sabp/SABP-PDU.asn ASN1C_PREFIX="SABP_" asn1c \
-R \
-fcompound-names \
-gen-PER \
$(top_srcdir)/asn1/sabp/SABP-CommonDataTypes.asn \
$(top_srcdir)/asn1/sabp/SABP-Constants.asn \
$(top_srcdir)/asn1/sabp/SABP-IEs.asn \
$(top_srcdir)/asn1/sabp/SABP-PDU.asn
# add missing includes # add missing includes
sed -i '/#include "SABP_Serial-Number.h"/a #include <constr_CHOICE.h>' SABP_Old-Serial-Number.h SABP_New-Serial-Number.h sed -i '/#include "SABP_Serial-Number.h"/a #include <constr_CHOICE.h>' SABP_Old-Serial-Number.h SABP_New-Serial-Number.h
# change include style to `#include <dir/foo.h>' # change include style to `#include <dir/foo.h>'