diff options
Diffstat (limited to 'recipes-core/openjdk')
-rw-r--r-- | recipes-core/openjdk/openjdk-7-common.inc | 32 | ||||
-rw-r--r-- | recipes-core/openjdk/openjdk-8-common.inc | 21 | ||||
-rw-r--r-- | recipes-core/openjdk/openjdk-8-cross.inc | 6 | ||||
-rw-r--r-- | recipes-core/openjdk/openjdk-8-native.inc | 2 |
4 files changed, 5 insertions, 56 deletions
diff --git a/recipes-core/openjdk/openjdk-7-common.inc b/recipes-core/openjdk/openjdk-7-common.inc index f848a06..c491195 100644 --- a/recipes-core/openjdk/openjdk-7-common.inc +++ b/recipes-core/openjdk/openjdk-7-common.inc | |||
@@ -59,30 +59,6 @@ export CACAO_CONFIGURE_ARGS = " \ | |||
59 | 59 | ||
60 | JAVA_HOME[unexport] = "1" | 60 | JAVA_HOME[unexport] = "1" |
61 | 61 | ||
62 | # OpenJDK supports parallel compilation but uses a plain number for this. | ||
63 | # In OE we have PARALLEL_MAKE which is the actual option passed to make, | ||
64 | # e.g. "-j 4". | ||
65 | |||
66 | OPENJDK_PARALLEL_MAKE := "${PARALLEL_MAKE}" | ||
67 | PARALLEL_MAKE = "" | ||
68 | |||
69 | def get_jdk7_jobs(d): | ||
70 | import bb | ||
71 | |||
72 | pm = bb.data.getVar('OPENJDK_PARALLEL_MAKE', d, 1); | ||
73 | if not pm: | ||
74 | return "1" | ||
75 | |||
76 | pm = pm.split("j"); | ||
77 | if (len(pm) == 2): | ||
78 | return pm[1].strip() | ||
79 | |||
80 | # Whatever found in PARALLEL_MAKE was not suitable. | ||
81 | return "1" | ||
82 | |||
83 | get_jdk7_jobs[vardepsexclude] += "OPENJDK_PARALLEL_MAKE" | ||
84 | JDK_JOBS = "${@get_jdk7_jobs(d)}" | ||
85 | |||
86 | EXTRA_OECONF = " \ | 62 | EXTRA_OECONF = " \ |
87 | --enable-downloading=no \ | 63 | --enable-downloading=no \ |
88 | \ | 64 | \ |
@@ -108,7 +84,7 @@ EXTRA_OECONF = " \ | |||
108 | --with-jdk-src-zip=${WORKDIR}/${JDK_FILE} \ | 84 | --with-jdk-src-zip=${WORKDIR}/${JDK_FILE} \ |
109 | --with-langtools-src-zip=${WORKDIR}/${LANGTOOLS_FILE} \ | 85 | --with-langtools-src-zip=${WORKDIR}/${LANGTOOLS_FILE} \ |
110 | \ | 86 | \ |
111 | --with-parallel-jobs=${JDK_JOBS} \ | 87 | --with-parallel-jobs=${@java_get_parallel_make(d)} \ |
112 | \ | 88 | \ |
113 | --with-pkgversion=${PV} \ | 89 | --with-pkgversion=${PV} \ |
114 | --with-cc-for-build=${BUILD_CC} \ | 90 | --with-cc-for-build=${BUILD_CC} \ |
@@ -123,8 +99,6 @@ EXTRA_OECONF += " \ | |||
123 | " | 99 | " |
124 | 100 | ||
125 | do_configure_prepend() { | 101 | do_configure_prepend() { |
126 | echo "Configure with parallel-jobs: ${JDK_JOBS}" | ||
127 | |||
128 | # Automatically copy everything that starts with "icedtea" (or "cacao") and ends with | 102 | # Automatically copy everything that starts with "icedtea" (or "cacao") and ends with |
129 | # ".patch" into the patches directory. | 103 | # ".patch" into the patches directory. |
130 | find ${WORKDIR} -maxdepth 1 -name "icedtea*.patch" -exec cp {} ${S}/patches \; | 104 | find ${WORKDIR} -maxdepth 1 -name "icedtea*.patch" -exec cp {} ${S}/patches \; |
@@ -138,10 +112,6 @@ do_configure_append() { | |||
138 | # Work around broken variable quoting in oe-stable 2009 and provide the variable | 112 | # Work around broken variable quoting in oe-stable 2009 and provide the variable |
139 | # via the environment which then overrides the erroneous value that was written | 113 | # via the environment which then overrides the erroneous value that was written |
140 | # into '${ICETDEA}/Makefile'. | 114 | # into '${ICETDEA}/Makefile'. |
141 | # Icedtea's makefile is not compatible to parallelization so we cannot allow | ||
142 | # passing a valid ${PARALLEL_MAKE} to it. OTOH OpenJDK's makefiles are | ||
143 | # parallelizable and we need ${PARALLEL_MAKE} to derive the proper value. | ||
144 | # The base for this quirk is that GNU Make only considers the last "-j" option. | ||
145 | EXTRA_OEMAKE += 'CC="${CC}" CCC="${CXX}" CPP="${CPP}" CXX="${CXX}" CC_FOR_BUILD="${BUILD_CC}"' | 115 | EXTRA_OEMAKE += 'CC="${CC}" CCC="${CXX}" CPP="${CPP}" CXX="${CXX}" CC_FOR_BUILD="${BUILD_CC}"' |
146 | 116 | ||
147 | EXTRA_OEMAKE += ' \ | 117 | EXTRA_OEMAKE += ' \ |
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() { | |||
167 | export ${@jdk_environment_options(d)} | 167 | export ${@jdk_environment_options(d)} |
168 | } | 168 | } |
169 | 169 | ||
170 | # OpenJDK supports parallel compilation but uses a plain number for this. | ||
171 | # In OE we have PARALLEL_MAKE which is the actual option passed to make, | ||
172 | # e.g. "-j 4". | ||
173 | OPENJDK8_PARALLEL_MAKE := "${PARALLEL_MAKE}" | ||
174 | PARALLEL_MAKE = "" | ||
175 | def get_jdk8_native_jobs(d): | ||
176 | import bb | ||
177 | |||
178 | pm = bb.data.getVar('OPENJDK8_PARALLEL_MAKE', d, 1); | ||
179 | if not pm: | ||
180 | return "1" | ||
181 | |||
182 | pm = pm.split("j"); | ||
183 | if (len(pm) == 2): | ||
184 | return pm[1].strip() | ||
185 | |||
186 | # Whatever found in PARALLEL_MAKE was not suitable. | ||
187 | return "1" | ||
188 | |||
189 | get_jdk8_native_jobs[vardepsexclude] += "OPENJDK8_PARALLEL_MAKE" | ||
190 | |||
191 | # A function that is needed in the Shark builds. | 170 | # A function that is needed in the Shark builds. |
192 | def get_llvm_configure_arch(d): | 171 | def get_llvm_configure_arch(d): |
193 | import bb; | 172 | import bb; |
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 11e94ce..47fe35d 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc | |||
@@ -40,7 +40,7 @@ SRC_URI_append = "\ | |||
40 | " | 40 | " |
41 | 41 | ||
42 | EXTRA_OECONF_append = "\ | 42 | EXTRA_OECONF_append = "\ |
43 | --with-jobs=${@get_jdk8_native_jobs(d)} \ | 43 | --with-jobs=${@java_get_parallel_make(d)} \ |
44 | \ | 44 | \ |
45 | --with-sys-root=${STAGING_DIR} \ | 45 | --with-sys-root=${STAGING_DIR} \ |
46 | --with-tools-dir=${STAGING_DIR_NATIVE} \ | 46 | --with-tools-dir=${STAGING_DIR_NATIVE} \ |
@@ -65,13 +65,13 @@ do_install_append() { | |||
65 | if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then | 65 | if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then |
66 | if [ -d ${D}${JDK_HOME} ] ; then | 66 | if [ -d ${D}${JDK_HOME} ] ; then |
67 | find ${D}${JDK_HOME} -name "*.jar" -print0 | \ | 67 | find ${D}${JDK_HOME} -name "*.jar" -print0 | \ |
68 | xargs -0 -n1 -P ${@get_jdk8_native_jobs(d)} sh -c ' \ | 68 | xargs -0 -n1 -P ${@java_get_parallel_make(d)} sh -c ' \ |
69 | echo "Repacking" "$0" ; \ | 69 | echo "Repacking" "$0" ; \ |
70 | pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' | 70 | pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' |
71 | fi | 71 | fi |
72 | if [ -d ${D}${JRE_HOME} ] ; then | 72 | if [ -d ${D}${JRE_HOME} ] ; then |
73 | find ${D}${JRE_HOME} -name "*.jar" -print0 | \ | 73 | find ${D}${JRE_HOME} -name "*.jar" -print0 | \ |
74 | xargs -0 -n1 -P ${@get_jdk8_native_jobs(d)} sh -c ' \ | 74 | xargs -0 -n1 -P ${@java_get_parallel_make(d)} sh -c ' \ |
75 | echo "Repacking" "$0" ; \ | 75 | echo "Repacking" "$0" ; \ |
76 | pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' | 76 | pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' |
77 | fi | 77 | fi |
diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc index 91080d2..c7d3992 100644 --- a/recipes-core/openjdk/openjdk-8-native.inc +++ b/recipes-core/openjdk/openjdk-8-native.inc | |||
@@ -16,7 +16,7 @@ PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" | |||
16 | PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," | 16 | PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," |
17 | 17 | ||
18 | EXTRA_OECONF_append = "\ | 18 | EXTRA_OECONF_append = "\ |
19 | --with-jobs=${@get_jdk8_native_jobs(d)} \ | 19 | --with-jobs=${@java_get_parallel_make(d)} \ |
20 | \ | 20 | \ |
21 | --with-sys-root=${STAGING_DIR_NATIVE} \ | 21 | --with-sys-root=${STAGING_DIR_NATIVE} \ |
22 | --with-tools-dir=${STAGING_DIR_NATIVE} \ | 22 | --with-tools-dir=${STAGING_DIR_NATIVE} \ |