libosmo-gprs-rlcmac: check-in PDU definitions from osmo-pcu.git

This commit introduces a new library called 'libosmo-gprs-rlcmac',
which is going to be used by osmo-pcu and osmocom-bb for parsing
and generation of PDUs defined using CSN.1 (see 3GPP TS 24.007).

The actual RLC/MAC definitions are imported from osmo-pcu.git [1].

Change-Id: Ic322543e6d9a870beec83fa1166352e4a51366e7
Related: [1] osmo-pcu.git 0eaa3d379828517b5478d0202a26f6f3eb561a4e
This commit is contained in:
Vadim Yanitskiy 2022-08-04 07:17:59 +07:00
parent eb2ab031d4
commit ed06cbbfbc
10 changed files with 11691 additions and 0 deletions

View File

@ -14,6 +14,7 @@ SUBDIRS = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
libosmo-csn1.pc \
libosmo-gprs-rlcmac.pc \
$(NULL)
BUILT_SOURCES = $(top_srcdir)/.version

View File

@ -75,10 +75,14 @@ AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([libosmo-csn1.pc
libosmo-gprs-rlcmac.pc
include/Makefile
include/osmocom/Makefile
include/osmocom/csn1/Makefile
include/osmocom/gprs/Makefile
include/osmocom/gprs/rlcmac/Makefile
src/Makefile
src/csn1/Makefile
src/rlcmac/Makefile
Makefile])
AC_OUTPUT

View File

@ -1,3 +1,4 @@
SUBDIRS = \
csn1 \
gprs \
$(NULL)

View File

@ -0,0 +1,3 @@
SUBDIRS = \
rlcmac \
$(NULL)

View File

@ -0,0 +1,5 @@
rlcmac_HEADERS = \
gprs_rlcmac.h \
$(NULL)
rlcmacdir = $(includedir)/osmocom/gprs/rlcmac

File diff suppressed because it is too large Load Diff

10
libosmo-gprs-rlcmac.pc.in Normal file
View File

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Osmocom [E]GPRS RLC/MAC Library
Description: C Utility Library
Version: @VERSION@
Libs: -L${libdir} -losmo-gprs-rlcmac
Cflags: -I${includedir}/

View File

@ -1,3 +1,4 @@
SUBDIRS = \
csn1 \
rlcmac \
$(NULL)

37
src/rlcmac/Makefile.am Normal file
View File

@ -0,0 +1,37 @@
# This is _NOT_ the library release version, it's an API version.
# Please read Chapter 6 "Library interface versions" of the libtool
# documentation before making any modification
LIBVERSION=0:0:0
AM_CPPFLAGS = \
$(all_includes) \
-I$(top_srcdir)/include \
$(NULL)
AM_CFLAGS = \
-Wall \
$(LIBOSMOCORE_CFLAGS) \
$(NULL)
AM_LDFLAGS = \
$(LIBOSMOCORE_LIBS) \
$(NULL)
lib_LTLIBRARIES = \
libosmo-gprs-rlcmac.la \
$(NULL)
libosmo_gprs_rlcmac_la_SOURCES = \
gprs_rlcmac.c \
$(NULL)
# TODO: -export-symbols-regex '^osmo_'
libosmo_gprs_rlcmac_la_LDFLAGS = \
-version-info $(LIBVERSION) \
-no-undefined \
$(NULL)
libosmo_gprs_rlcmac_la_LIBADD = \
$(top_builddir)/src/csn1/libosmo-csn1.la \
$(LIBOSMOCORE_LIBS) \
$(NULL)

6250
src/rlcmac/gprs_rlcmac.c Normal file

File diff suppressed because it is too large Load Diff