author | shade |
Fri, 11 May 2018 17:37:14 +0200 | |
changeset 50084 | 44b64fc0baa3 |
parent 50078 | 5730ca794584 |
child 50129 | 7db531b83661 |
permissions | -rw-r--r-- |
25859 | 1 |
# |
44117
7108a2c20885
8170884: Clean up post-jlink file copying to the images
ihse
parents:
42759
diff
changeset
|
2 |
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. |
25859 | 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 |
include CopyCommon.gmk |
|
49537
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
27 |
include Modules.gmk |
48355 | 28 |
include TextFileProcessing.gmk |
25859 | 29 |
|
47314 | 30 |
$(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk)) |
25859 | 31 |
|
32 |
################################################################################ |
|
33 |
||
34 |
ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),) |
|
35 |
||
47217 | 36 |
TZMAPPINGS_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf |
25859 | 37 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
38 |
$(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings |
25859 | 39 |
$(call install-file) |
40 |
||
27565 | 41 |
TARGETS += $(LIB_DST_DIR)/tzmappings |
25859 | 42 |
|
43 |
endif |
|
44 |
||
45 |
################################################################################ |
|
28984
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
46 |
# Copy the microsoft runtime libraries on windows |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
47 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
25859 | 48 |
|
49 |
# Chmod to avoid permission issues if bundles are unpacked on unix platforms. |
|
28984
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
50 |
define copy-and-chmod |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
51 |
$(install-file) |
25859 | 52 |
$(CHMOD) a+rx $@ |
28984
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
53 |
endef |
27565 | 54 |
|
28984
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
55 |
# Use separate macro calls in case the source files are not in the same |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
56 |
# directory. |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
57 |
$(eval $(call SetupCopyFiles,COPY_MSVCR, \ |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
58 |
DEST := $(LIB_DST_DIR), \ |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
59 |
FILES := $(MSVCR_DLL), \ |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
60 |
MACRO := copy-and-chmod)) |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
61 |
|
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
62 |
$(eval $(call SetupCopyFiles,COPY_MSVCP, \ |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
63 |
DEST := $(LIB_DST_DIR), \ |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
64 |
FILES := $(MSVCP_DLL), \ |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
65 |
MACRO := copy-and-chmod)) |
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
66 |
|
12031ba2dc38
8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents:
27799
diff
changeset
|
67 |
TARGETS += $(COPY_MSVCR) $(COPY_MSVCP) |
50073
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
68 |
|
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
69 |
ifneq ($(UCRT_DLL_DIR), ) |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
70 |
$(eval $(call SetupCopyFiles, COPY_UCRT_DLLS, \ |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
71 |
DEST := $(LIB_DST_DIR), \ |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
72 |
SRC := $(UCRT_DLL_DIR), \ |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
73 |
FILES := $(wildcard $(UCRT_DLL_DIR)/*.dll), \ |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
74 |
MACRO := copy-and-chmod, \ |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
75 |
)) |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
76 |
|
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
77 |
TARGETS += $(COPY_UCRT_DLLS) |
35b22ca681d1
8202557: OpenJDK fails to start in Windows 7 and 8.1 after upgrading compiler to VC 2017
erikj
parents:
49537
diff
changeset
|
78 |
endif |
25859 | 79 |
endif |
80 |
||
81 |
################################################################################ |
|
82 |
# |
|
83 |
# How to install jvm.cfg. |
|
84 |
# |
|
47687 | 85 |
ifeq ($(call check-jvm-variant, zero), true) |
25859 | 86 |
JVMCFG_ARCH := zero |
87 |
else |
|
88 |
JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY) |
|
89 |
endif |
|
90 |
||
91 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
47217 | 92 |
JVMCFG_SRC := $(TOPDIR)/src/java.base/macosx/conf/$(JVMCFG_ARCH)/jvm.cfg |
25859 | 93 |
else |
47217 | 94 |
JVMCFG_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/$(JVMCFG_ARCH)/jvm.cfg |
29718
d0e9a4ece867
8072740: move closed jvm.cfg files out of open repo
dholmes
parents:
28984
diff
changeset
|
95 |
# Allow override by ALT_JVMCFG_SRC if it exists |
37525 | 96 |
JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JVMCFG_SRC)) |
25859 | 97 |
endif |
42753
40f61533b93d
8066474: Remove the lib/ directory from Linux and Solaris images
erikj
parents:
41833
diff
changeset
|
98 |
JVMCFG := $(LIB_DST_DIR)/jvm.cfg |
25859 | 99 |
|
50084 | 100 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
25859 | 101 |
COPY_JVM_CFG_FILE := true |
102 |
else |
|
50084 | 103 |
# On 32-bit machines we have three potential VMs: client, server and minimal. |
104 |
# Historically we usually have both client and server and so that is what the |
|
105 |
# committed jvm.cfg expects (including platform specific ergonomics switches |
|
106 |
# to decide whether to use client or server by default). So when we have anything |
|
107 |
# other than client and server we need to define a new jvm.cfg file. |
|
108 |
# The main problem is deciding whether to use aliases for the VMs that are not |
|
109 |
# present and the current position is that we add aliases for client and server, but |
|
110 |
# not for minimal. |
|
111 |
CLIENT_AND_SERVER := $(call check-jvm-variant, client)+$(call check-jvm-variant, server) |
|
112 |
ifeq ($(CLIENT_AND_SERVER), true+true) |
|
25859 | 113 |
COPY_JVM_CFG_FILE := true |
50084 | 114 |
else |
115 |
# For zero, the default jvm.cfg file is sufficient |
|
116 |
ifeq ($(call check-jvm-variant, zero), true) |
|
117 |
COPY_JVM_CFG_FILE := true |
|
118 |
endif |
|
25859 | 119 |
endif |
120 |
endif |
|
121 |
||
122 |
ifeq ($(COPY_JVM_CFG_FILE), true) |
|
123 |
$(JVMCFG): $(JVMCFG_SRC) |
|
124 |
$(call install-file) |
|
125 |
else |
|
126 |
$(JVMCFG): |
|
127 |
$(MKDIR) -p $(@D) |
|
128 |
$(RM) $(@) |
|
129 |
# Now check for other permutations |
|
37525 | 130 |
ifeq ($(call check-jvm-variant, server), true) |
50078 | 131 |
$(PRINTF) -- "-server KNOWN\n">>$(@) |
132 |
$(PRINTF) -- "-client ALIASED_TO -server\n">>$(@) |
|
37525 | 133 |
ifeq ($(call check-jvm-variant, minimal), true) |
50078 | 134 |
$(PRINTF) -- "-minimal KNOWN\n">>$(@) |
25859 | 135 |
endif |
136 |
else |
|
37525 | 137 |
ifeq ($(call check-jvm-variant, client), true) |
50078 | 138 |
$(PRINTF) -- "-client KNOWN\n">>$(@) |
139 |
$(PRINTF) -- "-server ALIASED_TO -client\n">>$(@) |
|
37525 | 140 |
ifeq ($(call check-jvm-variant, minimal), true) |
50078 | 141 |
$(PRINTF) -- "-minimal KNOWN\n">>$(@) |
25859 | 142 |
endif |
143 |
else |
|
37525 | 144 |
ifeq ($(call check-jvm-variant, minimal), true) |
50078 | 145 |
$(PRINTF) -- "-minimal KNOWN\n">>$(@) |
146 |
$(PRINTF) -- "-server ALIASED_TO -minimal\n">>$(@) |
|
147 |
$(PRINTF) -- "-client ALIASED_TO -minimal\n">>$(@) |
|
25859 | 148 |
endif |
149 |
endif |
|
150 |
endif |
|
151 |
endif |
|
152 |
||
27565 | 153 |
TARGETS += $(JVMCFG) |
25859 | 154 |
|
155 |
################################################################################ |
|
156 |
||
47217 | 157 |
POLICY_SRC := $(TOPDIR)/src/java.base/share/conf/security/java.policy |
27565 | 158 |
POLICY_DST := $(CONF_DST_DIR)/security/java.policy |
25859 | 159 |
|
39884
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
160 |
POLICY_SRC_LIST := $(POLICY_SRC) |
25859 | 161 |
|
162 |
$(POLICY_DST): $(POLICY_SRC_LIST) |
|
163 |
$(MKDIR) -p $(@D) |
|
164 |
$(RM) $@ $@.tmp |
|
165 |
$(foreach f,$(POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;) |
|
166 |
$(MV) $@.tmp $@ |
|
167 |
||
27565 | 168 |
TARGETS += $(POLICY_DST) |
25859 | 169 |
|
170 |
################################################################################ |
|
171 |
||
47217 | 172 |
DEF_POLICY_SRC := $(TOPDIR)/src/java.base/share/lib/security/default.policy |
39884
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
173 |
DEF_POLICY_DST := $(LIB_DST_DIR)/security/default.policy |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
174 |
|
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
175 |
DEF_POLICY_SRC_LIST := $(DEF_POLICY_SRC) |
42230
8b75662a3762
8170242: jdk.desktop needs package access to sun.awt.
prr
parents:
41833
diff
changeset
|
176 |
DEF_POLICY_SRC_LIST += $(CUSTOM_POLICY_SRC_LIST) |
39884
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
177 |
|
40401
47a0de15f8b6
8164071: Default.policy file missing content for solaris
mullan
parents:
40253
diff
changeset
|
178 |
ifneq ($(filter $(OPENJDK_TARGET_OS), windows solaris), ) |
47217 | 179 |
DEF_POLICY_SRC_LIST += $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/lib/security/default.policy |
39884
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
180 |
endif |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
181 |
|
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
182 |
# Allow imported modules to modify the java.policy |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
183 |
ifneq ($(IMPORT_MODULES_CONF), ) |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
184 |
DEF_POLICY_SRC_LIST += $(wildcard $(IMPORT_MODULES_CONF)/java.base/security/java.policy.extra) |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
185 |
endif |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
186 |
|
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
187 |
$(DEF_POLICY_DST): $(DEF_POLICY_SRC_LIST) |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
188 |
$(MKDIR) -p $(@D) |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
189 |
$(RM) $@ $@.tmp |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
190 |
$(foreach f,$(DEF_POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;) |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
191 |
$(MV) $@.tmp $@ |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
192 |
|
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
193 |
TARGETS += $(DEF_POLICY_DST) |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
194 |
|
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
195 |
################################################################################ |
9a543219d0bb
8159752: Grant de-privileged module permissions by default with java.security.policy override option
mullan
parents:
37525
diff
changeset
|
196 |
|
25859 | 197 |
ifeq ($(CACERTS_FILE), ) |
47217 | 198 |
CACERTS_FILE := $(TOPDIR)/src/java.base/share/lib/security/cacerts |
25859 | 199 |
endif |
35241 | 200 |
|
27565 | 201 |
CACERTS_DST := $(LIB_DST_DIR)/security/cacerts |
25859 | 202 |
|
203 |
$(CACERTS_DST): $(CACERTS_FILE) |
|
47253
92fd0e04e0e1
8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR
ihse
parents:
47217
diff
changeset
|
204 |
$(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%, %, $@)) |
25859 | 205 |
$(call install-file) |
206 |
||
27565 | 207 |
TARGETS += $(CACERTS_DST) |
25859 | 208 |
|
209 |
################################################################################ |
|
210 |
||
35241 | 211 |
$(eval $(call SetupCopyFiles, COPY_NET_PROPERTIES, \ |
47217 | 212 |
FILES := $(TOPDIR)/src/java.base/share/conf/net.properties, \ |
35241 | 213 |
DEST := $(CONF_DST_DIR), \ |
214 |
)) |
|
25859 | 215 |
|
35241 | 216 |
TARGETS += $(COPY_NET_PROPERTIES) |
25859 | 217 |
|
218 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
35241 | 219 |
$(eval $(call SetupCopyFiles, COPY_SDP_CONF, \ |
47217 | 220 |
FILES := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template, \ |
35241 | 221 |
DEST := $(CONF_DST_DIR)/sdp, \ |
222 |
)) |
|
25859 | 223 |
|
35241 | 224 |
TARGETS += $(COPY_SDP_CONF) |
25859 | 225 |
endif |
226 |
||
227 |
################################################################################ |
|
42670
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
228 |
|
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
229 |
# JDK license and assembly exception files to be packaged in JMOD |
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
230 |
|
44264
8ff59e9e832c
8176849: jdk9 BCL builds fail after cleaning up temporary file ASSEMBLY_EXCEPTION
erikj
parents:
44117
diff
changeset
|
231 |
# The license files may not be present if the source has been obtained using a |
8ff59e9e832c
8176849: jdk9 BCL builds fail after cleaning up temporary file ASSEMBLY_EXCEPTION
erikj
parents:
44117
diff
changeset
|
232 |
# different license. |
8ff59e9e832c
8176849: jdk9 BCL builds fail after cleaning up temporary file ASSEMBLY_EXCEPTION
erikj
parents:
44117
diff
changeset
|
233 |
JDK_LICENSE ?= $(wildcard $(TOPDIR)/LICENSE) |
8ff59e9e832c
8176849: jdk9 BCL builds fail after cleaning up temporary file ASSEMBLY_EXCEPTION
erikj
parents:
44117
diff
changeset
|
234 |
JDK_NOTICE ?= $(wildcard $(TOPDIR)/ASSEMBLY_EXCEPTION) |
48338 | 235 |
JDK_ADDITIONAL_LICENSE_INFO ?= $(wildcard $(TOPDIR)/ADDITIONAL_LICENSE_INFO) |
42670
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
236 |
|
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
237 |
$(eval $(call SetupCopyFiles, COPY_JDK_NOTICES, \ |
48338 | 238 |
FILES := $(JDK_LICENSE) $(JDK_NOTICE) $(JDK_ADDITIONAL_LICENSE_INFO), \ |
49537
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
239 |
DEST := $(COMMON_LEGAL_DST_DIR), \ |
42670
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
240 |
FLATTEN := true, \ |
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
241 |
)) |
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
242 |
|
d833113eb7d7
8169925: Organize licenses by module in source, JMOD file, and run-time image
mchung
parents:
42230
diff
changeset
|
243 |
TARGETS += $(COPY_JDK_NOTICES) |
47355
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
244 |
|
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
245 |
################################################################################ |
49537
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
246 |
# |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
247 |
# Copy and filter the legal files depending on what 3rd party components are |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
248 |
# bundled or linked from the OS. |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
249 |
# |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
250 |
ifeq ($(USE_EXTERNAL_LIBZ), true) |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
251 |
LEGAL_EXCLUDES += zlib.md |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
252 |
endif |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
253 |
|
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
254 |
$(eval $(call SetupCopyLegalFiles, COPY_LEGAL, \ |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
255 |
EXCLUDES := $(LEGAL_EXCLUDES), \ |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
256 |
)) |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
257 |
|
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
258 |
TARGETS += $(COPY_LEGAL) |
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
259 |
|
149dc554808c
8199539: Provide a standard way for the build to filter un-needed legal .md files
erikj
parents:
48355
diff
changeset
|
260 |
################################################################################ |
47355
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
261 |
# Optionally copy libffi.so.? into the the image |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
262 |
|
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
263 |
ifeq ($(ENABLE_LIBFFI_BUNDLING), true) |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
264 |
$(eval $(call SetupCopyFiles, COPY_LIBFFI, \ |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
265 |
FILES := $(LIBFFI_LIB_FILE), \ |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
266 |
DEST := $(call FindLibDirForModule, $(MODULE)), \ |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
267 |
FLATTEN := true, \ |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
268 |
MACRO := install-file-nolink, \ |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
269 |
)) |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
270 |
|
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
271 |
TARGETS += $(COPY_LIBFFI) |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
272 |
endif |
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
273 |
|
8cf060fad8a8
8189430: make/hotspot/copy/Copy-java.base.gmk in wrong location after consolidation
erikj
parents:
47314
diff
changeset
|
274 |
################################################################################ |
48355 | 275 |
# Generate classfile_constants.h |
276 |
||
277 |
$(eval $(call SetupTextFileProcessing, CREATE_CLASSFILE_CONSTANTS_H, \ |
|
278 |
SOURCE_FILES := $(TOPDIR)/src/java.base/share/native/include/classfile_constants.h.template, \ |
|
279 |
OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/modules_include/java.base/classfile_constants.h, \ |
|
280 |
REPLACEMENTS := \ |
|
281 |
@@VERSION_CLASSFILE_MAJOR@@ => $(VERSION_CLASSFILE_MAJOR) ; \ |
|
282 |
@@VERSION_CLASSFILE_MINOR@@ => $(VERSION_CLASSFILE_MINOR) ; , \ |
|
283 |
)) |
|
284 |
||
285 |
TARGETS += $(CREATE_CLASSFILE_CONSTANTS_H) |
|
286 |
||
287 |
################################################################################ |