From 6fe3d672990da107909a20c9870c702b32dc20ce Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 11 Nov 2011 21:37:15 +0800 Subject: [PATCH] misdn: Build the userspace library Apply a local patch to increase the the buffer size, on different platforms the kernel structs have holes that this calculation did not account for. --- recipes-isdn/misdn/files/misdn-ph-size.diff | 13 +++++++++++++ recipes-isdn/misdn/misdn-utils_git.bb | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 recipes-isdn/misdn/files/misdn-ph-size.diff create mode 100644 recipes-isdn/misdn/misdn-utils_git.bb diff --git a/recipes-isdn/misdn/files/misdn-ph-size.diff b/recipes-isdn/misdn/files/misdn-ph-size.diff new file mode 100644 index 0000000000..98bf866d26 --- /dev/null +++ b/recipes-isdn/misdn/files/misdn-ph-size.diff @@ -0,0 +1,13 @@ +diff --git a/include/mISDN/mbuffer.h b/include/mISDN/mbuffer.h +index 5e3dc96..8e6ed52 100644 +--- a/include/mISDN/mbuffer.h ++++ b/include/mISDN/mbuffer.h +@@ -54,7 +54,7 @@ struct mbuffer { + struct l3_msg l3; + } __attribute__((__may_alias__)); + +-#define MBUFFER_DATA_SIZE 280 ++#define MBUFFER_DATA_SIZE 400 + + /* + * init mbuffer caching diff --git a/recipes-isdn/misdn/misdn-utils_git.bb b/recipes-isdn/misdn/misdn-utils_git.bb new file mode 100644 index 0000000000..7e37837fd5 --- /dev/null +++ b/recipes-isdn/misdn/misdn-utils_git.bb @@ -0,0 +1,18 @@ +DESCRITOPN = "mISDNutils userspace library" +HOMEPAGE = "http://misdn.org" +LICENSE = "LGPLv2+" +LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605" +PR = "r3" + +SRC_URI = "git://git.misdn.org/mISDNuser.git \ + file://misdn-ph-size.diff" +SRCREV = "609658c19630c01f82cbfb5687fc70a356fc6db5" +S = "${WORKDIR}/git" + +PACKAGES =+ "misdn-tools-dbg misdn-tools" + +inherit autotools + +FILES_misdn-tools = "${bindir} ${sbindir}" +FILES_misdn-tools-dbg = "${bindir}/.debug ${sbindir}/.debug" +RDEPENDS_misdn-tools-dbg = "${PN}-dbg"