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/files/0001-fm-lib-make-the-library-install-path-configurable.patch | |
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/files/0001-fm-lib-make-the-library-install-path-configurable.patch')
-rw-r--r-- | recipes-dpaa/fmlib/files/0001-fm-lib-make-the-library-install-path-configurable.patch | 43 |
1 files changed, 43 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 | |||