make/conf/jib-profiles.js
changeset 47364 6b3389375f31
parent 47292 798610a8a552
child 47365 92f08900cb3c
--- a/make/conf/jib-profiles.js	Thu Oct 19 10:59:02 2017 +0200
+++ b/make/conf/jib-profiles.js	Thu Oct 19 14:16:45 2017 +0200
@@ -381,25 +381,6 @@
         };
     };
 
-    var boot_jdk_revision = "8";
-    var boot_jdk_subdirpart = "1.8.0";
-    // JDK 8 does not work on sparc M7 cpus, need a newer update when building
-    // on such hardware.
-    if (input.build_cpu == "sparcv9") {
-       var cpu_brand = $EXEC("bash -c \"kstat -m cpu_info | grep brand | head -n1 | awk '{ print \$2 }'\"");
-       if (cpu_brand.trim().match('SPARC-.[78]')) {
-           boot_jdk_revision = "8u20";
-           boot_jdk_subdirpart = "1.8.0_20";
-       }
-    }
-    common.boot_jdk_revision = boot_jdk_revision;
-    common.boot_jdk_subdirpart = boot_jdk_subdirpart;
-    common.boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk"
-        + common.boot_jdk_subdirpart
-        + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
-    common.boot_jdk_platform = input.build_os + "-"
-        + (input.build_cpu == "x86" ? "i586" : input.build_cpu);
-
     return common;
 };
 
@@ -1027,17 +1008,24 @@
         ? input.target_os + "_x64"
         : input.target_platform);
 
+    var boot_jdk_version = "9";
+    var boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk-"
+        + boot_jdk_version
+        + (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
+    var boot_jdk_platform = (input.build_os == "macosx" ? "osx" : input.build_os)
+        + "-" + input.build_cpu;
+
     var dependencies = {
 
         boot_jdk: {
-            server: "javare",
-            module: "jdk",
-            revision: common.boot_jdk_revision,
-            checksum_file: common.boot_jdk_platform + "/MD5_VALUES",
-            file: common.boot_jdk_platform + "/jdk-" + common.boot_jdk_revision
-                + "-" + common.boot_jdk_platform + ".tar.gz",
-            configure_args: "--with-boot-jdk=" + common.boot_jdk_home,
-            environment_path: common.boot_jdk_home + "/bin"
+            server: "jpg",
+            product: "jdk",
+            version: boot_jdk_version,
+            build_number: "181",
+            file: "bundles/" + boot_jdk_platform + "/jdk-" + boot_jdk_version + "_"
+                + boot_jdk_platform + "_bin.tar.gz",
+            configure_args: "--with-boot-jdk=" + boot_jdk_home,
+            environment_path: boot_jdk_home + "/bin"
         },
 
         devkit: {