summaryrefslogtreecommitdiff
path: root/recipes-support
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2014-05-02 17:24:28 +0200
committerStefan Agner <stefan.agner@toradex.com>2014-05-02 17:24:28 +0200
commit764515d9a7f8614b91d371aca7138035c194b826 (patch)
tree710e788b57e16e0e3c64bae5e0e9afcf1f5eb8aa /recipes-support
parent03bd4e23f55abaf76f10fc8480f9d9e7204aa84a (diff)
mcc-pingpong: demo application for ping pong with Cortex M4
Diffstat (limited to 'recipes-support')
-rw-r--r--recipes-support/mcc-pingpong/mcc-pingpong/makefile-use-libs.patch19
-rw-r--r--recipes-support/mcc-pingpong/mcc-pingpong/update-mcc_free_buffer-call.patch19
-rw-r--r--recipes-support/mcc-pingpong/mcc-pingpong_1.0.bb24
3 files changed, 62 insertions, 0 deletions
diff --git a/recipes-support/mcc-pingpong/mcc-pingpong/makefile-use-libs.patch b/recipes-support/mcc-pingpong/mcc-pingpong/makefile-use-libs.patch
new file mode 100644
index 0000000..4e6b921
--- /dev/null
+++ b/recipes-support/mcc-pingpong/mcc-pingpong/makefile-use-libs.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile b/Makefile
+index 7a1fc14..a0f8f4a 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,12 +1,12 @@
+ INSTALL_PATH=$(DESTDIR)/usr/bin
+
+-LDFLAGS+=-lmcc
++LDLIBS+=-lmcc
+
+ all: build/mcc-pingpong
+
+ build/mcc-pingpong: src/pingpong.c
+ mkdir -p build/
+- $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS)
++ $(CC) $< -o $@ $(CFLAGS) $(LDLIBS) $(LDFLAGS)
+
+ install:
+ mkdir -p $(INSTALL_PATH)
diff --git a/recipes-support/mcc-pingpong/mcc-pingpong/update-mcc_free_buffer-call.patch b/recipes-support/mcc-pingpong/mcc-pingpong/update-mcc_free_buffer-call.patch
new file mode 100644
index 0000000..bdd00b5
--- /dev/null
+++ b/recipes-support/mcc-pingpong/mcc-pingpong/update-mcc_free_buffer-call.patch
@@ -0,0 +1,19 @@
+commit c7db59e08ff1dfb30ae4aba8d6274b0cc8a0f228
+Author: Anthony Felice <tony.felice@timesys.com>
+Date: Mon Apr 15 19:24:06 2013 -0400
+
+ Update call to mcc_free_buffer to comply with API change.
+
+diff --git a/src/pingpong.c b/src/pingpong.c
+index 3d49fc8..5850059 100644
+--- a/src/pingpong.c
++++ b/src/pingpong.c
+@@ -121,7 +121,7 @@ int main(int argc, char** argv)
+ return 1;
+ }
+
+- mcc_free_buffer(null, data);
++ mcc_free_buffer(data);
+ }
+
+ mcc_destroy(node_num);
diff --git a/recipes-support/mcc-pingpong/mcc-pingpong_1.0.bb b/recipes-support/mcc-pingpong/mcc-pingpong_1.0.bb
new file mode 100644
index 0000000..6e86803
--- /dev/null
+++ b/recipes-support/mcc-pingpong/mcc-pingpong_1.0.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "MultiCore Communication Ping-Pong Demo Application"
+SECTION = "examples"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c49712341497d0b5f2e40c30dff2af9d"
+PR = "r0"
+
+SRC_URI = " \
+ http://repository.timesys.com/buildsources/m/mcc-pingpong/mcc-pingpong-${PV}/mcc-pingpong-${PV}.tar.bz2 \
+ file://update-mcc_free_buffer-call.patch \
+ file://makefile-use-libs.patch \
+"
+
+SRC_URI[md5sum] = "a03417c37f97849baa794e37d88e0cd2"
+SRC_URI[sha256sum] = "ad25a15f34eb758b7896d327a28ef884e2ab04851cff42f059b32dc63e42704b"
+
+S = "${WORKDIR}/mcc-pingpong-${PV}"
+
+DEPENDS = "libmcc"
+
+do_install (){
+ oe_runmake DESTDIR=${D} install
+}
+
+COMPATIBLE_MACHINE = "(vf60)"