aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-05-30 16:24:03 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-06-07 16:53:06 +0900
commit689e03c3391367a1b9ef6348747fa5301bb63286 (patch)
tree568876982382a0159088d6a0c64ba9f0d09ddaf1 /meta-ivi-test
parentddd6002b46d8a21fac12523b6ad03491de131357 (diff)
downloadmeta-ivi-689e03c3391367a1b9ef6348747fa5301bb63286.tar.gz
meta-ivi-689e03c3391367a1b9ef6348747fa5301bb63286.tar.bz2
meta-ivi-689e03c3391367a1b9ef6348747fa5301bb63286.zip
capicxx-perf: build fix
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-test')
-rw-r--r--meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb21
1 files changed, 20 insertions, 1 deletions
diff --git a/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb b/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
index 5b1df32..b51c156 100644
--- a/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
+++ b/meta-ivi-test/recipes-extended/common-api/capicxx-perf_git.bb
@@ -3,7 +3,8 @@ SECTION = "tests"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = \
"file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
-PR = "r0"
+
+PR = "r1"
SRCREV = "2eacc9d7fb76957e9a5450a559675fddf0a95ce2"
SRC_URI = "git://github.com/GENIVI/capic-poc.git;protocol=https \
@@ -27,6 +28,24 @@ FILES_${PN}-dbg += " \
${_installdir}/.debug/* \
"
+do_configure_prepend() {
+ capi_core_home=$(dirname `find ${WORKDIR}/recipe-sysroot-native -name commonapi-generator-linux-x86`)
+ capi_dbus_home=$(dirname `find ${WORKDIR}/recipe-sysroot-native -name commonapi-dbus-generator-linux-x86`)
+ if [ -L /usr/bin/java ]; then
+ java_bin=$(readlink -f /usr/bin/java)
+ if [ -L $java_bin ]; then
+ J_HOME=$(readlink -f $java_bin | sed "s:/bin/java::")
+ else
+ J_HOME=$(readlink -f /usr/bin/java | sed "s:/bin/java::")
+ fi
+ rm -f ${capi_core_home}/jre ${capi_dbus_home}/jre
+ ln -s ${J_HOME} ${capi_core_home}/
+ ln -s ${J_HOME} ${capi_dbus_home}/
+ else
+ echo "hello. it's impossible"
+ fi
+}
+
do_install_append() {
_DEST=${D}${_installdir}
install -d ${_DEST}