gstreamer1.0-omx: Use variables for CORE_NAME processing.

Use the "libdir" and "sysconfdir" variables rather than
hard-coding "/usr/lib" and "/etc".

(From OE-Core rev: 1ae73bb41436bf7e97d83052fbe1541074b4a4ac)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Drew Moseley 2014-07-09 19:17:34 -04:00 committed by Richard Purdie
parent 7023edcb1d
commit cd843b3207
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ acpaths = "-I ${S}/common/m4 -I ${S}/m4"
PR = "r1"
GSTREAMER_1_0_OMX_TARGET ?= "bellagio"
GSTREAMER_1_0_OMX_CORE_NAME ?= "/usr/lib/libomxil-bellagio.so.0"
GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0"
EXTRA_OECONF += "--disable-valgrind --with-omx-target=${GSTREAMER_1_0_OMX_TARGET}"
@ -31,7 +31,7 @@ python __anonymous () {
}
set_omx_core_name() {
sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}/etc/xdg/gstomx.conf"
sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf"
}
do_install[postfuncs] += " set_omx_core_name "