diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/java-library.bbclass | 10 | ||||
-rw-r--r-- | classes/openjdk-build-helper.bbclass | 8 | ||||
-rw-r--r-- | classes/openjdk-test-image.bbclass | 2 | ||||
-rw-r--r-- | classes/openjre-test-image.bbclass | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass index 2ce96ab..67541d2 100644 --- a/classes/java-library.bbclass +++ b/classes/java-library.bbclass | |||
@@ -40,11 +40,11 @@ def java_package_name(d): | |||
40 | 40 | ||
41 | JPN ?= "${@java_package_name(d)}" | 41 | JPN ?= "${@java_package_name(d)}" |
42 | 42 | ||
43 | DEPENDS_prepend = "virtual/javac-native fastjar-native " | 43 | DEPENDS:prepend = "virtual/javac-native fastjar-native " |
44 | 44 | ||
45 | PACKAGES += "${JPN}" | 45 | PACKAGES += "${JPN}" |
46 | 46 | ||
47 | FILES_${JPN} = "${datadir_java}" | 47 | FILES:${JPN} = "${datadir_java}" |
48 | 48 | ||
49 | # File name of the libraries' main Jar file | 49 | # File name of the libraries' main Jar file |
50 | JARFILENAME = "${BP}.jar" | 50 | JARFILENAME = "${BP}.jar" |
@@ -54,15 +54,15 @@ ALTJARFILENAMES = "${BPN}.jar" | |||
54 | 54 | ||
55 | # Java "source" distributions often contain precompiled things | 55 | # Java "source" distributions often contain precompiled things |
56 | # we want to delete first. | 56 | # we want to delete first. |
57 | do_removebinaries() { | 57 | do_deletebinaries() { |
58 | find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \ | 58 | find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \ |
59 | -name "*.jar" -exec rm {} \; | 59 | -name "*.jar" -exec rm {} \; |
60 | find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \ | 60 | find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \ |
61 | -name "*.class" -exec rm {} \; | 61 | -name "*.class" -exec rm {} \; |
62 | } | 62 | } |
63 | 63 | ||
64 | addtask removebinaries after do_unpack before do_patch | 64 | addtask deletebinaries after do_unpack before do_patch |
65 | 65 | ||
66 | do_install_append() { | 66 | do_install:append() { |
67 | oe_jarinstall ${JARFILENAME} ${ALTJARFILENAMES} | 67 | oe_jarinstall ${JARFILENAME} ${ALTJARFILENAMES} |
68 | } | 68 | } |
diff --git a/classes/openjdk-build-helper.bbclass b/classes/openjdk-build-helper.bbclass index 4e334c2..1aeca8d 100644 --- a/classes/openjdk-build-helper.bbclass +++ b/classes/openjdk-build-helper.bbclass | |||
@@ -2,8 +2,8 @@ | |||
2 | # passing a valid ${PARALLEL_MAKE} to it. OTOH OpenJDK's makefiles are | 2 | # passing a valid ${PARALLEL_MAKE} to it. OTOH OpenJDK's makefiles are |
3 | # parallelizable and we need ${PARALLEL_MAKE} to derive the proper value. | 3 | # parallelizable and we need ${PARALLEL_MAKE} to derive the proper value. |
4 | # The base for this quirk is that GNU Make only considers the last "-j" option. | 4 | # The base for this quirk is that GNU Make only considers the last "-j" option. |
5 | EXTRA_OEMAKE_remove_task-compile = "${PARALLEL_MAKE}" | 5 | EXTRA_OEMAKE:remove:task-compile = "${PARALLEL_MAKE}" |
6 | EXTRA_OEMAKE_remove_task-install = "${PARALLEL_MAKEINST}" | 6 | EXTRA_OEMAKE:remove:task-install = "${PARALLEL_MAKEINST}" |
7 | 7 | ||
8 | # OpenJDK supports parallel compilation but uses a plain number for this. | 8 | # OpenJDK supports parallel compilation but uses a plain number for this. |
9 | # In OE we have PARALLEL_MAKE which is the actual option passed to make, | 9 | # In OE we have PARALLEL_MAKE which is the actual option passed to make, |
@@ -45,7 +45,7 @@ def openjdk_build_helper_get_target_cflags(d): | |||
45 | # doesn't work anyway. | 45 | # doesn't work anyway. |
46 | version = d.getVar('GCCVERSION')[0] | 46 | version = d.getVar('GCCVERSION')[0] |
47 | # skip non digit characters at the beginning, e.g. from "linaro-6.2%" | 47 | # skip non digit characters at the beginning, e.g. from "linaro-6.2%" |
48 | match = re.search("\d", version) | 48 | match = re.search(r"\d", version) |
49 | if match: | 49 | if match: |
50 | version = version[match.start():] | 50 | version = version[match.start():] |
51 | return openjdk_build_helper_get_cflags_by_cc_version(d, version) | 51 | return openjdk_build_helper_get_cflags_by_cc_version(d, version) |
@@ -83,7 +83,7 @@ def openjdk_build_helper_get_llvm_configure_arch(d): | |||
83 | elif arch == "arm": | 83 | elif arch == "arm": |
84 | arch = "arm" | 84 | arch = "arm" |
85 | else: | 85 | else: |
86 | if 'shark' in d.getVar('PACKAGECONFIG').split(): | 86 | if bb.utils.contains('PACKAGECONFIG', 'shark', True, False, d): |
87 | bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) ); | 87 | bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) ); |
88 | 88 | ||
89 | return arch | 89 | return arch |
diff --git a/classes/openjdk-test-image.bbclass b/classes/openjdk-test-image.bbclass index f6e4fca..47ad4bb 100644 --- a/classes/openjdk-test-image.bbclass +++ b/classes/openjdk-test-image.bbclass | |||
@@ -1,5 +1,5 @@ | |||
1 | DESCRIPTION = "An image for OpenJDK testing purposes" | 1 | DESCRIPTION = "An image for OpenJDK testing purposes" |
2 | 2 | ||
3 | TEST_SUITES_append = " javac" | 3 | TEST_SUITES:append = " javac" |
4 | 4 | ||
5 | inherit openjre-test-image | 5 | inherit openjre-test-image |
diff --git a/classes/openjre-test-image.bbclass b/classes/openjre-test-image.bbclass index 77dbd74..9562be4 100644 --- a/classes/openjre-test-image.bbclass +++ b/classes/openjre-test-image.bbclass | |||
@@ -4,6 +4,6 @@ IMAGE_FEATURES += "ssh-server-openssh package-management" | |||
4 | 4 | ||
5 | IMAGE_INSTALL = "${CORE_IMAGE_BASE_INSTALL}" | 5 | IMAGE_INSTALL = "${CORE_IMAGE_BASE_INSTALL}" |
6 | 6 | ||
7 | DEFAULT_TEST_SUITES_pn-${PN} = "ping ssh java" | 7 | DEFAULT_TEST_SUITES:pn-${PN} = "ping ssh java" |
8 | 8 | ||
9 | inherit core-image | 9 | inherit core-image |