[yocto] Integrate java with yocto

Luo Zhenhua-B19537 B19537 at freescale.com
Thu Aug 1 03:04:52 PDT 2013


Add IMAGE_INSTALL_append = " openjdk-7-jre" and rebuild fsl-image-core, please be aware the leading space after first ".


Best Regards,

Zhenhua

From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Aman Sharma
Sent: Thursday, August 01, 2013 5:58 PM
To: yocto at yoctoproject.org
Cc: rahul1991.arora at gmail.com
Subject: Re: [yocto] Integrate java with yocto

Hi all,

I intend to add java (openjdk) to my root file system. I was able to successfully add meta-java layer and build the same, packages were built but were not added to the root file system.

Following are the steps which i followed to include java in my powerpc.

1.  export PATH=$PATH:/home/vvdn/yocto/QorIQ-SDK-V1.3.2-20130325-yocto/bitbake/bin/
[Luo Zhenhua-B19537] this step is not necessary, steps 3 will set the path for you.

2 ./scripts/host-prepare.sh

3 source ./fsl-setup-poky -m p1020rdb

Then i used following command to include meta-java utility.

git clone -b master git://github.com/woglinde/meta-java.git<http://github.com/woglinde/meta-java.git>

With this i successfully installed meta-java utility.
The i added meta-java to bblayers.conf.file.

Then i added following lines to local.conf file.

# Java preferences.  Could also be in distro config.
  PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
  PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
  PREFERRED_VERSION_openjdk-7-jre = "03b21-2.1.8"
  PREFERRED_VERSION_icedtea7-native = "2.1.3"
  PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"

After this i tried.

4 bitbake openjdk-7-jre

5 bitbake fsl-image-core

After this i successfully build a root file system but meta-java was not included in this build. Can anyone help me regarding this.

Thanks in advance for the help.

Regards

Aman Sharma
On Thu, Aug 1, 2013 at 7:45 AM, Luo Zhenhua-B19537 <B19537 at freescale.com<mailto:B19537 at freescale.com>> wrote:
Aman,

"jre-related-pkg-list" is just a description, you need to replace it with actually package name(e.g. openjdk-7-jre).


Best Regards,

Zhenhua

From: Aman Sharma [mailto:amansh.sharma5 at gmail.com<mailto:amansh.sharma5 at gmail.com>]
Sent: Wednesday, July 31, 2013 9:10 PM
To: Luo Zhenhua-B19537
Cc: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: Re: [yocto] Integrate java with yocto

Hi Luo,

I am getting this error message.
freescale at freescale-sdk:~/SDK/QorIQ-SDK-V1.4-20130625-yocto/build_t4240qds_release$ bitbake fsl-image-core
Loading cache: 100% |##################################################################################################################################| ETA:  00:00:00
Loaded 3302 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.18.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-10.04"
TARGET_SYS        = "powerpc-fsl_networking-linux"
MACHINE           = "t4240qds"
DISTRO            = "fsl-networking"
DISTRO_VERSION    = "1.4"
TUNE_FEATURES     = "m32 fpu-hard e6500 altivec"
TARGET_FPU        = "hard"
meta
meta-yocto
meta-yocto-bsp    = "sdk-v1.4.x:5a7532143a49f59a5c85b08d3daf574fb1eccd8d"
meta-fsl-ppc      = "sdk-v1.4.x:f9fd0a617eb6913f87335c551918315ff4ebe18c"
meta-fsl-ppc-toolchain = "sdk-v1.4.x:8ec94cec04527cb971c125b1ddd2c5375034d723"
meta-virtualization = "sdk-v1.4.x:ad6df4f59cd7646f61db29e8fa51f878329d6f93"
meta-fsl-networking = "(nobranch):00f7a535029ca7ef8c96ba8e9916d4742166bab0"
meta-oe
meta-networking   = "sdk-v1.4.x:7c8dd8f096b64a709175d37a08a4fb02ca263616"
meta-java         = "master:59696d89fd33df6953dcb2dd54ccd3b362513f28"

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'jre-related-pkg-list' (but /home/freescale/SDK/QorIQ-SDK-V1.4-20130625-yocto/meta-fsl-networking/images/fsl-image-core.bb<http://fsl-image-core.bb> RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'jre-related-pkg-list' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['jre-related-pkg-list']
ERROR: Required build target 'fsl-image-core' has no buildable providers.
Missing or unbuildable dependency chain was: ['fsl-image-core', 'jre-related-pkg-list']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I added the following line in local.conf file:
# Java preferences.  Could also be in distro config.
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
PREFERRED_VERSION_openjdk-7-jre = "03b21-2.1.8"
PREFERRED_VERSION_icedtea7-native = "2.1.3"
PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"


#By aman
IMAGE_INSTALL_append = "jre-related-pkg-list"

Can you please help me in this.
Thanks for your Response.

--
regards
Aman



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130801/f335419e/attachment.html>


More information about the yocto mailing list