mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
libmcc: Add MCC v1 library
MCC v1 is going to be dropped from meta-fsl-arm, but the Toradex kernel uses MCC v1. Add the library to meta-fsl-arm-extra. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
d7a5522395
commit
5dd5be98a2
32
recipes-bsp/libmcc/libmcc/build-Fix-symlink-generation.patch
Normal file
32
recipes-bsp/libmcc/libmcc/build-Fix-symlink-generation.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
From adef7a71a3bd40650685183c8a023000423ec880 Mon Sep 17 00:00:00 2001
|
||||
From: Otavio Salvador <otavio@ossystems.com.br>
|
||||
Date: Tue, 6 Jan 2015 12:03:27 -0200
|
||||
Subject: [PATCH] build: Fix symlink generation
|
||||
Organization: O.S. Systems Software LTDA.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
||||
---
|
||||
Makefile | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index ac46f5c..248b2eb 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -14,9 +14,8 @@ install:
|
||||
mkdir -p $(DESTDIR)/usr/include $(DESTDIR)/usr/lib
|
||||
cp -f build/libmcc.so.* build/libmcc.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
|
||||
+ ln -sf libmcc.so.1.0 $(DESTDIR)/usr/lib/libmcc.so.1
|
||||
+ ln -sf libmcc.so.1 $(DESTDIR)/usr/lib/libmcc.so
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
--
|
||||
2.1.4
|
||||
|
18
recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch
Normal file
18
recipes-bsp/libmcc/libmcc/build-with-versioned-soname.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
libmcc: build with versioned soname
|
||||
|
||||
This adds a versioned soname to the shared library during linking.
|
||||
Otherwise an application linked with '-lmcc' needs libmcc.so for execution,
|
||||
having libmcc.so.1 would not be enough.
|
||||
|
||||
Signed-off-by: Max Krummenacher <max.oss.09@gmail.com>
|
||||
--- a/Makefile 2015-01-07 17:09:13.657675270 +0100
|
||||
+++ b/Makefile 2015-01-07 17:21:19.457545709 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
$(AR) rcs $@ $<
|
||||
|
||||
build/libmcc.so.1.0: build/libmcc.o
|
||||
- $(CC) -shared -o $@ $<
|
||||
+ $(CC) -shared -Wl,-soname,libmcc.so.1 -o $@ $< -lc
|
||||
|
||||
install:
|
||||
mkdir -p $(DESTDIR)/usr/include $(DESTDIR)/usr/lib
|
28
recipes-bsp/libmcc/libmcc_1.05.bb
Normal file
28
recipes-bsp/libmcc/libmcc_1.05.bb
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Copyright (C) 2013 Timesys Corporation
|
||||
SUMMARY = "Multicore communication Library"
|
||||
LICENSE = "GPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c49712341497d0b5f2e40c30dff2af9d"
|
||||
|
||||
DEPENDS = "virtual/kernel-module-mcc"
|
||||
|
||||
SRC_URI = "http://repository.timesys.com/buildsources/l/libmcc/libmcc-${PV}/libmcc-${PV}.tar.bz2 \
|
||||
file://build-Fix-symlink-generation.patch \
|
||||
file://build-with-versioned-soname.patch"
|
||||
|
||||
SRC_URI[md5sum] = "cc3965f162dd20b8e6b9babf5dd963ee"
|
||||
SRC_URI[sha256sum] = "b98c1f857bf851e41c35c4fcdb823e83e0e058c746dffb50038c8759c8c1e104"
|
||||
|
||||
S = "${WORKDIR}/libmcc-${PV}"
|
||||
|
||||
CFLAGS += "-I${STAGING_KERNEL_DIR}/include"
|
||||
|
||||
RDEPENDS_${PN} = "virtual/kernel-module-mcc"
|
||||
|
||||
COMPATIBLE_MACHINE = "(vf60)"
|
||||
|
||||
do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
}
|
||||
|
||||
RDEPENDS_${PN}-dev += "virtual/kernel-module-mcc-dev"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
Loading…
Reference in New Issue
Block a user