diff options
author | Haiqing Bai <Haiqing.Bai@windriver.com> | 2017-11-02 16:33:12 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-12-22 10:28:27 -0200 |
commit | b2e309882732f3566f0459b0654b99b3e9bf9d25 (patch) | |
tree | c8dda7f61d9a80f2fcdb685bf4e4c446f1629a4d /recipes-core/openjdk/openjdk-8-native.inc | |
parent | 03e35bf64f97980652ac532cca0ea96e730a551c (diff) | |
download | meta-java-b2e309882732f3566f0459b0654b99b3e9bf9d25.tar.gz |
openjdk-8-native, icedtea7-native: use JAVA_TOOL_OPTIONS from environment
Solution on how to be able to build openjdk for a build
host that need the environment variable JAVA_TOOL_OPTIONS.
Use JAVA_TOOL_OPTIONS from environment. On some machines this is needed
in order to start java when the amount of RAM is limited for the user.
Author: Peter Bergin <peter.bergin@windriver.com>
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-native.inc')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-native.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc index fd97eff..20e1743 100644 --- a/recipes-core/openjdk/openjdk-8-native.inc +++ b/recipes-core/openjdk/openjdk-8-native.inc | |||
@@ -9,6 +9,8 @@ DEPENDS = "\ | |||
9 | ca-certificates-native openssl-native coreutils-native \ | 9 | ca-certificates-native openssl-native coreutils-native \ |
10 | " | 10 | " |
11 | 11 | ||
12 | SRC_URI_append += "file://handle_extra_output.patch" | ||
13 | |||
12 | PACKAGECONFIG ??= "" | 14 | PACKAGECONFIG ??= "" |
13 | PACKAGECONFIG[x11] = "--with-x,,libx11-native xproto-native libxt-native libxext-native libxrender-native" | 15 | PACKAGECONFIG[x11] = "--with-x,,libx11-native xproto-native libxt-native libxext-native libxrender-native" |
14 | PACKAGECONFIG[cups] = "--with-cups,,cups" | 16 | PACKAGECONFIG[cups] = "--with-cups,,cups" |
@@ -47,6 +49,14 @@ EXTRA_OEMAKE_append = ' \ | |||
47 | images \ | 49 | images \ |
48 | ' | 50 | ' |
49 | 51 | ||
52 | do_configure_prepend() { | ||
53 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" | ||
54 | } | ||
55 | |||
56 | do_compile_prepend() { | ||
57 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" | ||
58 | } | ||
59 | |||
50 | do_compile_append() { | 60 | do_compile_append() { |
51 | set -x | 61 | set -x |
52 | mkdir -p ${B}/certs | 62 | mkdir -p ${B}/certs |