Commit 496a6d97 authored by Andy Voltz's avatar Andy Voltz Committed by Otavio Salvador

libmcc: Add package

This provides a userspace library which can be used in Linux
applications on Freescale Vybrid Platforms. This library interfaces
with the kernel-module-mcc to pass information to MQX running on the
M4.

Change-Id: Ia90dc6cb1cd26745288cda5637ddb06a1ea8a6bd
Signed-off-by: default avatarAndy Voltz <andy.voltz@timesys.com>
parent 153fa505
This patch is required with the Yocto toolchain.
Upstream-status: Pending
diff -Nuar libmcc-1.03-orig/Makefile libmcc-1.03/Makefile
--- libmcc-1.03-orig/Makefile 2013-08-12 14:43:50.063656300 -0400
+++ libmcc-1.03/Makefile 2013-08-12 14:44:10.007427139 -0400
@@ -1,9 +1,8 @@
-CFLAGS+=-Iinclude/
all: build/libmcc.a build/libmcc.so
build/libmcc.o: src/libmcc.c
mkdir -p build/
- $(CC) -c -fPIC $< -o $@ $(CFLAGS)
+ $(CC) -c -fPIC $< -o $@ -Iinclude/ $(CFLAGS)
build/libmcc.a: build/libmcc.o
$(AR) rcs $@ $<
This patch adds the proper version suffix to the libmcc shared libs.
Upstream-status: Pending
diff -Nuar libmcc-1.03-orig/Makefile libmcc-1.03/Makefile
--- libmcc-1.03-orig/Makefile 2013-08-13 10:05:46.187200835 -0400
+++ libmcc-1.03/Makefile 2013-08-13 12:23:45.167119943 -0400
@@ -1,4 +1,4 @@
-all: build/libmcc.a build/libmcc.so
+all: build/libmcc.a build/libmcc.so.1.0
build/libmcc.o: src/libmcc.c
mkdir -p build/
@@ -7,13 +7,16 @@
build/libmcc.a: build/libmcc.o
$(AR) rcs $@ $<
-build/libmcc.so: build/libmcc.o
+build/libmcc.so.1.0: build/libmcc.o
$(CC) -shared -o $@ $<
install:
mkdir -p $(DESTDIR)/usr/{lib,include}
- cp -f build/libmcc.{so,a} $(DESTDIR)/usr/lib
+ cp -f build/libmcc.{so.*,a} $(DESTDIR)/usr/lib
cp -f include/*.h $(DESTDIR)/usr/include
+ cd $(DESTDIR)/usr/lib/
+ ln -sf libmcc.so.1.0 libmcc.so.1
+ ln -sf libmcc.so.1 libmcc.so
clean:
rm -rf build
# Copyright (C) 2013 Timesys Corporation
SUMMARY = "MCC Userspace Library"
DESCRIPTION = "Timesys Multicore communication Library"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c49712341497d0b5f2e40c30dff2af9d"
RDEPENDS_${PN} = "kernel-module-mcc"
inherit autotools
SRC_URI = "http://repository.timesys.com/buildsources/l/libmcc/libmcc-${PV}/libmcc-${PV}.tar.bz2 \
file://libmcc-cflags.patch \
file://libmcc-symlink.patch"
SRC_URI[md5sum] = "adac15d52206be21a4589b2b923af4cc"
SRC_URI[sha256sum] = "8b4d88f260d4d3a67ee2c16e20112e0584403f350182087daa1cfafeceb16a7f"
S = "${WORKDIR}/libmcc-${PV}"
COMPATIBLE_MACHINE = "(vf60)"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment