[yocto] [meta-oracle-java][PATCH] Provide common functionality to run jdk on the build host

Maxin B. John maxin.john at enea.com
Thu Sep 4 07:10:26 PDT 2014


Patch applied. Thanks!

On Thu, Sep 04, 2014 at 12:30:44PM +0000, Vladimir Redzhepov wrote:
> >From f7c9e480729ea2c3bafb6ae5e101627f7f77f867 Mon Sep 17 00:00:00 2001
> From: Vladimir Redzhepov <vladimir_redzhepov at epam.com>
> Date: Thu, 4 Sep 2014 15:02:22 +0300
> Subject: [PATCH] Provide common functionality to run jdk on the build host.
> 
> The native class provides common functionality for recipes that
> wish to build tools to run on the build host (i.e. tools that use
> the compiler or other tools from the build host).
> 
> Signed-off-by: Vladimir Redzhepov <vladimir_redzhepov at epam.com>
> ---
>  recipes-devtools/oracle-java/oracle-jse-jdk.inc | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> index 6a34a7a..de0870a 100644
> --- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> +++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
> @@ -10,3 +10,11 @@ DESCRIPTION = "This is the proprietary JDK from Sun/Oracle, with the Hotspot JVM
> 
>  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
> +}
> +
> +BBCLASSEXTEND = "native"
> -- 
Best Regards,
Maxin



More information about the yocto mailing list