osmocom-3g: Fix recipe for 3G image

Don't include mncc-upgrage patch and fix path for S
Install the service files manually instead of using foreach
This commit is contained in:
Daniel Willmann 2017-05-08 16:09:18 +02:00 committed by Daniel Willmann
parent 9e88443f01
commit ef80bf1800
3 changed files with 5 additions and 23 deletions

View File

@ -37,9 +37,9 @@ do_install_append() {
# Install systemd files and enable on sysinit
install -d ${D}${systemd_unitdir}/system
for i in `ls ${S}/contrib/systemd`; do
install -m 0644 ${S}/contrib/systemd/$i ${D}${systemd_unitdir}/system/
done
install -m 0644 ${S}/contrib/systemd/osmo-msc.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/contrib/systemd/osmo-sgsn.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/contrib/systemd/osmo-bsc-mgcp.service ${D}${systemd_unitdir}/system/
install -d ${D}/var/lib/osmocom
}

View File

@ -1,17 +0,0 @@
lcr uses MNCC_SOCK_VERSION 5, but this is binary compatible to
what openbsc thinks is version 4. The only difference is the added
RTP related commands, which are optional.
Index: openbsc/include/openbsc/mncc.h
===================================================================
--- openbsc.orig/include/openbsc/mncc.h
+++ openbsc/include/openbsc/mncc.h
@@ -163,7 +163,7 @@ struct gsm_data_frame {
unsigned char data[0];
};
-#define MNCC_SOCK_VERSION 4
+#define MNCC_SOCK_VERSION 5
struct gsm_mncc_hello {
uint32_t msg_type;
uint32_t version;

View File

@ -6,7 +6,6 @@ PR = "${INC_PR}.6"
# openbsc.git branch vlr_3G
SRCREV = "2e8ecf3af3c1ffab29357f45e4576b2d3b9268e4"
SRC_URI += "git://git.osmocom.org/openbsc.git;protocol=git \
file://upgrade-mncc-version.patch"
SRC_URI += "git://git.osmocom.org/openbsc.git;protocol=git"
S = "${WORKDIR}/git/osmocom-3g"
S = "${WORKDIR}/git/openbsc"