[Buildroot] [PATCH 3/5] imx-parser: add install hooks to fix libraries path
Gary Bisson
gary.bisson at boundarydevices.com
Wed Jul 27 13:53:32 UTC 2016
By default, all the libraries are installed under /usr/lib/imx-mm
which causes problems at runtime.
Signed-off-by: Gary Bisson <gary.bisson at 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
+endef
+IMX_PARSER_POST_INSTALL_TARGET_HOOKS += IMX_PARSER_FIXUP_TARGET_PATH
+
$(eval $(autotools-package))
--
2.8.1
More information about the buildroot
mailing list