From e9114b15b722a0552aeadeddc0227588d0ef51e7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 11 Jun 2017 11:44:46 +0200 Subject: [PATCH] osmo-pcu: Support both sysmobts-v2 and sysmobts2100 machines --- recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb index b805e92..f622aa6 100644 --- a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb +++ b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb @@ -5,21 +5,26 @@ LIC_FILES_CHKSUM="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "git://git.osmocom.org/osmo-pcu.git;protocol=git;branch=jerlbeck/master" SRCREV = "6e75bc7fe304eec274f6e485a8b23a164fd4e28e" PV = "0.4+git${SRCPV}" -PR = "r4.${META_TELEPHONY_OSMO_INC}" +PR = "r5.${META_TELEPHONY_OSMO_INC}" S = "${WORKDIR}/git" -DEPENDS = "libosmocore femtobts-api osmo-bts" +DEPENDS = "libosmocore osmo-bts" +DEPENDS_append_sysmobts-v2 = " femtobts-api" +DEPENDS_append_litecell15 = " lc15-firmware" +DEPENDS_append_sysmobts2100 = " lc15-firmware" # This implements PCU Interface v5 (GPRS RSSI) RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)" EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp" +EXTRA_OECONF_litecell15 += "--enable-lc15bts-phy" +EXTRA_OECONF_sysmobts2100 += "--enable-lc15bts-phy" inherit autotools pkgconfig # Select the API version inherit femtobts_api -CPPFLAGS += " ${BTS_HW_VERSION} " +CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} " do_install_append() { # Install systemd and enable on sysinit