From 764515d9a7f8614b91d371aca7138035c194b826 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 2 May 2014 17:24:28 +0200 Subject: mcc-pingpong: demo application for ping pong with Cortex M4 --- .../mcc-pingpong/makefile-use-libs.patch | 19 +++++++++++++++++ .../mcc-pingpong/update-mcc_free_buffer-call.patch | 19 +++++++++++++++++ recipes-support/mcc-pingpong/mcc-pingpong_1.0.bb | 24 ++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 recipes-support/mcc-pingpong/mcc-pingpong/makefile-use-libs.patch create mode 100644 recipes-support/mcc-pingpong/mcc-pingpong/update-mcc_free_buffer-call.patch create mode 100644 recipes-support/mcc-pingpong/mcc-pingpong_1.0.bb (limited to 'recipes-support') 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 +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)" -- cgit v1.2.3