Commit Graph

193 Commits

Author SHA1 Message Date
Pedro Alvarez 6265325e20 Starting to change test to also run the clock. 2019-11-07 14:12:08 +01:00
Pedro Alvarez 9b932f131c Added flag for colored output when using ninja instead of make. 2019-11-07 14:12:08 +01:00
Justin Tallon 4a1b8a5952 adding support for neon soft demodulation, adding cmake checks for aarch64
* adding support for neon soft demodulation, adding cmake checks for aarch64
* rearranging some arm cmake flags
2019-11-06 12:11:26 +01:00
Aleksander Morgado ba5f6e9ce4 build: fix ADD_CXX_COMPILER_FLAG_IF_AVAILABLE usages
This patch solves two different issues at the same time when building
with gcc/g++ 9.2.0:

 1) The -fvisibility=hidden support check was done using the C++
 compiler only (with check_cxx_compiler_flag), inside the block
 corresponding to the C compiler being GNU/clang, and the result of
 the check was applied to both C++ (CXX_FLAGS) and C (C_FLAGS) flags.
 Instead of this, there should be separate checks for the C and C++
 compilers, each of them modifying a single set of <LANG>_FLAGS.

 2) -Wincompatible-pointer-types support check was done using the C++
 compiler only, and the result of the check was applied to both C++
 (CXX_FLAGS) and C (C_FLAGS) flags. But, this warning is not
 applicable to C++ and actually breaks compilation when using g++ 9.2:
    [  0%] Building CXX object lib/src/asn1/CMakeFiles/rrc_asn1.dir/rrc_asn1.cc.o
    cc1plus: error: ‘-Werror=’ argument ‘-Werror=incompatible-pointer-types’ is not valid for C++ [-Werror]
 Instead of this, there should be a check for this warning only using
 the C compiler, and therefore only modifying the C flags (C_FLAGS).

This patch splits the macro into one specific for C++ (which modifies
CXX_FLAGS) and one specific for C (which modifies C_FLAGS). And so,
the macro call to check for `-Werror=incompatible-pointer-types' is
made C-only, and the one for `-fvisibility=hidden` is done for both C
and C++ targets (each on the correct GNU/clang compiler block).

Due to how the tests are done in cmake, the '-fvisibility=hidden'
check wasn't even succeding before, so the compiler option wasn't
being effectively used. The cmake flags.make file contents throughout
the project are updated as follows now:

Before this change, we had:
   C_FLAGS   = -Werror=incompatible-pointer-types ...
   CXX_FLAGS = -Werror=incompatible-pointer-types ...

And after this change, we have:
   C_FLAGS   = -Werror=incompatible-pointer-types -fvisibility=hidden ...
   CXX_FLAGS = -fvisibility=hidden ...
2019-10-25 12:40:36 +02:00
Pedro Alvarez 5a1883b748 Making sure that we can get colored output when using Ninja instead of Make. 2019-10-15 10:14:16 +02:00
David Rupprecht f14bb1e760 Building srsLTE in a subdir of project 2019-10-07 16:33:35 +02:00
Xavier Arteaga 3acfe68d35 Add /lib/x86... to CMake find library hints 2019-09-20 15:43:07 +02:00
Andre Puschmann dbd219e112 enable -Werror based on compiler version
older gcc's (e.g gcc4.8) have issues with some const expressions
so they print warnings. we don't want to change the code because it is
fine with newer compilers. therefore we only enable -Werror for
newer versions of gcc
2019-09-17 22:12:34 +02:00
Andre Puschmann 9e1c46dfb0 add initial TTCN3 code 2019-09-17 21:56:47 +02:00
Andre Puschmann a9bea7e30c add -Werror to compile flags 2019-09-09 16:30:48 +02:00
Andre Puschmann 7ec587bcdc backport support for ipv6 for older glibc 2019-04-30 14:00:19 +02:00
Andre Puschmann 4b01a2e4a0 update copyright notice 2019-04-29 09:20:02 +02:00
Andre Puschmann c6e19645af add zmq-based rf driver 2019-04-25 10:25:49 +02:00
Andre Puschmann 1cc6ae3c60 enable c++11 support 2019-03-11 13:31:43 +01:00
Andre Puschmann 22503541b1 disable clang tidy by default during build 2018-12-13 11:06:57 +01:00
Ismael Gomez a8a0c3ebe7 Fixed compilation in zynq 2018-12-12 14:34:13 +01:00
Andre Puschmann 34f552fae9 add universal executable to select binary based on current ISA
- using cpuid to check x86 features
- using hwcap on ARM to check for NEON
2018-12-10 17:48:52 +01:00
Xavier Arteaga 8c3a0153b9 Added missing AVX512 intrinsics and flags. Fixes #291. 2018-11-21 18:09:09 +01:00
Andre Puschmann b75506ac16 add CMake option to enable memory sanitizer 2018-09-25 10:46:36 +02:00
Andre Puschmann 7572299615 enable clang-tidy for srslte_upper library 2018-09-25 10:46:36 +02:00
Andre Puschmann b1a443a9b8 add clang-tidy detection 2018-09-13 17:11:55 +02:00
Ismael Gomez bc9d342959
New optimization on the PHY for both UE and eNodeB (#251)
* New parallel Turbodecoder implementation in SSE/AVX 16-bit and 8-bit

* Optimised UL Interleaver

* Include TB CRC calculation in FEC encoder

* New threading priorities
2018-09-04 17:51:35 +02:00
Andre Puschmann bfae6c5059 add CMake option for UHD and pcsc 2018-07-10 12:02:04 +02:00
Andre Puschmann 91e1b27219 Merge branch 'master' into next 2018-06-27 11:43:01 +02:00
Matt Thompson 569dfd8e09 Add cmake option to conditionally compile SoapySDR 2018-06-21 11:42:28 -07:00
Andre Puschmann 2b937023dc remove usage of gold linker causing issues with some linkers and boost (rfci testbed) 2018-06-13 17:15:13 +02:00
Ismael Gomez 6120f20290
Changes in RRC and S1AP to make enb more robust on UE add/rem operations.
* Consolidated functions in S1AP

* Fixed ASAN in some GCC

* Stop quicker the enb

* Minor typo edit

* Fixed mutexing issues in RRC and possibly RLC/PDCP when adding/removing users
2018-06-12 17:31:07 +02:00
Andre Puschmann 2c179dd84f add config install helper 2018-06-05 11:34:01 +02:00
Xavier Arteaga 681b98ae50 Added vector CFO 2018-05-25 16:06:32 +02:00
Andre Puschmann 3fe6dad323 adding hard SIM card support using PCSC 2018-05-15 12:40:29 +02:00
Ismael Gomez aa1724b8f3 Add missing-field-initializers flag and properly initialize structs 2018-04-29 17:55:19 +02:00
Joseph Giovatto ab1d9e98f3 Format and typelimit warnings (#169)
* merge with origin 4fc7dbc3 8daa8346

* fixed whitespace diff

* added .gitignore

* added format warning flags to C_FLAGS
added typelimit check to C_FLAGS and CXX_CLAGS

* Revert "added format warning flags to C_FLAGS"

Apply to branch format_and_typelimt branch

This reverts commit bf7467e82ec7b056ad06dc50cc964fcce18be99b.

* check for format warnings to top level C_FLAGS
added typelimit warnings to top level C_FLAGS and CXX_FLAGS
beset effort attempt to remedy warnings
removed unused param names in hex_log baseclass methods due to multitude of unused-warnings
2018-04-29 17:26:35 +02:00
Joseph Giovatto 9f5069cdc8 Format and typelimit warnings (#169)
* merge with origin 4fc7dbc3 8daa8346

* fixed whitespace diff

* added .gitignore

* added format warning flags to C_FLAGS
added typelimit check to C_FLAGS and CXX_CLAGS

* Revert "added format warning flags to C_FLAGS"

Apply to branch format_and_typelimt branch

This reverts commit bf7467e82ec7b056ad06dc50cc964fcce18be99b.

* check for format warnings to top level C_FLAGS
added typelimit warnings to top level C_FLAGS and CXX_FLAGS
beset effort attempt to remedy warnings
removed unused param names in hex_log baseclass methods due to multitude of unused-warnings
2018-04-29 17:24:35 +02:00
Joseph Giovatto 49da57c8a1 Changed log methods to take string literal vs string object
to allow for format checking and save on object copy.
Fixed log format specifier warnings.
2018-03-29 16:59:19 +02:00
Andre Puschmann 2cf5acf9c8 set valgrind options correctly
this avoid an ugly valgrind error after executing long sequences
of simd code

see: https://www.bountysource.com/issues/41603953-temporary-storage-exhausted-when-long-sequence-of-vfmadd231ps-instructions-to-be-executed
2018-03-29 14:48:35 +02:00
Andre Puschmann 9c006e4585 remove boost system dependency 2018-03-29 12:12:15 +02:00
Andre Puschmann 37e06d78ea fix build_mode printing in RelWithDebInfo mode 2018-03-19 13:22:50 +01:00
Ismael Gomez 58f204d94a Set DEBUG constant for RelWithDebug 2018-03-14 21:19:02 +01:00
Andre Puschmann c3088e1d16 add cmake option to enable address sanitizer 2018-03-06 20:50:25 +01:00
Paul Sutton 1fd2341932 Minor typo fix 2018-02-07 09:37:26 +00:00
Andre Puschmann 5a35cef4b0 remove static FFTW library as strict dependency 2018-01-23 14:54:26 +01:00
Pedro Alvarez 042552491b Merging next into epc branch. 2018-01-08 14:45:13 +00:00
yagoda a66db9569f adding cmake SIMD check 2017-12-13 22:11:25 +00:00
Ismael Gomez d428760b20 Merge branch 'next' into mobility 2017-11-24 12:02:41 +01:00
Andre Puschmann dc65e4243c print build info to log and on stdout 2017-11-23 13:25:40 +01:00
Ismael Gomez 12d8b373c7 srsUE takes and reports intra-frequency measurements correctly 2017-11-20 10:02:39 +01:00
Ismael Gomez e04a221911 Removed volk occurrences. Fixes #103 2017-11-16 12:14:27 +01:00
Pedro Alvarez 5c0e2ee32e Starting to add CMake support 2017-10-09 14:11:43 +01:00
Pedro Alvarez 3e5e244440 Changing CMakeLists to compile EPC 2017-10-09 12:22:17 +01:00
Xavier Arteaga 94a06867a3 Optimized SIMD includes and solved AVX512 bugs 2017-09-29 16:42:46 +02:00
Xavier Arteaga 0c52c5651d Merge branch 'next_novolk' of https://github.com/softwareradiosystems/srsLTE into next_novolk 2017-09-25 13:23:50 +02:00
Xavier Arteaga 2b775462f7 Added LV_HAVE_AVX512 to CMakeLists 2017-09-25 13:07:01 +02:00
Ismael Gomez bf79d463d4 Merge branch 'next' into next_novolk 2017-09-13 17:10:22 +02:00
Ismael Gomez a51b6b09dd Merged with next. Attach successful 2017-09-01 19:32:57 +02:00
Ismael Gomez e5feec1934 Temporal commit before merge. Changed sequence objects to avoid reallocating memory. new NAS/RRC working with initial attachment 2017-09-01 13:29:11 +02:00
Ismael Gomez fd2a6f13e2 Merge branch 'next' into next_novolk 2017-07-07 16:34:05 +02:00
Ismael Gomez 2c85d3f890 added ctest options for valgrind 2017-06-27 11:42:49 +02:00
Paul Sutton ce88544d07 Minor fft library tidy-up 2017-06-23 19:36:30 +01:00
Paul Sutton fd08dd56ba Fix for security library find scripts 2017-06-23 16:47:54 +01:00
Paul Sutton 776c1bbc9d Moving fftw checks to top CMakeLists 2017-06-23 15:51:36 +01:00
Paul Sutton b71f7b7080 Adding support for static builds 2017-06-23 14:49:21 +01:00
Ismael Gomez 681a2455d9 Merge branch 'next' into next_novolk 2017-06-22 18:08:14 +02:00
Ismael Gomez 3cbf403c54 check for compiler flag availability 2017-06-09 11:49:35 +02:00
Ismael Gomez 72a2b06238 Fixed incompatibility with volk1.2 Make pointer type warnings an error 2017-06-09 11:33:46 +02:00
Ismael Gomez ec34d56e77 final merging changes 2017-06-08 15:15:00 +02:00
Ismael Gomez 1b4706f510 Merge branch 'next_private' into novolk 2017-06-08 15:08:07 +02:00
Ismael Gomez 975a41d55f Merge branch 'next_private' into novolk 2017-06-08 12:31:47 +02:00
Paul Sutton 07d8997395 Merge branch 'next' into next_paul_libs 2017-06-08 11:26:33 +01:00
Paul Sutton 4b68272964 Switch to static internal libs, set -fPIC by default 2017-06-08 11:22:02 +01:00
Andre Puschmann 3e5a3d0d82 add Cmake option to turn on default LTE sampling rates 2017-06-07 12:39:00 +02:00
Ismael Gomez 0f4bdf612c moved FFT reqs to srslte/phy 2017-06-07 12:03:54 +02:00
Paul Sutton 0b21353c4a Fixing srslte library headers install 2017-06-02 17:23:12 +01:00
Paul Sutton 0b64e8a9ee Minor cleanup of security library handling in cmake 2017-06-02 15:59:03 +01:00
Paul Sutton b2c3b31a59 Removing support for direct LimeSDR drivers - only supporting through SoapySDR 2017-06-02 15:41:21 +01:00
Paul Sutton 5d4d07a14a Merge branch 'restruct_update' of https://github.com/softwareradiosystems/srslte into restruct_update 2017-06-02 15:21:51 +01:00
Paul Sutton a9f0a5d868 Tidy up of CMake options 2017-06-02 15:21:26 +01:00
Paul Sutton bed2aec2a4 Updating compiler flags 2017-06-02 14:37:46 +01:00
Ismael Gomez 930147fcda moved boost requirement to root cmake 2017-06-02 11:53:51 +02:00
Ismael Gomez e5ae82aef1 added srsENB code 2017-06-01 12:25:57 +02:00
Ismael Gomez e75daee148 renamed include paths for common objects 2017-05-31 23:39:17 +02:00
Ismael Gomez 3327024c16 added ENABLE_GUI option 2017-05-31 22:18:07 +02:00
Ismael Gomez b7551111cb moved ENABLE_GUI to root 2017-05-31 21:04:03 +02:00
Andre Puschmann 1d1916d6e0 Merge branch 'restruct_update' into restruct_update_paul 2017-05-31 16:21:18 +02:00
Andre Puschmann bcecdf292b add C++ compile flags and enable useful warnings 2017-05-31 13:44:10 +02:00
Paul Sutton 80140c7c38 minor cmake edits 2017-05-30 18:14:41 +01:00
Andre Puschmann 5ed2c3d5a5 fix srsUE build without RF driver 2017-05-30 15:55:08 +02:00
Andre Puschmann 928ef71b82 adding remaining srsUE code 2017-05-30 15:50:48 +02:00
Andre Puschmann 5d66e9701f fixing CMake scripts and include paths 2017-05-30 15:10:19 +02:00
Andre Puschmann 5d5b847551 fixing cmake scripts 2017-05-18 12:57:52 +02:00
Ismael Gomez 94c7f56fbd Merge branch 'next' into novolk 2017-03-09 17:55:59 +01:00
Ismael Gomez e8ab4ce24d workaround for simd lut in debug mode 2017-03-08 11:53:55 +01:00
Paul Sutton 8adbc19c21 Merged master 2017-03-06 16:05:47 +00:00
Paul Sutton 619ed43e11 Removing old test files and references 2017-03-06 15:59:17 +00:00
yagoda 7c30d85536 fixing errors with compiler flags 2017-02-15 11:47:45 +00:00
Paul Sutton 932ed9b247 Added GCC_ARCH option to manually set -march in GCC 2017-01-27 11:56:59 +00:00
Ismael Gomez bd77f2d360 typo in avx2 check 2017-01-20 11:56:31 +01:00
Ismael Gomez 1cef7818e7 typo in avx2 check 2017-01-20 11:55:20 +01:00
Ismael Gomez b1951ec850 fixed failing tests due to compiler flag 2017-01-19 19:28:13 +01:00
Ismael Gomez 49a2a749a1 added more compiler flags. Added option for avx2 2017-01-19 18:30:45 +01:00
Ismael Gomez e43bdd5507 some fixes in cmake. added option to disable bladerf 2017-01-19 01:06:28 +01:00