diff options
Diffstat (limited to 'classes/openjdk-build-helper.bbclass')
-rw-r--r-- | classes/openjdk-build-helper.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
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 |