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 | 2c0703f | 2020-01-07 12:46:28 +0100 | [diff] [blame] | 4 | SRCREV = "2862f9082ed4f16383a134e1112610d76ad91bf0" |
Holger Hans Peter Freyther | 5428bbd | 2015-12-26 22:14:39 +0100 | [diff] [blame] | 5 | SRC_URI = "git://git.osmocom.org/libosmocore.git;protocol=git;nobranch=1" |
Pau Espin Pedrol | 2c0703f | 2020-01-07 12:46:28 +0100 | [diff] [blame] | 6 | PV = "1.3.0+gitr${SRCPV}" |
| 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 | |
| 27 | EXTRA_OECONF += "--disable-pcsc" |
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. |
| 39 | EXTRA_OECONF += "--disable-detect-tls-gcc-arm-bug" |