jdk

Форк
0
/
buildjdk-spec.gmk.template 
110 строк · 4.4 Кб
1
#
2
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
#
5
# This code is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 2 only, as
7
# published by the Free Software Foundation.  Oracle designates this
8
# particular file as subject to the "Classpath" exception as provided
9
# by Oracle in the LICENSE file that accompanied this code.
10
#
11
# This code is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
# version 2 for more details (a copy is included in the LICENSE file that
15
# accompanied this code).
16
#
17
# You should have received a copy of the GNU General Public License version
18
# 2 along with this work; if not, write to the Free Software Foundation,
19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
#
21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
# or visit www.oracle.com if you need additional information or have any
23
# questions.
24
#
25

26
# This spec file is used to compile a BUILD_JDK while cross compiling. The
27
# BUILD_JDK runs on the build/host platform and is of the same version as
28
# the main build.
29

30
# First include the real base spec.gmk file
31
include @SPEC@
32

33
CC := @BUILD_CC@
34
CXX := @BUILD_CXX@
35
# Ideally this should be probed by configure but that is tricky to implement,
36
# and this should work in most cases.
37
CPP := @BUILD_CC@ -E
38
LD := @BUILD_LD@
39
LDCXX := @BUILD_LDCXX@
40
AS := @BUILD_AS@
41
NM := @BUILD_NM@
42
AR := @BUILD_AR@
43
LIB := @BUILD_LIB@
44
OBJCOPY := @BUILD_OBJCOPY@
45
STRIP := @BUILD_STRIP@
46
SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
47
SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
48

49
# These directories should not be moved to BUILDJDK_OUTPUTDIR
50
HOTSPOT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))
51
BUILDTOOLS_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(BUILDTOOLS_OUTPUTDIR))
52
SUPPORT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
53
JDK_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
54
IMAGES_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR))
55

56
OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
57
OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
58
OPENJDK_BUILD_LIBC := @OPENJDK_BUILD_LIBC@
59
OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
60
OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
61
OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
62
OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
63
OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
64
OPENJDK_TARGET_LIBC := @OPENJDK_BUILD_LIBC@
65
OPENJDK_TARGET_OS_INCLUDE_SUBDIR := @OPENJDK_BUILD_OS_INCLUDE_SUBDIR@
66

67
HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
68
HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
69
HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
70
HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
71
HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
72
HOTSPOT_TARGET_LIBC := @HOTSPOT_BUILD_LIBC@
73

74
CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
75
CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
76
LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
77
CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
78
CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
79
LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
80

81
JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
82
JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
83
JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
84
JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@
85

86
FDLIBM_CFLAGS := @OPENJDK_BUILD_FDLIBM_CFLAGS@
87

88
INTERIM_LANGTOOLS_ARGS := $(subst $(OUTPUTDIR),$(BUILDJDK_OUTPUTDIR),$(INTERIM_LANGTOOLS_ARGS))
89

90
# The compiler for the build platform is likely not warning compatible with the official
91
# compiler.
92
WARNINGS_AS_ERRORS := false
93
DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
94

95
# Save speed and disk space by not enabling debug symbols for the buildjdk
96
ENABLE_DEBUG_SYMBOLS := false
97

98
JVM_VARIANTS := server
99
JVM_VARIANT_MAIN := server
100
JVM_FEATURES_server := cds compiler1 compiler2 g1gc serialgc
101

102
# Some users still set EXTRA_*FLAGS on the make command line. Must
103
# make sure to override that when building buildjdk.
104
override EXTRA_CFLAGS :=
105
override EXTRA_CXXFLAGS :=
106
override EXTRA_LDFLAGS :=
107

108
# hsdis is not needed
109
HSDIS_BACKEND := none
110
ENABLE_HSDIS_BUNDLING := false
111

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.