1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
JDK_HOME = "${libdir_jvm}/openjdk-8"
JRE_HOME = "${libdir_jvm}/openjre-8"
# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch
# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html
# by Roman Kennke (rkennke at redhat.com)
PATCHES_URI_append = "\
file://openjdk8-restrict-to-staging-dir.patch;apply=no \
file://openjdk8-fix-shark-build.patch;apply=no \
file://openjdk8-fix-shark-stdc++11.patch;apply=no \
file://openjdk8-fix-assembler-flag-handling-in-makefile.patch;apply=no \
file://openjdk8-fix-adlc-flags.patch;apply=no \
file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \
file://openjdk8-fix-zero-mode-crash.patch;apply=no \
file://openjdk8-add-missing-linker-flags.patch;apply=no \
file://openjdk8-fix-libpng-neon-build.patch;apply=no \
"
DEPENDS = "\
openjdk-8-native zip-native ant-native libxslt \
jpeg libpng krb5 libffi fontconfig freetype \
"
PRIVATE_LIBS = "\
libattach.so libawt_headless.so libawt.so libawt_xawt.so libdt_socket.so \
libfontmanager.so libhprof.so libinstrument.so libj2gss.so libj2pcsc.so \
libj2pkcs11.so libjaas_unix.so libjava_crw_demo.so libjava.so libjawt.so \
libjdwp.so libjli.so libjpeg.so libjsdt.so libjsig.so libjvm.so liblcms.so \
libmanagement.so libmlib_image.so libnet.so libnio.so libnpt.so libsaproc.so \
libsctp.so libsplashscreen.so libsunec.so libunpack.so libverify.so libzip.so \
"
PACKAGECONFIG ??= " \
repack \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 cups', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
"
PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender libxtst"
PACKAGECONFIG[cups] = "--with-cups,,cups"
PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib"
PACKAGECONFIG[jce] = "--enable-unlimited-crypto,,"
PACKAGECONFIG[zip] = "--with-zlib=system,--with-zlib=bundled,zlib,"
PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib,"
export WANT_LLVM_RELEASE = "3.5.2"
PACKAGECONFIG[zero] = "--with-jvm-variants=zero,,,"
PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5,"
PACKAGECONFIG[repack] = ",,,"
CACHED_CONFIGUREVARS = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_includes=${STAGING_INCDIR}', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_libraries=${STAGING_LIBDIR}', '', d)} \
"
require openjdk-8-common.inc
JAVA_HOME[unexport] = "1"
SRC_URI_append = "\
file://jvm.cfg \
"
EXTRA_OECONF_append = "\
--with-jobs=${@java_get_parallel_make(d)} \
\
--with-sys-root=${STAGING_DIR_HOST} \
--with-tools-dir=${STAGING_DIR_NATIVE} \
--with-boot-jdk=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native \
--with-cacerts-file=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/jre/lib/security/cacerts \
\
--disable-precompiled-headers \
--disable-zip-debug-info \
\
--with-extra-cflags='${CFLAGS}' \
--with-extra-cxxflags='${CXXFLAGS}' \
--with-extra-ldflags='${LDFLAGS}' \
\
${@jdk_configure_options(d)} \
"
do_configure_append() {
sed -i -e 's,POST_STRIP_CMD:=.*,POST_STRIP_CMD:=,g' ${B}/spec.gmk
}
do_install_append() {
if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then
if [ -d ${D}${JDK_HOME} ] ; then
find ${D}${JDK_HOME} -name "*.jar" -print0 | \
xargs -0 -n1 -P ${@java_get_parallel_make(d)} sh -c ' \
echo "Repacking" "$0" ; \
pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"'
fi
if [ -d ${D}${JRE_HOME} ] ; then
find ${D}${JRE_HOME} -name "*.jar" -print0 | \
xargs -0 -n1 -P ${@java_get_parallel_make(d)} sh -c ' \
echo "Repacking" "$0" ; \
pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"'
fi
fi
}
export MAKE_VERBOSE = "y"
export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip"
BUILD_LD="${BUILD_CCLD}"
EXTRA_OEMAKE_append = '\
${@jdk_make_options(d)} \
ALT_SDT_H="${STAGING_INCDIR}" \
ALT_CUPS_HEADERS_PATH="${STAGING_INCDIR}" \
ALT_FREETYPE_HEADERS_PATH="${STAGING_INCDIR}/freetype2" \
ALT_FREETYPE_LIB_PATH="${STAGING_LIBDIR}" \
STRIP_POLICY=no_strip \
MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \
QUIETLY= \
images \
'
# There is a symlink to a .so but this one is valid.
INSANE_SKIP_${PN} = "dev-so"
|