summaryrefslogtreecommitdiff
path: root/classes/java.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-10-10 15:27:58 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-10-10 15:27:58 +0000
commit9666d50a291f9c6ee91fdda5a219e32c8d623fc4 (patch)
tree0e1cea70dd975d84f20b40e070941f6c51cb16ed /classes/java.bbclass
parentd0305f6d77ce364ee67d47c4b6ae1bb6c3fad6ac (diff)
parent22daad61fa11c387f78a1c6852bf8d812c835c88 (diff)
merge of 'b41b2179eb6432d9e607dc4b3056424946bb8c66'
and 'ee585ae1d7dbac814d0d2c450e80ef5eb5673366'
Diffstat (limited to 'classes/java.bbclass')
-rw-r--r--classes/java.bbclass18
1 files changed, 16 insertions, 2 deletions
diff --git a/classes/java.bbclass b/classes/java.bbclass
index 620dae79fb..32415d5800 100644
--- a/classes/java.bbclass
+++ b/classes/java.bbclass
@@ -17,6 +17,10 @@ STAGING_DATADIR_JAVA ?= ${STAGING_DATADIR}/java
STAGING_LIBDIR_JNI ?= ${STAGING_LIBDIR}/jni
STAGING_LIBDIR_JVM ?= ${STAGING_LIBDIR}/jvm
+STAGING_DATADIR_JAVA_NATIVE ?= ${STAGING_DATADIR_NATIVE}/java
+STAGING_LIBDIR_JNI_NATIVE ?= ${STAGING_LIBDIR_NATIVE}/jni
+STAGING_LIBDIR_JVM_NATIVE ?= ${STAGING_LIBDIR_NATIVE}/jvm
+
oe_jarinstall() {
# Purpose: Install a jar file and create all the given symlinks to it.
# Example:
@@ -34,7 +38,12 @@ oe_jarinstall() {
while [ "$#" -gt 0 ]; do
case "$1" in
-s)
- dir=${STAGING_DATADIR_JAVA}
+ # put jar files to native staging if this is a -native recipe
+ if [ ${PACKAGE_ARCH} = ${BUILD_ARCH} ]; then
+ dir=${STAGING_DATADIR_JAVA_NATIVE}
+ else
+ dir=${STAGING_DATADIR_JAVA}
+ fi
;;
-r)
shift
@@ -95,7 +104,12 @@ oe_makeclasspath() {
while [ "$#" -gt 0 ]; do
case "$1" in
-s)
- dir=${STAGING_DATADIR_JAVA}
+ # take jar files from native staging if this is a -native recipe
+ if [ ${PACKAGE_ARCH} = ${BUILD_ARCH} ]; then
+ dir=${STAGING_DATADIR_JAVA_NATIVE}
+ else
+ dir=${STAGING_DATADIR_JAVA}
+ fi
;;
-*)
oefatal "oe_makeclasspath: unknown option: $1"