1. 03 Nov, 2017 1 commit
    • Harald Welte's avatar
      Call osmo_init_logging() before static BTS constructor · bd2333cd
      Harald Welte authored
      The BTS constructor uses functions of libosmocore that could in turn
      want to log something.  This requires the logging to be initialized
      before.
      
      The only way to achieve this is to add an __attribute__((constructor))
      function *before* the BTS constructor is being run.
      
      This solution might not be elegant, but  I guess it's the only way to
      initialize a C library before calling C++ constructors of global static
      instance of a class.
      
      In case anyone comes up with a better / cleaner approach, we can always
      change later.
      
      This change requires libosmocore >= 0.10.1, as only that permits
      multiple calls to osmo_init_logging() which may now occur.
      
      Change-Id: I28dc4f0db229518348c92413959fed5ae85d753d
      bd2333cd
  2. 29 Oct, 2017 1 commit
    • Harald Welte's avatar
      Call osmo_init_logging() before static BTS constructor · 3e51d3e5
      Harald Welte authored
      The BTS constructor uses functions of libosmocore that could in turn
      want to log something.  This requires the logging to be initialized
      before.
      
      The only way to achieve this is to add an __attribute__((constructor))
      function *before* the BTS constructor is being run.
      
      This solution might not be elegant, but  I guess it's the only way to
      initialize a C library before calling C++ constructors of global static
      instance of a class.
      
      In case anyone comes up with a better / cleaner approach, we can always
      change later.
      
      This change requires libosmocore >= 0.10.1, as only that permits
      multiple calls to osmo_init_logging() which may now occur.
      
      Change-Id: I28dc4f0db229518348c92413959fed5ae85d753d
      3e51d3e5
  3. 24 Aug, 2017 1 commit
    • Max's avatar
      Facilitate future releases · d78adfb5
      Max authored
      * use release helper from libosmocore
      * use semantic versioning
      
      Change-Id: Ie0a7f5977550bd0a1ba8b03bdb7e2d619a398e4e
      Related: OS#1861
      d78adfb5
  4. 11 Jun, 2017 2 commits
    • Harald Welte's avatar
      lc15: further fixes regarding --with-litecell15 · c136be04
      Harald Welte authored
      The fix in 0fb294a8 was only partially
      valid, as it unconditionally used $includedir, without any prefix.  This
      polluted the include path with host include files in cross-compiling
      builds.
      
      Let's take a different approach and simply define LITECELL15_CFLAGS
      (similar to what pkgconfig does), which makes the "-I" go away if no
      --with-litecell15 has been specified.
      
      Change-Id: I63393decfe42a24dab56c7654f716c1580416ab2
      c136be04
    • Harald Welte's avatar
      lc15: fix configure.ac variable substitution causing compile error · 0fb294a8
      Harald Welte authored
      When "--enable-lc15bts-phy" is passed to './configure' without specifying
      an explicit header file path using "--with-litecell15=", we ended up
      generating an empty string as LITECELL15_INCDIR and rendered something
      like "-DENABLE_DIRECT_PHY  -I -I../../git/src/osmo-bts-litecell15" as
      part of the compiler invocation, where the -I with no argument will hide
      the second -I, as the second one is supposed to be the optarg for the
      first include.
      
      This in turn made the "#include <lc15_l1_if.h>" fail, when using
      separate source and build directories.
      
      This patch fixes the configur script to use $includedir, rather than the
      non-existant $incdir as default for LITECELL15_INCDIR
      
      Change-Id: I483e62f8331e7867a92f8055c4d450fdd5288cb6
      0fb294a8
  5. 09 Mar, 2017 1 commit
    • Max's avatar
      Add pkg-config file · 727295f2
      Max authored
      We're installing header file pcuif_proto.h so it's better to use
      pkg-config for proper version tracking similar to the way it's done for
      OpenBSC.
      
      Change-Id: I0520045e5655794df152b98b9755d7cbbd334049
      727295f2
  6. 17 Nov, 2016 1 commit
    • Harald Welte's avatar
      Install the pcuif_proto.h header file · 68fc1277
      Harald Welte authored
      So far, we used to keep a copy of the header file around in
      both osmo-pcu and osmo-bts projects.  Before we start introducing
      a third copy in openbsc, let's have the osmo-pcu install the header
      file and make the other programs use that.
      
      Change-Id: I60976c9be5488256d1ff55fdc5aa548e3705400d
      68fc1277
  7. 03 Oct, 2016 1 commit
    • Neels Hofmeyr's avatar
      build: add -Wall · 6348aea6
      Neels Hofmeyr authored
      I noticed that unused variables are not complained about by the build. Let's
      add -Wall.
      
      I also noticed that the Makefile.ams include STD_DEFINES_AND_INCLUDES, which is
      never set in configure.ac, so using that to add -Wall to all build contexts.
      
      Change-Id: I16711cf5a1ef8bd611074b3dd486ed7a0ae9df64
      6348aea6
  8. 30 Sep, 2016 2 commits
    • Neels Hofmeyr's avatar
      configure: check for pkg-config presence · da66f71f
      Neels Hofmeyr authored
      Change-Id: Iaaeb2a926fc3832793dfb3f02e4ced2500950997
      da66f71f
    • Neels Hofmeyr's avatar
      build: be robust against install-sh files above the root dir · da933e0f
      Neels Hofmeyr authored
      Explicitly set AC_CONFIG_AUX_DIR.
      
      To reproduce the error avoided by this patch:
      
        rm install-sh        # in case it was already generated.
        touch ../install-sh  # yes, outside this source tree
        autoreconf -fi
      
      This will produce an error like
      
        ...
        configure.ac:16: error: required file '../ltmain.sh' not found
        configure.ac:5: installing '../missing'
        src/Makefile.am: installing '../depcomp'
        autoreconf: automake failed with exit status: 1
      
      See also automake (vim `which automake`) and look for 'sub locate_aux_dir'.
      
      Change-Id: Ie9a10f14c5e8c5e9b6ea4910b4b9abb7e70f5e04
      da933e0f
  9. 20 May, 2016 1 commit
    • Yves Godin's avatar
      Add support for NuRAN Wireless Litecell 1.5 BTS · 660709dc
      Yves Godin authored
      Layer 1 compatibility with previous generation or NuRan GSM product,
      therefore the support for the Litecell 1.5 uses its own sources instead
      of using tons of ifdef/endif.
      
      Max's amendments:
      * make headers path configurable
      * use configured TRX instead of hardcoded value
      * split subdir-objects into separate commit
      * cosmetic changes
      
      Change-Id: Ib1287375cb10a889625bbac8528fa60deed23a2b
      Fixes: SYS#2443
      Reviewed-on: https://gerrit.osmocom.org/61
      Tested-by: Jenkins Builder
      Reviewed-by: Harald Welte's avatarHarald Welte <laforge@gnumonks.org>
      660709dc
  10. 13 Nov, 2015 1 commit
    • Harald Welte's avatar
      remove obsolete OpenBTS PCU interface support · 08e5d604
      Harald Welte authored
      This OpenBTS socket interface was originally added to enable GPRS
      capabilitie with a forked version of OpenBTS, at a time when the public
      OpenBTS release didn't yet have any GPRS support.
      
      Meanwhile, the later OpenBTS releases included their own version of
      GPRS, without any external PCU/SGSN/GGSN, so this interface is no longer
      needed.
      
      This also means that the OsmoBTS socket interface is now the default at
      compilation time.  There is no other interface.
      08e5d604
  11. 12 Nov, 2015 1 commit
    • Harald Welte's avatar
      rename sysmo_sock.cpp to osmobts_sock.cpp · d32cbbb1
      Harald Welte authored
      This also renames the --enable-sysmbts option to --enable-osmobts
      
      This socket interface was nevery sysmoBTS specific, but it is a generic
      socket interface to any OsmoBTS supported layer1/hardware.  So it was a
      mis-nomer so far.
      d32cbbb1
  12. 22 May, 2015 1 commit
  13. 02 Aug, 2013 2 commits
  14. 24 Apr, 2013 1 commit
  15. 06 Apr, 2013 1 commit
  16. 23 Jan, 2013 1 commit
  17. 11 Jan, 2013 1 commit
  18. 18 Dec, 2012 1 commit
    • Andreas Eversberg's avatar
      Adding direct access to DSP of sysmoBTS for PDTCH traffice · a23c7eee
      Andreas Eversberg authored
      In order to use this feature, sysmoBTS requires option "-M", otherwise
      the traffic is forwarded through socket interface.
      
      This is essential, if PCU runs on processor of sysmoBTS. The reaction
      time and delay of PDTCH frames could heavily degrade proper packet flow.
      a23c7eee
  19. 06 Jul, 2012 1 commit
  20. 18 Jun, 2012 1 commit
  21. 14 Jun, 2012 1 commit