diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:41:56 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:41:56 +0100 |
commit | 177ef53047019757b70b5ca87171b2c88e26ba07 (patch) | |
tree | 70e3284e64755ae93c130e00f810ba5c501801b9 /recipes-dpaa/fmlib | |
download | meta-fsl-ppc-enea_linux_3.tar.gz |
initial commit of Enea Linux 3.1enea_linux_3
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-dpaa/fmlib')
-rw-r--r-- | recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch | 43 | ||||
-rw-r--r-- | recipes-dpaa/fmlib/fmlib_git.bb | 43 |
2 files changed, 86 insertions, 0 deletions
diff --git a/recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch b/recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch new file mode 100644 index 0000000..4894ce3 --- /dev/null +++ b/recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 67b539d256520f95f3c8101f4605ea6d496982df Mon Sep 17 00:00:00 2001 | ||
2 | From: Zhenhua Luo <b19537@freescale.com> | ||
3 | Date: Thu, 18 Oct 2012 17:28:00 +0300 | ||
4 | Subject: [PATCH] fm-lib: make the library install path configurable | ||
5 | |||
6 | currently library for both 32bit target and 64bit target | ||
7 | is installed in /usr/lib folder, add a variable to make the | ||
8 | install path configurable | ||
9 | |||
10 | Signed-off-by: Zhenhua Luo <b19537@freescale.com> | ||
11 | --- | ||
12 | Makefile | 8 +++++--- | ||
13 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/Makefile b/Makefile | ||
16 | index 06fe930..d59f44a 100644 | ||
17 | --- a/Makefile | ||
18 | +++ b/Makefile | ||
19 | @@ -59,6 +59,8 @@ endif | ||
20 | |||
21 | INSTALL?=install | ||
22 | |||
23 | +LIB_DEST_DIR?=$(PREFIX)/lib | ||
24 | + | ||
25 | # Don't forget to increment .version before doing a new release! | ||
26 | FM_LIB_VERSION:=$(shell cat .version) | ||
27 | |||
28 | @@ -118,9 +120,9 @@ archive: all .version | ||
29 | |||
30 | install-%: %.a | ||
31 | @(echo "Installing...") | ||
32 | - @($(INSTALL) -d $(DESTDIR)$(PREFIX)/lib) | ||
33 | - @($(INSTALL) $< $(DESTDIR)$(PREFIX)/lib) | ||
34 | - @(ln -s $(DESTDIR)$(PREFIX)/lib/$< $(DESTDIR)$(PREFIX)/lib/libfm.a) | ||
35 | + @($(INSTALL) -d $(DESTDIR)$(LIB_DEST_DIR)) | ||
36 | + @($(INSTALL) $< $(DESTDIR)$(LIB_DEST_DIR)) | ||
37 | + @(ln -s $(DESTDIR)$(LIB_DEST_DIR)/$< $(DESTDIR)$(LIB_DEST_DIR)/libfm.a) | ||
38 | @(cp -r -p ./include $(DESTDIR)$(PREFIX)) | ||
39 | @($(INSTALL) -d $(DESTDIR)$(PREFIX)/share/doc/fm-lib-$(FM_LIB_VERSION)) | ||
40 | @($(INSTALL) $(FM_LIB_DOCFILES) $(DESTDIR)$(PREFIX)/share/doc/fm-lib-$(FM_LIB_VERSION)) | ||
41 | -- | ||
42 | 1.7.9.5 | ||
43 | |||
diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb new file mode 100644 index 0000000..0426caf --- /dev/null +++ b/recipes-dpaa/fmlib/fmlib_git.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "Frame Manager User Space Library" | ||
2 | SECTION = "fman" | ||
3 | LICENSE = "BSD & GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3f16fa8e677e45af3127c5c4bafc3c00" | ||
5 | |||
6 | PR = "r1" | ||
7 | |||
8 | DEPENDS += "virtual/kernel" | ||
9 | DEPENDS_virtclass-native = "" | ||
10 | |||
11 | SRC_URI = "git://git.freescale.com/ppc/sdk/fmlib.git" | ||
12 | SRCREV = "7d843485bdac963d98f81773c0f3cb15936e09da" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET_ARCH_FMLIB = "${DEFAULTTUNE}" | ||
17 | TARGET_ARCH_FMLIB_e5500 = "ppc32e5500" | ||
18 | TARGET_ARCH_FMLIB_e6500 = "ppc32e6500" | ||
19 | COMPATIBLE_HOST_fslmachine = ".*" | ||
20 | COMPATIBLE_HOST ?= "(none)" | ||
21 | |||
22 | EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \ | ||
23 | CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}" | ||
24 | |||
25 | do_compile () { | ||
26 | oe_runmake libfm-${TARGET_ARCH_FMLIB}.a | ||
27 | } | ||
28 | |||
29 | do_compile_virtclass-native () { | ||
30 | } | ||
31 | |||
32 | do_install () { | ||
33 | oe_runmake install-libfm-${TARGET_ARCH_FMLIB} | ||
34 | } | ||
35 | |||
36 | do_install_virtclass-native () { | ||
37 | install -d ${D}/${includedir} | ||
38 | cp -rf ${S}/include/* ${D}/${includedir} | ||
39 | } | ||
40 | |||
41 | ALLOW_EMPTY_${PN} = "1" | ||
42 | |||
43 | BBCLASSEXTEND = "native" | ||