Change in osmo-iuh[master]: src/*/Makefile.am: Copy back to srcdir the generated .c files from ASN

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Oct 26 16:42:31 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/25958 )

Change subject: src/*/Makefile.am: Copy back to srcdir the generated .c files from ASN
......................................................................

src/*/Makefile.am: Copy back to srcdir the generated .c files from ASN

Change-Id: I203a25a8059218bb9fd6d10cbc028a296d347382
---
M src/hnbap/Makefile.am
M src/ranap/Makefile.am
M src/rua/Makefile.am
M src/sabp/Makefile.am
4 files changed, 16 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved



diff --git a/src/hnbap/Makefile.am b/src/hnbap/Makefile.am
index c4a8c29..7835bcd 100644
--- a/src/hnbap/Makefile.am
+++ b/src/hnbap/Makefile.am
@@ -248,3 +248,7 @@
 	-rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
 #	change include style to `#include <dir/foo.h>'
 	$(top_srcdir)/move-asn1-header-files.sh osmocom/hnbap $(ASN_MODULE_INC)
+#	Finally copy *.c from buildir to srcdir:
+	if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/hnbap)"; then \
+		cp *.c $(top_srcdir)/src/hnbap/; \
+	fi
diff --git a/src/ranap/Makefile.am b/src/ranap/Makefile.am
index 0bb36a0..4ba3a79 100644
--- a/src/ranap/Makefile.am
+++ b/src/ranap/Makefile.am
@@ -1188,3 +1188,7 @@
 	sed -i 's/Member/MemberN/' RANAP_RABDataVolumeReport.[ch]
 #	change include style to `#include <dir/foo.h>'
 	$(top_srcdir)/move-asn1-header-files.sh osmocom/ranap $(ASN_MODULE_INC)
+#	Finally copy *.c from buildir to srcdir:
+	if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/ranap)"; then \
+		cp *.c $(top_srcdir)/src/ranap/; \
+	fi
diff --git a/src/rua/Makefile.am b/src/rua/Makefile.am
index 7e1d18e..c848639 100644
--- a/src/rua/Makefile.am
+++ b/src/rua/Makefile.am
@@ -86,3 +86,7 @@
 	@rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
 #	change include style to `#include <dir/foo.h>'
 	$(top_srcdir)/move-asn1-header-files.sh osmocom/rua $(ASN_MODULE_INC)
+#	Finally copy *.c from buildir to srcdir:
+	if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/rua)"; then \
+		cp *.c $(top_srcdir)/src/rua/; \
+	fi
diff --git a/src/sabp/Makefile.am b/src/sabp/Makefile.am
index a30674c..5e1b557 100644
--- a/src/sabp/Makefile.am
+++ b/src/sabp/Makefile.am
@@ -145,4 +145,7 @@
 	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>'
 	$(top_srcdir)/move-asn1-header-files.sh osmocom/sabp $(ASN_MODULE_INC)
-
+#	Finally copy *.c from buildir to srcdir:
+	if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/sabp)"; then \
+		cp *.c $(top_srcdir)/src/sabp/; \
+	fi

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/25958
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I203a25a8059218bb9fd6d10cbc028a296d347382
Gerrit-Change-Number: 25958
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211026/cbb29078/attachment.htm>


More information about the gerrit-log mailing list