path: root/configure.ac
AgeCommit message (Collapse)AuthorFilesLines
2020-08-25osmo-trx-ipcEric Wild1-2/+9
This adds a IPC backend that uses shared memory interface to communicate with (proprietary) devices. Requires config file option dev-args ipc_msock=/path/to/socket to specify the master socket the ipc backend should connect to. If UHD is avaialble the ipc-driver-test tool can be used to test the backend with a uhd device, this was so far only tested with a b2xx. Change-Id: Ice63d3499026293ade8aad675ff7a883bcdd5756
2020-05-19contrib: integrate RPM specOliver Smith1-1/+2
Remove OpenSUSE bug report link, set version to @VERSION@, make it build with CentOS 8 etc. Disable lms, usrp1 for CentOS 8. Related: OS#4550 Change-Id: Ie27fcc4f9033f0049507d9dcc295541ac0744c73
2020-05-02PRBS tool sending PRBS sequence to TRXHarald Welte1-0/+2
Change-Id: I2300f909bbfda10a7053320edfd1deaea763759a
2020-04-11configure.ac: fix libtool issue with clang and sanitizerEric1-0/+5
As pointed out at https://github.com/libexpat/libexpat/issues/312 libtool does not play nice with clang sanitizer builds at all. For those builds LD shoud be set to clang too (and LDFLAGS needs the sanitizer flags as well), because the clang compiler driver knows how linking to the sanitizer libs works, but then at a later stage libtool fails to actually produce the shared libraries and the build fails. This is fixed by this patch. Addtionally LD_LIBRARY_PATH has no effect on conftest runs during configure time, so the rpath needs to be set to the asan library path to ensure the configure run does not fail due to a missing asan library, i.e.: SANS='-fsanitize=memory -fsanitize-recover=all -shared-libsan' export CC=clang-10 ASANPATH=$(dirname `$CC -print-file-name=libclang_rt.asan-x86_64.so`) export LDFLAGS="-Wl,-rpath,$ASANPATH $SANS $LDFLAGS" Change-Id: If3d9465068b2c654b935fc3d9ab41d799d5e02e8
2020-02-19debug.h: Avoid printing pthread_t typePau Espin Pedrol1-0/+9
Using %lu for pthread_t was wrong on armv7l arch. Even worse, according to pthread_self() man page, pthread_t cannot be assumed to be of a simple type and hence printable: """ POSIX.1 allows an implementation wide freedom in choosing the type used to represent a thread ID; for example, representation using either an arithmetic type or a structure is permitted. """ Let's use gettid() instead. According to glibc documentation: """ The pid_t data type is a signed integer type which is capable of representing a process ID. In the GNU C Library, this is an int. """ It may not be the same on other libc's though, so let's better cast to a long int just in case. Accordign to gettid() man, the libc function was only added recently during glibc 2.30, however the system call has been around for quite some time (linux 2.4.11). Let's accomodate use udner non-glibc or older versions of it by having a direct syscall fallback. Change-Id: I40265fd4c62e550014ba3ff3335ca053c5bc01f2
2020-01-03Bump version: → Espin Pedrol1-3/+3
Change-Id: I9009eb44e7d8100294da139300480fc3a2f6b616
2019-10-17Fix common misspellings and typosMartin Hauke1-1/+1
Change-Id: I4ec7accb1912c052b446be7c399bed32a8c62253
2019-09-20radioInterface: Atomically fetch and change underrun variablePau Espin Pedrol1-7/+17
Otherwise, it could happen that underrun events are lost: TxLower (isUnderrun): RxLower (pullBuffer): read(underrun) read(underrun) write(underrun, |val) [maybe underrun becomes TRUE] write(underrun, false) Similary, it could happen the other direction if atomic was only applied to isUnderrun: TxLower (isUnderrun): RxLower (pullBuffer): read(underrun) -> true read(underrun)-> true write(underrun, false) write(underrun, true|val) where val=false So in here isUnderrun would return true twice while it should only return one. Change-Id: I684e0a5d2a9583a161d5a6593559b3a9e7cd57e3
2019-08-07Require newer version of libosmocore to avoid build failurePau Espin Pedrol1-3/+3
Older commit started using osmo_timerd_* APIs which are only available starting libosmocore 0.12.0, but configure.ac still states 0.11.0 is accepted, which is incorrect. Fixes: 4456b6f132437a95833e3a3d3353836331b9c8a0 Change-Id: I71743b8a10edb10af51ad8e9289c53e432199b97
2019-06-25Remove AUTHORS filePau Espin Pedrol1-1/+1
License of this file doesn't match the license stated in COPYING and in most source code files (GPLv3 vs AGPLv3). Furthermore, we don't really maintain this file, so let's drop it to avoid non-up-to-date content which may introduce confusion. Related: OS#3515 Change-Id: I536a145cb7696af8e9dbd3065ee5e5f493217ac6
2019-05-06smpl_buf: Move it to device/common and create libdevice_common.laPau Espin Pedrol1-0/+1
Since in next commit osmo-trx-lms starts using smpl_buf.cpp, it seems some automake step doesn't like including a cpp file twice from a different directory, since race conditions can occur building it. Instead we define the dependency by first building a static lib and then using it on each libdevice.la (one per device type). We already do the similar under arch/ subdir, where we have a common/ subdir and then one subdir and lib per architecture. Change-Id: I465ad0f6d5569bb3006d711c8fd0df14391fcf35
2019-04-17lms: add device type detection and device specific gainsJoachim Steiger1-14/+0
add device dependant max gain setup - limesdr mini and limenet micro need slightly reduced maximum gains to get a PASS on phase error measurements rework clock reference setup - external clock needs to be selected before calling LMS_Init(), internal can only be set after. remove now unused compat_LMS_VCTCXO* functions - we do not set the VCTXCO directly anymore Change-Id: I3cf905b0a84bc1ec200891762a6646141ee37181
2018-12-14configure.ac: check boost only if USRP1 support is enabledPau Espin Pedrol1-3/+2
boost is only used in USRPDevice class. It looks like it can be removed entirely quite easily, since only boost::shared_ptr is used for 2 variables. That's left for somebody with the device and willingness to test the changes. Change-Id: I4c3fa3ff58fd552d0cb4c4cf2033615d84c07c96
2018-12-14lms: Fix build against LimeSuite > 18.10Pau Espin Pedrol1-0/+14
LimeSuite dc124e4e2ed9b549b142410af172f0592f9f0c23 > 18.10 broke API compatibility. OS#3729 Change-Id: Idf500a5b39a857233f728c6a4316c00a99374556
2018-11-27build manuals moved here from osmo-gsm-manuals.gitOliver Smith1-1/+44
Moved to doc/manuals/, with full commit history, in preceding merge commit. Now incorporate in the build system. Build with: $ autoreconf -fi $ ./configure --enable-manuals $ make Shared files from osmo-gsm-manuals.git are found automatically if - the repository is checked out in ../osmo-gsm-manuals; or - if it osmo-gsm-manuals was installed with "make install"; or - OSMO_GSM_MANUALS_DIR is set. Related: OS#3385 Change-Id: I2762171af0bf719a34ba12a0c2e4dcc206098beb
2018-09-12Install systemd services with autotoolsPau Espin Pedrol1-0/+18
Change-Id: Ia1a4fb62dee35737ece1f3501f352501eba2449e
2018-09-04configure.ac: Specify default language as C++Pau Espin Pedrol1-0/+1
This is useful if we add more AC_CHECK_HEADER or similar configure tests including C++ header files or required C++ features, since otherwise gcc is used by default and test fail. Change-Id: Iee757c78b72290c5d2a4c31339800a4e72b6be23
2018-08-30configure.ac: Add --enable-werror optionPau Espin Pedrol1-0/+19
Change-Id: Ib2782aecd400398bf36427f255c2a427ef781e06
2018-08-17configure.ac: Fix typo in with-lms help stringPau Espin Pedrol1-1/+1
Change-Id: I7777d027fffa50dddf3f0a3c0bf2173aa8497be3
2018-06-19debian: Add cfg file examples for osmo-trx-{lms,uhd}Pau Espin Pedrol1-0/+2
Sort cfg files according to their osmo-trx binary. Install them during make install. Add the installed cfg files to related debian packages. Change-Id: I905cdac30b441e4df0a3f5c0924d1637b9f67b90
2018-06-13build: Add support for LimeSuite device backendPau Espin Pedrol1-0/+11
Change-Id: I239e1b37263a62b374d84974c9347e3654072e87
2018-05-03Bump version: 0.3.0-dirty → Espin Pedrol1-3/+3
Change-Id: Ifc469bce89d52012e1f876c847b4535360a602ad
2018-04-24Build one osmo-trx binary for each device support enabledPau Espin Pedrol1-2/+7
Same way as we do in osmo-bts. After this commit, osmo-trx no longer exists. Instead, osmo-trx-uhd and osmo-trx-usrp1 are generated based on configure flags enabled. A new flag --with(out)-uhd has been added to enable/disable build of osmo-trx with UHD backend. It is left enabled by default to keep compatibility with older build scripts. Binary with USRP1 backend must still be manually enabled with --with-usrp1 flag. Change-Id: Iea8c0d7434762713a53440d29bf3ebd84accb262
2018-04-24Change configure define USRP1 to DEVICE_USRP1Pau Espin Pedrol1-1/+1
Similar as we do for ARCH_*, it's easier to find those are related to device support features. Change-Id: Iba238bff689b8f944af76120402c0fa2e29a70de
2018-04-24Move device specific files to device subdirPau Espin Pedrol1-0/+3
Change-Id: Ib42fef14bf4c7b779f44d99711a35c18b32a4c21
2018-04-24Move arch specific fiels to arch subdirPau Espin Pedrol1-3/+4
Take the chance to update some includes using files available in that subdir to have them ina more uniform way. Change-Id: Ibda3c54fd4dc3f6b845cc373f1a1e6b758c1ea82
2018-04-16configure.ac: Add --enable-sanitize optionPau Espin Pedrol1-0/+17
Change-Id: I1b5154a47bb2f66103ac254a0f422e8a80b2d3e0
2018-04-08configure.ac: Fix typoMartin Hauke1-1/+1
Unbreak git-version-gen when used with .tarball-version Change-Id: Id836c6822daf1f6835a8c869624b4b40dde47f3a
2018-03-08Build Transceiver52M/common as an .la libPau Espin Pedrol1-0/+1
Stop picking files from that directory on different places as it causes dependency issues during make distclean/maintainer-clean. Fixes: OS#3029 Change-Id: I81bb4251d18fce978d27849b621b20f541caab0b
2018-02-27Add initial support for logging, vty, ctrlPau Espin Pedrol1-0/+3
Up to this point, the logging system, vty and ctrl are initialized and can be used fine, though they don't have a lot of use yet. Depends on libosmocore Change-Id Ib79cdb62d45d8c78445c7b064e58eb7e9faeccf9 Related: OS#2184 Change-Id: I08982c37b4f873966304b3cfb38a10ee86eb3dad
2018-02-22Depend on libosmocorePau Espin Pedrol1-0/+2
Change-Id: If345c89293fcd7d1ad4f17214eea339951f25a5d
2018-02-20configure.ac: Check for pkg-configPau Espin Pedrol1-0/+7
Change-Id: I1a851181a99f2f35ea4ff1b38c7afe27a04e5f18
2018-01-20Unbreak `./configure --with-usrp1` buildAlexander Huemer1-1/+1
Change-Id: I49b385594271ae64a48d4d39ee9fe26d7c95bd30
2018-01-11tests: Migrate convtest util to autotest infrastructurePau Espin Pedrol1-0/+1
Change-Id: Ie682abf7e83de436d0f37f9f6e0664cb2f4d0c9e
2018-01-10Set up GNU Autotest infrastructurePau Espin Pedrol1-0/+3
Test files are moved from CommonLibs/ to tests/CommonLibs/. Some tests are disabled in autotest because they generate timedate related output which cannot exactly match against expected output. Change-Id: I3d6ba625968be09297642d18090c496490e9b8fc
2018-01-09Remove Configuration module and libsqlite dependencyPau Espin Pedrol1-3/+0
Change-Id: I823aea91367d586507bbf352f1b6f25bdd635baa
2018-01-09cosmetic: Remove trailing whitespacePau Espin Pedrol1-1/+1
Change-Id: I64c8dbad3fc42bcb8dd4ac9b16bbd9c59a0cf5d5
2017-10-28Import git-version-gen and update AC_INIT()Harald Welte1-1/+3
In AC_INIT(), it still stated openbts. Let's clean this up and use the same method of version generation that we use in all other osmocom projects, too. Change-Id: Ie7ae0585955aebdc3950b1dd8bff0d1fff3be212
2017-08-28Use release helper from libosmocoreMax1-0/+4
See https://osmocom.org/projects/cellular-infrastructure/wiki/Make_a_new_release for details. Change-Id: Ieb843923d8f534654413be695f2b5f0c87b75520 Related: OS#1861
2017-06-09build: Require and check for gcc C++11 supportTom Tsou1-0/+1
It is now 2017. We can and should be able to use C++11 features now. Change-Id: I96477e4125390b17b43a3705bb1daf98fa01c9bb Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2017-06-08buildenv: check for __builtin_cpu_supports call supportVadim Yanitskiy1-0/+27
The '__builtin_cpu_supports' is a GCC's built-in function which returns a positive integer if the run-time CPU supports specified SIMD feature and returns 0 otherwise. This change adds a new check, whether compiler supports this call. See /gcc/X86-Built-in-Functions.html at gcc.gnu.org for reference. Change-Id: I797f638573e8c3aae39c28abb157ce2ac419f3f7
2017-05-19buildenv: Split up SSE3 and SSE4.1 codePhilipp Maier1-1/+4
Currently we find SSE3 and SSE4.1 code mixed togehter along with generic code in one file. This introduces the risk that the compiler exidantly mixes SSE4.1 instructions into an SSE3, or even worse into a generic code path. This commit splits the SSE3 and SSE4.1 code into separate files and compiles them with the matching target options. Change-Id: I846e190e92f1258cd412d1b2d79b539e204e04b3
2017-03-07uhd: Add support for UHD-3.11 logging controlTom Tsou1-3/+6
The logging API changes in UHD-3.11, which causes build failure if not properly handled. Change-Id: I223ebb9fae3f4061e0cb37c05263c1b569e8f628
2017-01-26Fix building against sqlite3Max1-0/+3
* Explicitly check for sqlite3 at configure stage, remove old include dir, fix header inclusion. * Use configure results for linking instead of hardcoded linker option for sqlite. * Add dependency on -dev package for .deb Change-Id: I6d7f697d67651f02ceb77fc4da4317b64fa47f9e Fixes: OS#1928
2017-01-24Remove embedded sqlite3Max1-1/+0
Previous patch switches to using system-wide sqlite3 so it's safe to remove local copy now. Change-Id: Ie8e751cc62132fe1f7748ccd78c5d48469027329
2017-01-19Revert "uhd: Set minimum supported version to 3.9.0"Tom Tsou1-2/+5
This reverts commit 93ca09ea61d044e5f8662b28bf084c808cac4f2c. Ettus Research recommends the use of 3.9 series of UHD releases, but requiring this version has lead to issues with broken OBS and packaged binaries by Debian, Ubuntu, and other distributions. Change-Id: Ie6b175ac6d46d091937380c79fdd0125b16ec75f Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2016-10-25uhd: Set minimum supported version to 3.9.0Tom Tsou1-5/+2
Versions of UHD prior to 3.9.0 are no longer supported. Rather then backport and ifdef UHD version specific API and behavioral changes, set minimum support to the current LTS release, which is 3.9.0. Change-Id: Id7d15b52cd4e45f1d856a6ef3a84832a28f2dd04 Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2016-07-05configure.ac: check for boost/config.hpp headerNeels Hofmeyr1-0/+3
2016-07-01mcbts: Add multi-ARFCN channelizing filtersTom Tsou1-0/+1
Introduce polyphase channelizer (Rx) and synthesis (Tx) filterbanks, which serve as the signal processing backend for multi-carrier GSM. Fast Fourier Transform (FFT) is used internally. FFTW is added as a new build dependency. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2015-08-21uhd: Use internal UHD tick conversionsTom Tsou1-1/+1
UHD handles built in tick and floating point timestamp conversion since version 003.005.004. This removes the need for separate UHD timespec to tick conversion. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>