aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-01-06 12:06:45 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2015-01-12 10:23:45 -0200
commitf706698db3cdbb959837136255bf6557e89e1927 (patch)
tree9acffd4fa76df837e769db204a129673a6798885
parent61aeebb34b1eaf0b10674e27378dd1e012b79cba (diff)
downloadmeta-fsl-arm-f706698db3cdbb959837136255bf6557e89e1927.tar.gz
meta-fsl-arm-f706698db3cdbb959837136255bf6557e89e1927.tar.bz2
meta-fsl-arm-f706698db3cdbb959837136255bf6557e89e1927.zip
libmcc: Fix symbolic link for dynamic library
This fixes the Makefile to properly generate the symlink inside the installation directory. Change-Id: I18ad51c87f64780bfdd8bd70abdda5554439d9e8 Reported-by: Petr Kubizňák <kubiznak.petr@elnico.cz> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-bsp/libmcc/libmcc/build-Fix-symlink-generation.patch32
-rw-r--r--recipes-bsp/libmcc/libmcc_1.05.bb3
2 files changed, 34 insertions, 1 deletions
diff --git a/recipes-bsp/libmcc/libmcc/build-Fix-symlink-generation.patch b/recipes-bsp/libmcc/libmcc/build-Fix-symlink-generation.patch
new file mode 100644
index 0000000..0aebe00
--- /dev/null
+++ b/recipes-bsp/libmcc/libmcc/build-Fix-symlink-generation.patch
@@ -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
+
diff --git a/recipes-bsp/libmcc/libmcc_1.05.bb b/recipes-bsp/libmcc/libmcc_1.05.bb
index c391347..de5ec7f 100644
--- a/recipes-bsp/libmcc/libmcc_1.05.bb
+++ b/recipes-bsp/libmcc/libmcc_1.05.bb
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c49712341497d0b5f2e40c30dff2af9d"
DEPENDS = "kernel-module-mcc"
-SRC_URI = "http://repository.timesys.com/buildsources/l/libmcc/libmcc-${PV}/libmcc-${PV}.tar.bz2"
+SRC_URI = "http://repository.timesys.com/buildsources/l/libmcc/libmcc-${PV}/libmcc-${PV}.tar.bz2 \
+ file://build-Fix-symlink-generation.patch"
SRC_URI[md5sum] = "cc3965f162dd20b8e6b9babf5dd963ee"
SRC_URI[sha256sum] = "b98c1f857bf851e41c35c4fcdb823e83e0e058c746dffb50038c8759c8c1e104"