aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/openjdk-8-common.inc
diff options
context:
space:
mode:
authorKyle Russell <bkylerussell@gmail.com>2016-08-24 09:28:40 -0400
committerMaxin B. John <maxin.john@intel.com>2016-08-30 16:49:09 +0300
commit8c663efa4f8efccf50d094dbc61c7b78031b3b7d (patch)
treed002a12d3fc2167d960fdf85dcb196847ed1c370 /recipes-core/openjdk/openjdk-8-common.inc
parentb2827bf00734331fa6776909e2bfee8f94790fda (diff)
downloadmeta-java-8c663efa4f8efccf50d094dbc61c7b78031b3b7d.tar.gz
meta-java-8c663efa4f8efccf50d094dbc61c7b78031b3b7d.tar.bz2
meta-java-8c663efa4f8efccf50d094dbc61c7b78031b3b7d.zip
Reimplement helper method for parallelizing JDK builds
Simplifies duplicated implementation across multiple recipes that all inherited from java.bbclass. Previously implementation was not flexible in supporting other make job-limiting flags (like -l for load) that are typically passed in through PARALLEL_MAKE. (OpenJDK doesn't know about these other flags that might have gotten tagged on after the value for -j.) Signed-off-by: Kyle Russell <bkylerussell@gmail.com> Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-common.inc')
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc21
1 files changed, 0 insertions, 21 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index c2f9eb4..c339985 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -167,27 +167,6 @@ do_configure_prepend() {
export ${@jdk_environment_options(d)}
}
-# OpenJDK supports parallel compilation but uses a plain number for this.
-# In OE we have PARALLEL_MAKE which is the actual option passed to make,
-# e.g. "-j 4".
-OPENJDK8_PARALLEL_MAKE := "${PARALLEL_MAKE}"
-PARALLEL_MAKE = ""
-def get_jdk8_native_jobs(d):
- import bb
-
- pm = bb.data.getVar('OPENJDK8_PARALLEL_MAKE', d, 1);
- if not pm:
- return "1"
-
- pm = pm.split("j");
- if (len(pm) == 2):
- return pm[1].strip()
-
- # Whatever found in PARALLEL_MAKE was not suitable.
- return "1"
-
-get_jdk8_native_jobs[vardepsexclude] += "OPENJDK8_PARALLEL_MAKE"
-
# A function that is needed in the Shark builds.
def get_llvm_configure_arch(d):
import bb;