diff mbox

[3/5] imx-parser: add install hooks to fix libraries path

Message ID 1469627614-29709-4-git-send-email-gary.bisson@boundarydevices.com
State Accepted
Commit 317bcd4c902e466a0ad2c3236f0267ad3d864dac
Headers show

Commit Message

Gary Bisson July 27, 2016, 1:53 p.m. UTC
By default, all the libraries are installed under /usr/lib/imx-mm
which causes problems at runtime.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 package/freescale-imx/imx-parser/imx-parser.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Peter Korsgaard Aug. 3, 2016, 8:06 p.m. UTC | #1
>>>>> "Gary" == Gary Bisson <gary.bisson@boundarydevices.com> writes:

 > By default, all the libraries are installed under /usr/lib/imx-mm
 > which causes problems at runtime.

 > Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
 > ---
 >  package/freescale-imx/imx-parser/imx-parser.mk | 7 +++++++
 >  1 file changed, 7 insertions(+)

 > diff --git a/package/freescale-imx/imx-parser/imx-parser.mk b/package/freescale-imx/imx-parser/imx-parser.mk
 > index a207d6e..75fe6cc 100644
 > --- a/package/freescale-imx/imx-parser/imx-parser.mk
 > +++ b/package/freescale-imx/imx-parser/imx-parser.mk
 > @@ -20,4 +20,11 @@ endef
 >  # The Makefile installs several versions of the libraries, but we only
 >  # need one of them, depending on the platform.
 
 > +define IMX_PARSER_FIXUP_TARGET_PATH
 > +	find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \
 > +		-exec mv {} $(TARGET_DIR)/usr/lib \;
 > +	rm -fr $(TARGET_DIR)/usr/lib/imx-mm

Same comment as for imx-codec. Committed with that fixes, thanks.
diff mbox

Patch

diff --git a/package/freescale-imx/imx-parser/imx-parser.mk b/package/freescale-imx/imx-parser/imx-parser.mk
index a207d6e..75fe6cc 100644
--- a/package/freescale-imx/imx-parser/imx-parser.mk
+++ b/package/freescale-imx/imx-parser/imx-parser.mk
@@ -20,4 +20,11 @@  endef
 # The Makefile installs several versions of the libraries, but we only
 # need one of them, depending on the platform.
 
+define IMX_PARSER_FIXUP_TARGET_PATH
+	find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \
+		-exec mv {} $(TARGET_DIR)/usr/lib \;
+	rm -fr $(TARGET_DIR)/usr/lib/imx-mm
+endef
+IMX_PARSER_POST_INSTALL_TARGET_HOOKS += IMX_PARSER_FIXUP_TARGET_PATH
+
 $(eval $(autotools-package))