Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 1 | require ${PN}.inc |
| 2 | |
| 3 | S = "${WORKDIR}/git" |
Pau Espin Pedrol | 50ddc77 | 2023-02-08 10:06:26 +0100 | [diff] [blame] | 4 | SRCREV = "1.8.0" |
Oliver Smith | ddfa2fc | 2022-09-16 15:25:26 +0200 | [diff] [blame] | 5 | SRC_URI = "git://gerrit.osmocom.org/libosmocore.git;protocol=https;tag=${SRCREV};nobranch=1" |
Pau Espin Pedrol | 50ddc77 | 2023-02-08 10:06:26 +0100 | [diff] [blame] | 6 | PV = "1.8.0+gitr${SRCPV}" |
Pau Espin Pedrol | 2e72223 | 2021-11-17 12:57:13 +0100 | [diff] [blame] | 7 | PR = "${INC_PR}.0" |
Holger Hans Peter Freyther | d9a5b19 | 2014-08-25 08:19:02 +0200 | [diff] [blame] | 8 | |
Daniel Willmann | 89b0dcb | 2019-08-15 15:28:13 +0200 | [diff] [blame] | 9 | PACKAGES =+ "libosmoctrl libosmocodec libosmogb libosmogsm libosmovty osmo-arfcn osmo-auc-gen osmo-config-merge" |
Holger Hans Peter Freyther | d9a5b19 | 2014-08-25 08:19:02 +0200 | [diff] [blame] | 10 | FILES_libosmoctrl = "${libdir}/libosmoctrl${SOLIBS}" |
Holger Hans Peter Freyther | 0f016bb | 2016-02-27 09:27:29 +0100 | [diff] [blame] | 11 | FILES_libosmocodec = "${libdir}/libosmocodec${SOLIBS}" |
| 12 | FILES_libosmogb = "${libdir}/libosmogb${SOLIBS}" |
| 13 | FILES_libosmogsm = "${libdir}/libosmogsm${SOLIBS}" |
| 14 | FILES_libosmovty = "${libdir}/libosmovty${SOLIBS}" |
| 15 | FILES_osmo-arfcn = "${bindir}/osmo-arfcn" |
| 16 | FILES_osmo-auc-gen = "${bindir}/osmo-auc-gen" |
Daniel Willmann | 89b0dcb | 2019-08-15 15:28:13 +0200 | [diff] [blame] | 17 | FILES_osmo-config-merge = "${bindir}/osmo-config-merge" |
Holger Hans Peter Freyther | 0f016bb | 2016-02-27 09:27:29 +0100 | [diff] [blame] | 18 | |
| 19 | # Requires fix for upgrades |
| 20 | RREPLACES_libosmocore = "DONOTREPLACElibosmocore" |
| 21 | RREPLACES_libosmoctrl = "DONOTREPLACElibosmocore" |
| 22 | RREPLACES_libosmocodec = "DONOTREPLACElibosmocore" |
| 23 | RREPLACES_libosmogb = "DONOTREPLACElibosmocore" |
| 24 | RREPLACES_libosmogsm = "DONOTREPLACElibosmocore" |
| 25 | RREPLACES_libosmovty = "DONOTREPLACElibosmocore" |
Holger Hans Peter Freyther | 70922d8 | 2014-12-30 12:20:41 +0100 | [diff] [blame] | 26 | |
Oliver Smith | 4d12ed5 | 2023-08-25 13:49:27 +0200 | [diff] [blame^] | 27 | EXTRA_OECONF += "--disable-pcsc --disable-uring" |
Pau Espin Pedrol | 6b07fdc | 2019-08-06 13:52:15 +0200 | [diff] [blame] | 28 | |
| 29 | # OS#4062: Some gcc version (< 7.3.0) on ARM generate wrong code for __thread |
| 30 | # variables that crash at runtime. It seems, due to some unknown reason, that we |
| 31 | # are not affected by this bug with toolchain from poky pyro (6.4.0). However, |
| 32 | # libosmocore as of e188b8cd98f599468fbb200c7d590de955daf761 applies some |
| 33 | # CFLAGS="-mtls-dialect=gnu2" to workaround the issue automatically. But same |
| 34 | # toolchain contains an "ld" that crashes when those flags are applied. |
| 35 | # Fortunately, libosmocore provides a way to disable the workaround, and since |
| 36 | # we are not affected by the bug, we are fine with that. If the toolchain had |
| 37 | # the TLS runtime bug, then we'd had to build with -O0. Can be probably dropped |
| 38 | # once we move to newer toolchain. |
Pau Espin Pedrol | ddb0211 | 2021-04-21 14:46:46 +0200 | [diff] [blame] | 39 | #EXTRA_OECONF += "--disable-detect-tls-gcc-arm-bug" |
| 40 | # UPDATE: OS#5079: we stop using "--disable-detect-tls-gcc-arm-bug" because we |
| 41 | # finally hit the TLS bug in sysmobts (osmo-bts-symo calling osmo_str_tolower() |
| 42 | # which uses "static __thread char capsbuf"). As a result, the only option would |
| 43 | # be to use -O0 when building libosmocore with the sysmobts toolchain. In order |
| 44 | # to avoid that, we take advantage of the fact that no libosmocore multi-thread |
| 45 | # process is expected to run there and simply drop all the "__thread" |
| 46 | # references when building for sysmobts. That's done as a machine-specific |
| 47 | # bbappend in meta-sysmocom-bsp. |