imx-codec: add install hooks to fix libraries path
authorGary Bisson <gary.bisson@boundarydevices.com>
Wed, 27 Jul 2016 13:53:30 +0000 (15:53 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 3 Aug 2016 19:58:39 +0000 (21:58 +0200)
commit3a1f5d1ebaf39c757f64ec083034f50c16288901
tree2cb157b830a1a8affb085874e839b8e26d1a2460
parenta77e8d275f98259674768ea0a6cb5ab35ead140d
imx-codec: add install hooks to fix libraries path

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

The hooks are inspired from the mechanism used in the Yocto recipe:
https://github.com/Freescale/meta-fsl-arm/blob/krogoth/recipes-multimedia/imx-codec/imx-codec.inc

Tested with the following commands:
 # gst-launch-0.10 audiotestsrc ! mfw_mp3encoder ! fakesink
 # gst-launch-1.0 audiotestsrc ! imxmp3audioenc ! fakesink

[Peter: drop -mindepth/-maxdepth, add comment explaining why this is done]
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/freescale-imx/imx-codec/imx-codec.mk