aboutsummaryrefslogtreecommitdiffstats
path: root/classes/java-library.bbclass
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@openembedded.org>2008-10-17 11:41:20 +0200
committerRobert Schuster <thebohemian@openembedded.org>2008-10-22 14:52:09 +0200
commit9c991af9e1fb60fafa3c12d31ba87990b410e39f (patch)
treee2999881ab522132c779126bfb79d71f1ef147eb /classes/java-library.bbclass
parentc4cfa290f4e64299870ef9883aa9d3dd30f0e672 (diff)
downloadopenembedded-9c991af9e1fb60fafa3c12d31ba87990b410e39f.tar.gz
Added BPN/BP functionality (see #11716)
base.bbclass: Added base_package_name python function. java-library.bbclass: Removed java_back_package_name function. bitbake.conf: Set BP/BPN and use it in FILESPATH and S
Diffstat (limited to 'classes/java-library.bbclass')
-rw-r--r--classes/java-library.bbclass21
1 files changed, 3 insertions, 18 deletions
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
index 1e5534cbfe..06c3170544 100644
--- a/classes/java-library.bbclass
+++ b/classes/java-library.bbclass
@@ -10,6 +10,9 @@
inherit java
+# use java_stage for native packages
+JAVA_NATIVE_STAGE_INSTALL = "1"
+
def java_package_name(d):
import bb;
@@ -25,18 +28,6 @@ def java_package_name(d):
return pre + pn + post
-def java_base_package_name(d):
- import bb;
-
- pre=""
- post=""
-
- pn = bb.data.getVar('PN', d, 1)
- if pn.endswith("-native"):
- pn = pn[0:-7]
-
- return pn
-
JPN ?= "${@java_package_name(d)}"
DEPENDS_prepend = "virtual/javac-native fastjar-native "
@@ -47,12 +38,6 @@ PACKAGE_ARCH_${JPN} = "all"
FILES_${JPN} = "${datadir_java}"
-# Base package name
-# Automatically derives "foo" from "foo-native"
-BPN ?= "${@java_base_package_name(d)}"
-
-BP ?= "${BPN}-${PV}"
-
# File name of the libraries' main Jar file
JARFILENAME = "${BP}.jar"