Skip to contentSkip to conversation

how to update a package on yocto project

DISCUSSION Nishanth S 3 participants 6 messages Nov 18, 2014 – Nov 25, 2014

lore
Share & tools
lore

Nishanth S

author
#0 lore raw

Hi

board : Intel Galileo Gen 1

I use yocto project for build image/tarball for the board.

How to update a existing package???

I mean, I use openjdk-6 on my board.

But I need to change it to openjdk-7.

I edited local.conf by adding following line.

preferred_version_openjdkXXXX = XXXX

Signature · 2 lines
Regards,
Nishanth.S
#1 lore raw

Hi,

Try with something like this added to the build's conf/local.conf:

PREFERRED_VERSION_openjdk-7-jre = "25b30-2.3.12" PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"

Of course, substitute PREFERRED_VERSION_openjdk-7-jre with your exact version of openjdk-7-jre that you have and want to use.

Regards,
Cristian Iorga
Yocto Project
Intel Corporation

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nishanth S
Sent: Tuesday, November 18, 2014 8:30 AM
To: [email protected]
Subject: [bitbake-devel] how to update a package on yocto project

Hi

board : Intel Galileo Gen 1

I use yocto project for build image/tarball for the board.

How to update a existing package???

I mean, I use openjdk-6 on my board.

But I need to change it to openjdk-7.

I edited local.conf by adding following line.

preferred_version_openjdkXXXX = XXXX

Signature · 8 lines
Regards,
Nishanth.S

-- 
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
author
#2 lore raw

Hi

board : Intel Galileo Gen 1

I use yocto project for build image/tarball for the board.

How to update a existing package???

I mean, I use openjdk-6 on my board.

But I need to change it to openjdk-7.

I edited local.conf by adding following line.

preferred_version_openjdkXXXX = XXXX

I tried this but the resulting image.tar had only openjdk-6.

How do I include openjdk-7 with core-image???

Signature · 2 lines
Regards,
Nishanth.S
#3 lore raw

Hi Nishanth,

Quoted 12 lines · On Monday 24 November 2014 11:34:17 Nishanth S wrote:

board : Intel Galileo Gen 1

I use yocto project for build image/tarball for the board.

How to update a existing package???

I mean, I use openjdk-6 on my board.

But I need to change it to openjdk-7.

I edited local.conf by adding following line.

Quoted 8 lines

preferred_version_openjdkXXXX = XXXX

I tried this but the resulting image.tar had only openjdk-6.

How do I include openjdk-7 with core-image???

There needs to be a recipe to actually provide that - PREFERRED_VERSION only selects between available versioned recipes. Is there an openjdk-7 recipe in your configuration? If not, you will need to add one.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw

Hi,
Nishanth, I am assuming you are using the meta-java layer, right? If so, have you tried my suggestions?
/Cristian

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Eggleton
Sent: Tuesday, November 25, 2014 1:20 PM
To: Nishanth S
Cc: [email protected]
Subject: Re: [yocto] [bitbake-devel] how to update a package on yocto project

Hi Nishanth,

Quoted 12 lines · On Monday 24 November 2014 11:34:17 Nishanth S wrote:

board : Intel Galileo Gen 1

I use yocto project for build image/tarball for the board.

How to update a existing package???

I mean, I use openjdk-6 on my board.

But I need to change it to openjdk-7.

I edited local.conf by adding following line.

Quoted 8 lines

preferred_version_openjdkXXXX = XXXX

I tried this but the resulting image.tar had only openjdk-6.

How do I include openjdk-7 with core-image???

There needs to be a recipe to actually provide that - PREFERRED_VERSION only selects between available versioned recipes. Is there an openjdk-7 recipe in your configuration? If not, you will need to add one.

Cheers,
Paul

Signature · 7 lines
Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
#5 lore raw
In reply to Nishanth S

Please note that the right list to ask this question would be:
[email protected] and/or [email protected]

Regards,
Cristian Iorga
Yocto Project
Intel Corporation

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nishanth S
Sent: Tuesday, November 18, 2014 8:30 AM
To: [email protected]
Subject: [bitbake-devel] how to update a package on yocto project

Hi

board : Intel Galileo Gen 1

I use yocto project for build image/tarball for the board.

How to update a existing package???

I mean, I use openjdk-6 on my board.

But I need to change it to openjdk-7.

I edited local.conf by adding following line.

preferred_version_openjdkXXXX = XXXX

Signature · 8 lines
Regards,
Nishanth.S

-- 
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel