[yocto] [meta-oracle-java][PATCH] java: version update and Java for ARM

2014-06-19 Thread Pavel Shumeika
Updated oracle jre and jdk recipes to the latest update 60.
Also added recipe for ejre to support ARM.
Signed-off-by: Pavel Shumeika 

---
.../oracle-java/oracle-jse-ejre-arm_1.7.0.bb   |  8 +
recipes-devtools/oracle-java/oracle-jse-ejre.inc   | 40 ++
.../oracle-java/oracle-jse-jdk-i586_1.7.0.bb   | 10 +++---
.../oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb | 10 +++---
recipes-devtools/oracle-java/oracle-jse-jdk.inc|  8 +
.../oracle-java/oracle-jse-jre-i586_1.7.0.bb   | 10 +++---
.../oracle-java/oracle-jse-jre-x86-64_1.7.0.bb | 10 +++---
recipes-devtools/oracle-java/oracle-jse.inc|  4 +--
8 files changed, 78 insertions(+), 22 deletions(-)
create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb
create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre.inc

diff --git a/recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb 
b/recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb
new file mode 100644
index 000..9b55173
--- /dev/null
+++ b/recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb
@@ -0,0 +1,8 @@
+PV_UPDATE = "60"
+
+require oracle-jse-ejre.inc
+
+SRC_URI = 
"http://download.oracle.com/otn/java/ejre/7u60-b19/ejre-7u60-fcs-b19-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz";
+
+SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0"
+SRC_URI[sha256sum] = 
"ed061060011d88efe5563c2949c00993db85db17ab94f18a78713007a2b90faf"
diff --git a/recipes-devtools/oracle-java/oracle-jse-ejre.inc 
b/recipes-devtools/oracle-java/oracle-jse-ejre.inc
new file mode 100644
index 000..1731055
--- /dev/null
+++ b/recipes-devtools/oracle-java/oracle-jse-ejre.inc
@@ -0,0 +1,40 @@
+SUMMARY = "Oracle Java SE runtime environment binaries"
+DESCRIPTION = "This is the proprietary JRE from Sun/Oracle, with the Hotspot 
JVM. It is\
+ provided by Sun/Oracle only in binary format.\
+ Java Platform, Standard Edition (Java SE) lets you develop and deploy Java\
+ applications on desktops and servers, as well as in today's demanding\
+ embedded environments. Java offers the rich user interface, performance,\
+ versatility, portability, and security that today's applications require.\
+ The JRE (Java Runtime Environment) is needed on a system to run Java\
+ applications and applets"
+
+JDK_JRE = "ejre"
+
+LICENSE_FLAGS = "oracle_java"
+LICENSE = "Oracle_Binary_Code_License_Agreement"
+LIC_FILES_CHKSUM = "\
+ 
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/COPYRIGHT;md5=be9fe5d47a7dcfb78f142f487afb34bb
 \
+
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=f3a388961d24b8b72d412a079a878cdb
 \
+ "
+
+# get the java update version in the resulting package
+PR =. "u${PV_UPDATE}"
+S = "${WORKDIR}"
+
+do_install () {
+ install -d -m 0755  
${D}/usr/${JDK_JRE}${PV}_${PV_UPDATE}
+ cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE}${D}/usr/
+ ln -sf ${JDK_JRE}${PV}_${PV_UPDATE}  ${D}/usr/java
+}
+
+# All the files are provided in a binaray package, and keeping all the
+# files in a single package causes packaging QA errors and warnings.
+# Avoid these packaging failure by skiping all the QA checks
+INSANE_SKIP_${PN} = "${ERROR_QA} ${WARN_QA}"
+
+# Inhibit warnings about files being stripped, we can't do anything about it.
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+FILES_${PN} = "/usr/"
+
+RPROVIDES_${PN} += "java2-runtime"
\ No newline at end of file
diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb 
b/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
index 978fbd5..dae68dc 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
@@ -1,9 +1,9 @@
-PR = "r0"
-PV_UPDATE = "25"
+PR = "r1"
+PV_UPDATE = "60"
 require oracle-jse-jdk.inc
-SRC_URI = 
"http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-i586.tar.gz";
+SRC_URI = 
"http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.tar.gz";
-SRC_URI[md5sum] = "23176d0ebf9dedd21e3150b4bb0ee776"
-SRC_URI[sha256sum] = 
"dd89b20afa939992bb7fdc44837fa64f0a98d7ee1e5706fe8a2d9e2247ba6de7"
+SRC_URI[md5sum] = "b33c914b03e46c3e7c33e4bdddbec4bd"
+SRC_URI[sha256sum] = 
"d736fb4fd7c8ef50b76411daa640c6feeb48a5c275d29a90ffeb916a78d47a48"
diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb 
b/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
index 7979401..3e9ed4f 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7

[yocto] [meta-oracle-java][PATCH] java: version update and Java for ARM

2014-06-19 Thread Pavel Shumeika

Updated oracle jre and jdk recipes to the latest update 60.

Also added recipe for ejre to support ARM.

Signed-off-by: Pavel Shumeika 

---
.../oracle-java/oracle-jse-ejre-arm_1.7.0.bb   |  8 +
recipes-devtools/oracle-java/oracle-jse-ejre.inc   | 40 ++
.../oracle-java/oracle-jse-jdk-i586_1.7.0.bb   | 10 +++---
.../oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb | 10 +++---
recipes-devtools/oracle-java/oracle-jse-jdk.inc|  8 +
.../oracle-java/oracle-jse-jre-i586_1.7.0.bb   | 10 +++---
.../oracle-java/oracle-jse-jre-x86-64_1.7.0.bb | 10 +++---
recipes-devtools/oracle-java/oracle-jse.inc|  4 +--
8 files changed, 78 insertions(+), 22 deletions(-)
create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb
create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre.inc

diff --git a/recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb 
b/recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb
new file mode 100644
index 000..9b55173
--- /dev/null
+++ b/recipes-devtools/oracle-java/oracle-jse-ejre-arm_1.7.0.bb
@@ -0,0 +1,8 @@
+PV_UPDATE = "60"
+
+require oracle-jse-ejre.inc
+
+SRC_URI = 
"http://download.oracle.com/otn/java/ejre/7u60-b19/ejre-7u60-fcs-b19-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz";
+
+SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0"
+SRC_URI[sha256sum] = 
"ed061060011d88efe5563c2949c00993db85db17ab94f18a78713007a2b90faf"
diff --git a/recipes-devtools/oracle-java/oracle-jse-ejre.inc 
b/recipes-devtools/oracle-java/oracle-jse-ejre.inc
new file mode 100644
index 000..1731055
--- /dev/null
+++ b/recipes-devtools/oracle-java/oracle-jse-ejre.inc
@@ -0,0 +1,40 @@
+SUMMARY = "Oracle Java SE runtime environment binaries"
+DESCRIPTION = "This is the proprietary JRE from Sun/Oracle, with the Hotspot 
JVM. It is\
+ provided by Sun/Oracle only in binary format.\
+ Java Platform, Standard Edition (Java SE) lets you develop and deploy Java\
+ applications on desktops and servers, as well as in today's demanding\
+ embedded environments. Java offers the rich user interface, performance,\
+ versatility, portability, and security that today's applications require.\
+ The JRE (Java Runtime Environment) is needed on a system to run Java\
+ applications and applets"
+
+JDK_JRE = "ejre"
+
+LICENSE_FLAGS = "oracle_java"
+LICENSE = "Oracle_Binary_Code_License_Agreement"
+LIC_FILES_CHKSUM = "\
+ 
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/COPYRIGHT;md5=be9fe5d47a7dcfb78f142f487afb34bb
 \
+
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=f3a388961d24b8b72d412a079a878cdb
 \
+ "
+
+# get the java update version in the resulting package
+PR =. "u${PV_UPDATE}"
+S = "${WORKDIR}"
+
+do_install () {
+ install -d -m 0755  
${D}/usr/${JDK_JRE}${PV}_${PV_UPDATE}
+ cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE}${D}/usr/
+ ln -sf ${JDK_JRE}${PV}_${PV_UPDATE}  ${D}/usr/java
+}
+
+# All the files are provided in a binaray package, and keeping all the
+# files in a single package causes packaging QA errors and warnings.
+# Avoid these packaging failure by skiping all the QA checks
+INSANE_SKIP_${PN} = "${ERROR_QA} ${WARN_QA}"
+
+# Inhibit warnings about files being stripped, we can't do anything about it.
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+FILES_${PN} = "/usr/"
+
+RPROVIDES_${PN} += "java2-runtime"
\ No newline at end of file
diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb 
b/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
index 978fbd5..dae68dc 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
@@ -1,9 +1,9 @@
-PR = "r0"
-PV_UPDATE = "25"
+PR = "r1"
+PV_UPDATE = "60"
 require oracle-jse-jdk.inc
-SRC_URI = 
"http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-i586.tar.gz";
+SRC_URI = 
"http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.tar.gz";
-SRC_URI[md5sum] = "23176d0ebf9dedd21e3150b4bb0ee776"
-SRC_URI[sha256sum] = 
"dd89b20afa939992bb7fdc44837fa64f0a98d7ee1e5706fe8a2d9e2247ba6de7"
+SRC_URI[md5sum] = "b33c914b03e46c3e7c33e4bdddbec4bd"
+SRC_URI[sha256sum] = 
"d736fb4fd7c8ef50b76411daa640c6feeb48a5c275d29a90ffeb916a78d47a48"
diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb 
b/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
index 7979401..3e9ed4f 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_

Re: [yocto] Recipe to Copy JAR files, not extract it

2014-06-19 Thread Laurent d'Havé

That worked great.

Except i'm now having a strange issue, been pulling hair's out for a 
couple of hours ...


WARNING: QA Issue: taxi: Files/directories were installed but not shipped
  /usr/share
  /usr/share/java
  /usr/share/java/headless.jar


And indeed, my jar file will not be bundled in the rootfs !!

Some copy-paste from my recipe :

SRC_URI = " \
file://headless .jar;unpack=0 \
"
do_install() {
install -m 0755 -d ${D}/usr/share/java
 install -m 0755 ${WORKDIR}/headless .jar ${D}/usr/share/java
 }


Any clues ? If i change the path  /usr/bin  it works.
Is it because i'm putting it in /usr/share/java ?
But that's where all the other JAR's go ...


h e l p

Paul Eggleton 
18 June 2014 18:31

No problem; please feel free to ask any questions you have. I never tell
people to RTFM, although I may point to sections of the manual if they 
exist

to save me some typing :)

Cheers,
Paul

Laurent d'Havé 
18 June 2014 18:19
Damn , i did RTFM, but that's not the version i was reading.
That'll teach me !


Thanks for quick response, really sorry , for not reading the latest 
version of the manual.



Take care
Laurent

Paul Eggleton 
18 June 2014 18:09

Actually, I was mistaken - it is mentioned in the reference manual:

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-SRC_URI

(FWIW, I'm happy to answer questions even if they are covered by
the manual, this is just an aside ;)

Cheers,
Paul

Laurent d'Havé 
18 June 2014 15:32
Hello
In a recipe i'm writing, i need to simply copy a .jar file.
Since it's specified in SRC_URI , bitbake extracts it, making WORKDIR 
a complete mess, and makes it impossible to copy the .jar file to 
destination.



How would i go about simply copying it ? Anyway to tell bitbake NOT to 
extract content of it ?
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Recipe to Copy JAR files, not extract it

2014-06-19 Thread Paul Eggleton
On Thursday 19 June 2014 15:40:59 Laurent d'Havé wrote:
> That worked great.
> 
> Except i'm now having a strange issue, been pulling hair's out for a
> couple of hours ...
> 
> WARNING: QA Issue: taxi: Files/directories were installed but not shipped
>/usr/share
>/usr/share/java
>/usr/share/java/headless.jar
> 
> 
> And indeed, my jar file will not be bundled in the rootfs !!
> 
> Some copy-paste from my recipe :
> 
> SRC_URI = " \
> file://headless .jar;unpack=0 \
> "
> do_install() {
> install -m 0755 -d ${D}/usr/share/java
>   install -m 0755 ${WORKDIR}/headless .jar ${D}/usr/share/java
>   }
> 
> 
> Any clues ? If i change the path  /usr/bin  it works.
> Is it because i'm putting it in /usr/share/java ?
> But that's where all the other JAR's go ...

The key is "installed but not shipped" - you've installed the files, but they 
aren't being shipped in any package. The files in each package are specified 
using FILES, and /usr/share is ${datadir}, so I'd suggest something like the 
following:

FILES_${PN} += "${datadir}/java"

(Moving the files to /usr/bin works because that is already in the default 
value of FILES_${PN}, whereas /usr/share/java isn't).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Hi

2014-06-19 Thread Himanshu Pandey
Hi,

I want to perform some operation after rootfs.tar.bz2 is created. I have 
written a shell script to perform a set of operations. Could you please tell me 
that where shall I include this script so that it gets executed.

Regards,
Himanshu


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Hi

2014-06-19 Thread Nicolas Dechesne
On Thu, Jun 19, 2014 at 3:38 PM, Himanshu Pandey <
pandey_himansh...@rediffmail.com> wrote:

> I want to perform some operation after rootfs.tar.bz2 is created. I have
> written a shell script to perform a set of operations. Could you please
> tell me that where shall I include this script so that it gets executed.
>

in your image recipe, you can add your script to ROOTFS_POSTPROCESS_COMMAND
variable.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] List of hardware BSP from all vendors.

2014-06-19 Thread ssinfod ssinfod
Is there a list somewhere that gives all the hardware that has a Yocto BSB
layer ?
Is it somewhere on yoctoproject.org ?

Thanks
ssinfod
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] List of hardware BSP from all vendors.

2014-06-19 Thread Aziz Bahri
might this be something you are looking for?

https://www.yoctoproject.org/downloads   scroll down for bsp

*Aziz Bahri*








*CEO Engineering Society ITBInstitute of Technology
BlanchardstownBlanchardstown Road NorthBlanchardstownDublin 15*
*Email: azizeng...@gmail.com *


On Thu, Jun 19, 2014 at 6:06 PM, ssinfod ssinfod  wrote:

> Is there a list somewhere that gives all the hardware that has a Yocto BSB
> layer ?
> Is it somewhere on yoctoproject.org ?
>
> Thanks
> ssinfod
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] List of hardware BSP from all vendors.

2014-06-19 Thread Philip Balister
On 06/19/2014 01:25 PM, Aziz Bahri wrote:
> might this be something you are looking for?
> 
> https://www.yoctoproject.org/downloads   scroll down for bsp

Also try searching here:

http://layers.openembedded.org/layerindex/branch/master/machines/

Philip


> 
> *Aziz Bahri*
> 
> 
> 
> 
> 
> 
> 
> 
> *CEO Engineering Society ITBInstitute of Technology
> BlanchardstownBlanchardstown Road NorthBlanchardstownDublin 15*
> *Email: azizeng...@gmail.com *
> 
> 
> On Thu, Jun 19, 2014 at 6:06 PM, ssinfod ssinfod  wrote:
> 
>> Is there a list somewhere that gives all the hardware that has a Yocto BSB
>> layer ?
>> Is it somewhere on yoctoproject.org ?
>>
>> Thanks
>> ssinfod
>>
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
> 
> 
> 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to disable shell access

2014-06-19 Thread Insop Song
Thank you Ross,

To answer my own question on "1. how to change the default password of root?"
- remove "debug-tweaks" and do as it is described in
"https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password";

Ref:
https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password
http://bec-systems.com/site/967/setting-the-root-password-in-an-openembedded-image
https://lists.yoctoproject.org/pipermail/poky/2013-August/009098.html
http://gumstix.8.x6.nabble.com/Duovero-EXTRA-IMAGE-FEATURES-tools-sdk-password-td4968867.html

ISS

On Tue, Jun 17, 2014 at 1:54 PM, Burton, Ross  wrote:
> On 17 June 2014 21:23, Insop Song  wrote:
>> 2. how to block shell access but to open for debugging access
>> For this, I could think of that we could block ssh access and only open 
>> console.
>> Or opening ssh for a hidden port only.
>
> The Raumfeld multi-room audio system has a neat solution for this: you
> insert a USB stick with a special file to enable the SSH daemon.  The
> filename is a md5sum, presumably a hash of something along the lines
> of "open sesame".  This is their magic "root me" button, as root has
> no password.
>
> Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [PATCH] add recipe cim-schema, cim-schema-docs and license file DMTF.

2014-06-19 Thread ya...@cn.fujitsu.com
> 
> On Wed, Jun 18, 2014 at 07:30:49AM +, ya...@cn.fujitsu.com wrote:
> > Why not in oe-core?
> > What recipe can be put in oe-core, and what recipe can be put in meta-oe?
> 
> "core" recipes which are used by most if not all OE builds
> 
> "opt-in" extra recipes go to different "topic" layers
> 
> nobody needed or asked for cim until now, so it's not "core" by this 
> definition.

It is Development/Libraries in Fedora.

Why put in meta-networking?


$ rpm -qi cim-schema-2.33.0-6.fc20.noarch
Name: cim-schema
Version : 2.33.0
Release : 6.fc20
Architecture: noarch
Install Date: Wed 11 Jun 2014 03:24:18 PM CST
Group   : Development/Libraries
Size: 6006252
License : DMTF
Signature   : RSA/SHA256, Wed 07 Aug 2013 10:03:04 AM CST, Key ID 
2eb161fa246110c1
Source RPM  : cim-schema-2.33.0-6.fc20.src.rpm
Build Date  : Sat 03 Aug 2013 01:08:10 PM CST
Build Host  : arm02-builder20.arm.fedoraproject.org
Relocations : (not relocatable)
Packager: Fedora Project
Vendor  : Fedora Project
URL : http://www.dmtf.org/
Summary : Common Information Model (CIM) Schema
Description :
Common Information Model (CIM) is a model for describing overall
management information in a network or enterprise environment. CIM
consists of a specification and a schema. The specification defines the
details for integration with other management models. The schema
provides the actual model descriptions.



Authors:

DTMF 

> 
> > > -Original Message-
> > > From: Burton, Ross [mailto:ross.bur...@intel.com]
> > > Sent: Thursday, June 12, 2014 5:27 PM
> > > To: Yao, Xinpan
> > > Cc: yocto@yoctoproject.org
> > > Subject: Re: [yocto] [PATCH] add recipe cim-schema, cim-schema-docs
> > > and license file DMTF.
> > >
> > > On 12 June 2014 09:56, Martin Jansa  wrote:
> > > > Why is this recipe needed in oe-core layer? Wouldn't
> > > > meta-networking be more suitable?
> > > >
> > > > The patch also belongs to oe-core ML not yocto.
> > >
> > > Agreed, unless there's a strong reason then this should go to
> > > meta-networking (so send to the openembedded-devel list).
> > >
> > > Ross
> > --
> > ___
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> 
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto