diff options
Diffstat (limited to 'classes/java-library.bbclass')
-rw-r--r-- | classes/java-library.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass index 52c932c..a74c8d3 100644 --- a/classes/java-library.bbclass +++ b/classes/java-library.bbclass | |||
@@ -19,14 +19,15 @@ def java_package_name(d): | |||
19 | pre="" | 19 | pre="" |
20 | post="" | 20 | post="" |
21 | 21 | ||
22 | pn = bb.data.getVar('PN', d, 1) | 22 | bpn = bb.data.getVar('BPN', d, 1) |
23 | if not pn.startswith("lib"): | 23 | ml = bb.data.getVar('MLPREFIX', d, 1) |
24 | if not bpn.startswith("lib"): | ||
24 | pre='lib' | 25 | pre='lib' |
25 | 26 | ||
26 | if not pn.endswith("-java"): | 27 | if not bpn.endswith("-java"): |
27 | post='-java' | 28 | post='-java' |
28 | 29 | ||
29 | return pre + pn + post | 30 | return ml + pre + bpn + post |
30 | 31 | ||
31 | JPN ?= "${@java_package_name(d)}" | 32 | JPN ?= "${@java_package_name(d)}" |
32 | 33 | ||