Link java and javac from the bin dir in the $PATH for native contexts. Also link fastjar to jar and gjavah to javah, as some java recipes will look for those tools at build time.
Signed-off-by: Mario Domenech Goulart <ma...@ossystems.com.br> --- recipes-devtools/oracle-java/oracle-jse-jdk.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc b/recipes-devtools/oracle-java/oracle-jse-jdk.inc index c5c2480..9e312d0 100644 --- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc +++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc @@ -12,9 +12,16 @@ JDK_JRE = "jdk" require oracle-jse.inc do_install_class-native() { - install -d -m 0755 ${D}${bindir}/${JDK_JRE}${PV}_${PV_UPDATE} - cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${bindir}/ - ln -sf ${JDK_JRE}${PV}_${PV_UPDATE} ${D}${bindir}/java + install -d -m 0755 ${D}${libdir} + install -d -m 0755 ${D}${bindir} + cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${libdir}/ + for prog in java javac; do + ( cd ${D}${bindir} && ln -sf ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog ) + done + + ( cd ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin ; \ + ln -sf javah gjavah ; \ + ln -sf jar fastjar ) } BBCLASSEXTEND = "native" -- 2.1.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto