pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmocom-bb/+/30991 )
Change subject: layer23: generate config.h
......................................................................
layer23: generate config.h
Follow-up commits will add some extra checks we want to have in config.h
Include config.h in files using PACKAGE_VERSION.
Change-Id: Ic779a3168012780feef8d173371387d09d383bfd
---
M src/host/layer23/configure.ac
M src/host/layer23/src/common/main.c
M src/host/layer23/src/mobile/app_mobile.c
M src/host/layer23/src/modem/app_modem.c
4 files changed, 9 insertions(+), 0 deletions(-)
Approvals:
laforge: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/src/host/layer23/configure.ac b/src/host/layer23/configure.ac
index 85765ae..81c0e65 100644
--- a/src/host/layer23/configure.ac
+++ b/src/host/layer23/configure.ac
@@ -89,6 +89,9 @@
AC_MSG_RESULT([CFLAGS="$CFLAGS"])
AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"])
+dnl Generate the output
+AM_CONFIG_HEADER(config.h)
+
AC_OUTPUT(
src/Makefile
src/common/Makefile
diff --git a/src/host/layer23/src/common/main.c b/src/host/layer23/src/common/main.c
index eecd29f..2cdf5d4 100644
--- a/src/host/layer23/src/common/main.c
+++ b/src/host/layer23/src/common/main.c
@@ -50,6 +50,8 @@
#include <fcntl.h>
#include <signal.h>
+#include "config.h"
+
void *l23_ctx = NULL;
static char *sap_socket_path = "/tmp/osmocom_sap";
diff --git a/src/host/layer23/src/mobile/app_mobile.c
b/src/host/layer23/src/mobile/app_mobile.c
index ae4845d..5bb1920 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -54,6 +54,8 @@
#include <l1ctl_proto.h>
+#include "config.h"
+
extern void *l23_ctx;
extern struct llist_head ms_list;
extern int vty_reading;
diff --git a/src/host/layer23/src/modem/app_modem.c
b/src/host/layer23/src/modem/app_modem.c
index 93f3b54..7dcda17 100644
--- a/src/host/layer23/src/modem/app_modem.c
+++ b/src/host/layer23/src/modem/app_modem.c
@@ -46,6 +46,8 @@
#include <l1ctl_proto.h>
+#include "config.h"
+
static struct {
struct osmocom_ms *ms;
enum ccch_mode ccch_mode;
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/30991
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ic779a3168012780feef8d173371387d09d383bfd
Gerrit-Change-Number: 30991
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged