diff options
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-release-common.inc')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-release-common.inc | 91 |
1 files changed, 40 insertions, 51 deletions
diff --git a/recipes-core/openjdk/openjdk-8-release-common.inc b/recipes-core/openjdk/openjdk-8-release-common.inc index bd3092f..ff8d96e 100644 --- a/recipes-core/openjdk/openjdk-8-release-common.inc +++ b/recipes-core/openjdk/openjdk-8-release-common.inc | |||
@@ -1,3 +1,4 @@ | |||
1 | |||
1 | PATCHES_URI = "\ | 2 | PATCHES_URI = "\ |
2 | file://0001-Allow-using-a-system-installed-libjpeg.patch \ | 3 | file://0001-Allow-using-a-system-installed-libjpeg.patch \ |
3 | file://0002-Allow-using-a-system-installed-libpng.patch \ | 4 | file://0002-Allow-using-a-system-installed-libpng.patch \ |
@@ -9,6 +10,7 @@ PATCHES_URI = "\ | |||
9 | file://0008-autoconf-fix-shark-build-common.patch \ | 10 | file://0008-autoconf-fix-shark-build-common.patch \ |
10 | file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \ | 11 | file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \ |
11 | file://0010-autoconf-remove-shell-variables-from-autoheader.patch \ | 12 | file://0010-autoconf-remove-shell-variables-from-autoheader.patch \ |
13 | file://0013-autoconf-remove-Werror.patch \ | ||
12 | ${HOTSPOT_UB_PATCH} \ | 14 | ${HOTSPOT_UB_PATCH} \ |
13 | file://2001-jdk-comparison-between-pointer-and-integer.patch \ | 15 | file://2001-jdk-comparison-between-pointer-and-integer.patch \ |
14 | file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \ | 16 | file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \ |
@@ -18,38 +20,35 @@ PATCHES_URI = "\ | |||
18 | file://2006-jdk-disable-backtrace-musl-build-fix.patch \ | 20 | file://2006-jdk-disable-backtrace-musl-build-fix.patch \ |
19 | file://2007-jdk-no-genx11-in-headless.patch \ | 21 | file://2007-jdk-no-genx11-in-headless.patch \ |
20 | file://2008-jdk-no-unused-deps.patch \ | 22 | file://2008-jdk-no-unused-deps.patch \ |
21 | file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch \ | 23 | file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch \ |
22 | " | 24 | " |
23 | HOTSPOT_UB_PATCH = "\ | 25 | HOTSPOT_UB_PATCH = "\ |
24 | file://1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch \ | 26 | file://1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch \ |
25 | file://1002-hotspot-use-correct-include-for-poll.patch \ | 27 | file://1002-hotspot-use-correct-include-for-poll.patch \ |
26 | file://1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch \ | 28 | file://1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch \ |
27 | file://1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch \ | 29 | file://1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch \ |
28 | file://1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch \ | 30 | file://1005-hotspot-Zero-build-requires-disabled-warnings.patch \ |
29 | file://1006-hotspot-Zero-build-requires-disabled-warnings.patch \ | 31 | file://1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch \ |
30 | file://1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch \ | 32 | file://1007-hotspot-Turn-on-the-Wreturn-type-warning.patch \ |
31 | file://1008-hotspot-Turn-on-the-Wreturn-type-warning.patch \ | 33 | file://1008-hotspot-handle-format-error-for-GCC-7.patch \ |
32 | file://1009-hotspot-handle-format-error-for-GCC-7.patch \ | 34 | file://1012-hotspot-enable-Wno-error.patch \ |
33 | " | 35 | " |
34 | HOTSPOT_UB_PATCH_append_class-target = "\ | 36 | HOTSPOT_UB_PATCH:append:class-target = "\ |
35 | file://1010-hotspot-fix-adlc-flags.patch \ | 37 | file://1009-hotspot-fix-adlc-flags.patch \ |
36 | file://1011-hotspot-fix-shark-build-common.patch \ | 38 | file://1010-hotspot-fix-shark-build-common.patch \ |
37 | file://1012-hotspot-restrict-to-staging-dir.patch \ | 39 | file://1011-hotspot-restrict-to-staging-dir.patch \ |
38 | " | 40 | " |
39 | HOTSPOT_UB_PATCH_prepend_aarch64 = "\ | 41 | HOTSPOT_UB_PATCH:prepend:aarch64 = "\ |
40 | file://aarch64-hotspot-Fix-further-functions-with-a-missing.patch \ | 42 | file://1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch \ |
41 | " | 43 | " |
42 | HOTSPOT_UB_PATCH_append_armv7a = " file://aarch32-hotspot-fix-missing-return-values.patch" | 44 | HOTSPOT_UB_PATCH:append:armv7a = " file://1201-hotspot-aarch32-fix-missing-return-values.patch" |
43 | HOTSPOT_UB_PATCH_append_armv7ve = " file://aarch32-hotspot-fix-missing-return-values.patch" | 45 | HOTSPOT_UB_PATCH:append:armv7ve = " file://1201-hotspot-aarch32-fix-missing-return-values.patch" |
44 | 46 | ||
45 | PATCHES_URI_append_class-target = "\ | 47 | PATCHES_URI:append:class-target = "\ |
46 | ${FIX_SHARK_BUILD_PT2_PATCH} \ | 48 | file://1013-hotspot-add-missing-includes-for-shark-build-pt2.patch \ |
47 | " | 49 | " |
48 | FIX_SHARK_BUILD_PT2_PATCH = "file://openjdk8-fix-shark-build-pt2.patch;striplevel=0" | ||
49 | FIX_SHARK_BUILD_PT2_PATCH_armv7a = "file://aarch32-hotspot-fix-shark-build-pt2.patch;striplevel=0" | ||
50 | FIX_SHARK_BUILD_PT2_PATCH_armv7ve = "file://aarch32-hotspot-fix-shark-build-pt2.patch;striplevel=0" | ||
51 | 50 | ||
52 | PATCHES_URI_append_libc-musl = "\ | 51 | PATCHES_URI:append:libc-musl = "\ |
53 | ${OBSOLETE_ISNANF_PATCH} \ | 52 | ${OBSOLETE_ISNANF_PATCH} \ |
54 | file://musl-0002-jdk-give-a-much-bigger-buffer-to-getmntent_r.patch \ | 53 | file://musl-0002-jdk-give-a-much-bigger-buffer-to-getmntent_r.patch \ |
55 | file://musl-0003-jdk-fix-libjvm-load-on-musl-set-LD_LIBRARY_PATH.patch \ | 54 | file://musl-0003-jdk-fix-libjvm-load-on-musl-set-LD_LIBRARY_PATH.patch \ |
@@ -63,55 +62,45 @@ PATCHES_URI_append_libc-musl = "\ | |||
63 | file://musl-0009-jdk-musl-has-gethostby_r.patch \ | 62 | file://musl-0009-jdk-musl-has-gethostby_r.patch \ |
64 | " | 63 | " |
65 | OBSOLETE_ISNANF_PATCH = "file://musl-0001-hotspot-stop-using-obsolete-isnanf.patch" | 64 | OBSOLETE_ISNANF_PATCH = "file://musl-0001-hotspot-stop-using-obsolete-isnanf.patch" |
66 | OBSOLETE_ISNANF_PATCH_armv7a = "" | 65 | OBSOLETE_ISNANF_PATCH:armv7a = "" |
67 | OBSOLETE_ISNANF_PATCH_armv7ve = "" | 66 | OBSOLETE_ISNANF_PATCH:armv7ve = "" |
68 | DISABLE_AGENT_BUILD_PT2 = "file://musl-0005-hotspot-disable-agent-build-pt2.patch" | 67 | DISABLE_AGENT_BUILD_PT2 = "file://musl-0005-hotspot-disable-agent-build-pt2.patch" |
69 | DISABLE_AGENT_BUILD_PT2_armv7a = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch" | 68 | DISABLE_AGENT_BUILD_PT2:armv7a = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch" |
70 | DISABLE_AGENT_BUILD_PT2_armv7ve = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch" | 69 | DISABLE_AGENT_BUILD_PT2:armv7ve = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch" |
71 | REMOVE_GLIBC_DEPENDENCIES_PT2 = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2.patch" | 70 | REMOVE_GLIBC_DEPENDENCIES_PT2 = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2.patch" |
72 | REMOVE_GLIBC_DEPENDENCIES_PT2_armv7a = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch" | 71 | REMOVE_GLIBC_DEPENDENCIES_PT2:armv7a = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch" |
73 | REMOVE_GLIBC_DEPENDENCIES_PT2_armv7ve = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch" | 72 | REMOVE_GLIBC_DEPENDENCIES_PT2:armv7ve = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch" |
74 | 73 | ||
75 | PATCHES_URI_append_libc-musl_armv7a = " file://aarch32-hotspot-remaining-musl-fixes.patch" | 74 | PATCHES_URI:append:libc-musl:armv7a = " file://1202-hotspot-aarch32-remaining-musl-fixes.patch" |
76 | PATCHES_URI_append_libc-musl_armv7ve = " file://aarch32-hotspot-remaining-musl-fixes.patch" | 75 | PATCHES_URI:append:libc-musl:armv7ve = " file://1202-hotspot-aarch32-remaining-musl-fixes.patch" |
77 | PATCHES_URI_append_libc-musl_aarch64 = " file://aarch64-hotspot-remaining-musl-fixes.patch" | 76 | PATCHES_URI:append:libc-musl:aarch64 = " file://1402-hotspot-aarch64-remaining-musl-fixes.patch" |
78 | 77 | ||
79 | # remove aarch32 & aarch64 mainlined patches | 78 | # remove aarch32 & aarch64 mainlined patches |
80 | PATCHES_URI_remove_armv7a = "file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch" | 79 | PATCHES_URI:remove:armv7a = "file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch" |
81 | PATCHES_URI_remove_armv7ve = "file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch" | 80 | PATCHES_URI:remove:armv7ve = "file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch" |
82 | PATCHES_URI_remove_aarch64 = "file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch" | 81 | PATCHES_URI:remove:aarch64 = "file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch" |
83 | 82 | ||
84 | # Name of the directory containing the compiled output | 83 | # Name of the directory containing the compiled output |
85 | BUILD_DIR = "openjdk.build" | 84 | BUILD_DIR = "openjdk.build" |
86 | BUILD_DIR_ECJ = "openjdk.build-ecj" | 85 | BUILD_DIR_ECJ = "openjdk.build-ecj" |
87 | 86 | ||
88 | # Force arm mode for now | 87 | # Force arm mode for now |
89 | ARM_INSTRUCTION_SET_armv4t = "ARM" | 88 | ARM_INSTRUCTION_SET:armv4t = "ARM" |
90 | |||
91 | # readdir_r was deprecated in glibc-2.24. Ignore the error for now | ||
92 | # NOTE: When updating the recipe, please check if this is still needed | ||
93 | BUILD_CFLAGS_append = " -Wno-error=deprecated-declarations" | ||
94 | TARGET_CFLAGS_append = " -Wno-error=deprecated-declarations" | ||
95 | |||
96 | # WORKAROUND: disable the "specified bound depends on the length of the source argument" | ||
97 | # compiler error until we update openjdk8 to a fixed version | ||
98 | BUILD_CFLAGS_append = " -Wno-error=stringop-overflow" | ||
99 | TARGET_CFLAGS_append = " -Wno-error=stringop-overflow" | ||
100 | 89 | ||
101 | # Enable zero mode for arm based builds, as normal hotspot fails to build | 90 | # Enable zero mode for arm based builds, as normal hotspot fails to build |
102 | PACKAGECONFIG_append_armv4 = " zero" | 91 | PACKAGECONFIG:append:armv4 = " zero" |
103 | PACKAGECONFIG_append_armv5 = " zero" | 92 | PACKAGECONFIG:append:armv5 = " zero" |
104 | PACKAGECONFIG_append_armv6 = " zero" | 93 | PACKAGECONFIG:append:armv6 = " zero" |
105 | 94 | ||
106 | OPENJDK_ARCH_PORT = "jdk8u" | 95 | OPENJDK_ARCH_PORT = "jdk8u" |
107 | OPENJDK_ARCH_PORT_aarch64 = "aarch64-port" | 96 | OPENJDK_ARCH_PORT:aarch64 = "aarch64-port" |
108 | OPENJDK_ARCH_PORT_armv7a = "aarch32-port" | 97 | OPENJDK_ARCH_PORT:armv7a = "aarch32-port" |
109 | OPENJDK_ARCH_PORT_armv7ve = "aarch32-port" | 98 | OPENJDK_ARCH_PORT:armv7ve = "aarch32-port" |
110 | OPENJDK_HG_U = "jdk8u" | 99 | OPENJDK_HG_U = "jdk8u" |
111 | 100 | ||
112 | # the aarch64 port moved, for more information see: | 101 | # the aarch64 port moved, for more information see: |
113 | # https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2018-August/006265.html | 102 | # https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2018-August/006265.html |
114 | OPENJDK_HG_U_aarch64 = "jdk8u-shenandoah" | 103 | OPENJDK_HG_U:aarch64 = "jdk8u-shenandoah" |
115 | 104 | ||
116 | OPENJDK_HG_URL = "https://hg.openjdk.java.net/${OPENJDK_ARCH_PORT}/${OPENJDK_HG_U}" | 105 | OPENJDK_HG_URL = "https://hg.openjdk.java.net/${OPENJDK_ARCH_PORT}/${OPENJDK_HG_U}" |
117 | 106 | ||