blob: 3a417f02210a27f2b921aaff05f1db64f83550c6 [file] [log] [blame]
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08001require ${PN}.inc
2
3S = "${WORKDIR}/git"
Pau Espin Pedrol43268152019-08-08 18:52:07 +02004SRCREV = "c996d652f974f803653ce66d27d60675c1f77c2e"
Holger Hans Peter Freyther5428bbd2015-12-26 22:14:39 +01005SRC_URI = "git://git.osmocom.org/libosmocore.git;protocol=git;nobranch=1"
Pau Espin Pedrol43268152019-08-08 18:52:07 +02006PV = "1.2.0+gitr${SRCPV}"
Pau Espin Pedrol45e51322019-01-30 15:25:58 +01007PR = "${INC_PR}.0"
Holger Hans Peter Freytherd9a5b192014-08-25 08:19:02 +02008
Holger Hans Peter Freyther0f016bb2016-02-27 09:27:29 +01009PACKAGES =+ "libosmoctrl libosmocodec libosmogb libosmogsm libosmovty osmo-arfcn osmo-auc-gen"
Holger Hans Peter Freytherd9a5b192014-08-25 08:19:02 +020010FILES_libosmoctrl = "${libdir}/libosmoctrl${SOLIBS}"
Holger Hans Peter Freyther0f016bb2016-02-27 09:27:29 +010011FILES_libosmocodec = "${libdir}/libosmocodec${SOLIBS}"
12FILES_libosmogb = "${libdir}/libosmogb${SOLIBS}"
13FILES_libosmogsm = "${libdir}/libosmogsm${SOLIBS}"
14FILES_libosmovty = "${libdir}/libosmovty${SOLIBS}"
15FILES_osmo-arfcn = "${bindir}/osmo-arfcn"
16FILES_osmo-auc-gen = "${bindir}/osmo-auc-gen"
17
18# Requires fix for upgrades
19RREPLACES_libosmocore = "DONOTREPLACElibosmocore"
20RREPLACES_libosmoctrl = "DONOTREPLACElibosmocore"
21RREPLACES_libosmocodec = "DONOTREPLACElibosmocore"
22RREPLACES_libosmogb = "DONOTREPLACElibosmocore"
23RREPLACES_libosmogsm = "DONOTREPLACElibosmocore"
24RREPLACES_libosmovty = "DONOTREPLACElibosmocore"
Holger Hans Peter Freyther70922d82014-12-30 12:20:41 +010025
26EXTRA_OECONF += "--disable-pcsc"
Pau Espin Pedrol6b07fdc2019-08-06 13:52:15 +020027
28# OS#4062: Some gcc version (< 7.3.0) on ARM generate wrong code for __thread
29# variables that crash at runtime. It seems, due to some unknown reason, that we
30# are not affected by this bug with toolchain from poky pyro (6.4.0). However,
31# libosmocore as of e188b8cd98f599468fbb200c7d590de955daf761 applies some
32# CFLAGS="-mtls-dialect=gnu2" to workaround the issue automatically. But same
33# toolchain contains an "ld" that crashes when those flags are applied.
34# Fortunately, libosmocore provides a way to disable the workaround, and since
35# we are not affected by the bug, we are fine with that. If the toolchain had
36# the TLS runtime bug, then we'd had to build with -O0. Can be probably dropped
37# once we move to newer toolchain.
38EXTRA_OECONF += "--disable-detect-tls-gcc-arm-bug"