summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/openjdk-8-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-native.inc')
-rw-r--r--recipes-core/openjdk/openjdk-8-native.inc27
1 files changed, 15 insertions, 12 deletions
diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc
index 321a43d..c02e183 100644
--- a/recipes-core/openjdk/openjdk-8-native.inc
+++ b/recipes-core/openjdk/openjdk-8-native.inc
@@ -8,8 +8,8 @@ DEPENDS = "\
8" 8"
9 9
10PACKAGECONFIG ??= "gif jpeg png zlib" 10PACKAGECONFIG ??= "gif jpeg png zlib"
11PACKAGECONFIG[x11] = "--with-x,,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" 11PACKAGECONFIG[x11] = "--with-x,,libx11-native xorgproto-native libxt-native libxext-native libxrender-native libxtst-native"
12PACKAGECONFIG[cups] = "--with-cups,,cups" 12PACKAGECONFIG[cups] = "--with-cups,,cups-native"
13PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" 13PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native"
14PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib-native" 14PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib-native"
15PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," 15PACKAGECONFIG[jce] = "--enable-unlimited-crypto,,"
@@ -17,7 +17,7 @@ PACKAGECONFIG[jpeg] = "--with-libjpeg=system,--with-libjpeg=bundled,jpeg-native"
17PACKAGECONFIG[png] = "--with-libpng=system,--with-libpng=bundled,libpng-native" 17PACKAGECONFIG[png] = "--with-libpng=system,--with-libpng=bundled,libpng-native"
18PACKAGECONFIG[zlib] = "--with-zlib=system,--with-zlib=bundled,zlib-native" 18PACKAGECONFIG[zlib] = "--with-zlib=system,--with-zlib=bundled,zlib-native"
19 19
20EXTRA_OECONF_append = "\ 20EXTRA_OECONF:append = "\
21 --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ 21 --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \
22 \ 22 \
23 --with-tools-dir=${STAGING_DIR_NATIVE} \ 23 --with-tools-dir=${STAGING_DIR_NATIVE} \
@@ -32,36 +32,36 @@ EXTRA_OECONF_append = "\
32" 32"
33# --with-boot-jdk=${WORKDIR}/fake-jdk 33# --with-boot-jdk=${WORKDIR}/fake-jdk
34 34
35inherit native
36
37require openjdk-8-common.inc 35require openjdk-8-common.inc
38 36
39CFLAGS_append = " ${@jdk_cpp_options(d)}" 37inherit native
40CPPFLAGS_append = "${@jdk_cpp_options(d)}" 38
41CXXFLAGS_append = " ${@jdk_cpp_options(d)}" 39CFLAGS:append = " ${@jdk_cpp_options(d)}"
40CPPFLAGS:append = "${@jdk_cpp_options(d)}"
41CXXFLAGS:append = " ${@jdk_cpp_options(d)}"
42 42
43export MAKE_VERBOSE = "y" 43export MAKE_VERBOSE = "y"
44export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace" 44export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace"
45 45
46EXTRA_OEMAKE_append = ' \ 46EXTRA_OEMAKE:append = ' \
47 ${@jdk_make_options(d)} \ 47 ${@jdk_make_options(d)} \
48 MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \ 48 MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \
49 QUIETLY= \ 49 QUIETLY= \
50 images \ 50 images \
51' 51'
52 52
53do_configure_prepend() { 53do_configure:prepend() {
54 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" 54 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
55 export ${@jdk_environment_options(d)} 55 export ${@jdk_environment_options(d)}
56 unset CC CXX 56 unset CC CXX
57} 57}
58 58
59do_compile_prepend() { 59do_compile:prepend() {
60 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" 60 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
61 rm -f "${B}/images/j2sdk-image/jre/lib/security/cacerts" 61 rm -f "${B}/images/j2sdk-image/jre/lib/security/cacerts"
62} 62}
63 63
64do_compile_append() { 64do_compile:append() {
65 set -x 65 set -x
66 mkdir -p ${B}/certs 66 mkdir -p ${B}/certs
67 for pem in $(find ${STAGING_DATADIR}/ca-certificates -name "*.crt") 67 for pem in $(find ${STAGING_DATADIR}/ca-certificates -name "*.crt")
@@ -88,3 +88,6 @@ do_install() {
88 ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}${bindir}/$tool 88 ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}${bindir}/$tool
89 done 89 done
90} 90}
91
92# FIXME libfreetype.so.6 is copied from STAGING_LIBDIR which is already stripped
93INSANE_SKIP:${PN} = "already-stripped"