2014-12-03 14:20:21 +00:00
|
|
|
#
|
2017-01-23 19:49:50 +00:00
|
|
|
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
2014-12-03 14:20:21 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
default: all
|
|
|
|
|
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
2015-11-24 11:18:24 +00:00
|
|
|
include Modules.gmk
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
TOOL_TARGETS :=
|
2015-01-15 14:09:37 +00:00
|
|
|
JDK_TARGETS :=
|
2014-12-03 14:20:21 +00:00
|
|
|
JRE_TARGETS :=
|
|
|
|
|
|
|
|
# Hook to include the corresponding custom file, if present.
|
|
|
|
$(eval $(call IncludeCustomExtension, , Images-pre.gmk))
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
|
2016-03-23 16:20:41 +00:00
|
|
|
# All modules for the current target platform.
|
|
|
|
ALL_MODULES := $(call FindAllModules)
|
|
|
|
|
|
|
|
$(eval $(call ReadImportMetaData))
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-05-20 08:25:40 +00:00
|
|
|
JRE_MODULES += $(filter $(ALL_MODULES), $(BOOT_MODULES) \
|
|
|
|
$(PLATFORM_MODULES) $(JRE_TOOL_MODULES))
|
|
|
|
JDK_MODULES += $(ALL_MODULES)
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-12-14 18:50:31 +00:00
|
|
|
# Modules list for compact builds
|
|
|
|
JRE_COMPACT1_MODULES := \
|
|
|
|
java.logging \
|
|
|
|
java.scripting \
|
|
|
|
jdk.localedata \
|
2017-01-23 19:49:50 +00:00
|
|
|
jdk.crypto.cryptoki \
|
2016-12-14 18:50:31 +00:00
|
|
|
jdk.crypto.ec \
|
|
|
|
jdk.unsupported \
|
|
|
|
#
|
2016-03-23 16:20:41 +00:00
|
|
|
|
2016-12-14 18:50:31 +00:00
|
|
|
JRE_COMPACT2_MODULES := \
|
|
|
|
$(JRE_COMPACT1_MODULES) \
|
|
|
|
java.rmi \
|
|
|
|
java.sql \
|
|
|
|
java.xml \
|
|
|
|
jdk.xml.dom \
|
|
|
|
jdk.httpserver \
|
|
|
|
#
|
|
|
|
|
|
|
|
JRE_COMPACT3_MODULES := \
|
|
|
|
$(JRE_COMPACT2_MODULES) \
|
|
|
|
java.smartcardio \
|
|
|
|
java.compiler \
|
|
|
|
java.instrument \
|
|
|
|
java.management \
|
2017-02-02 16:50:38 +00:00
|
|
|
java.management.rmi \
|
2016-12-14 18:50:31 +00:00
|
|
|
java.naming \
|
|
|
|
java.prefs \
|
|
|
|
java.security.jgss \
|
|
|
|
java.security.sasl \
|
|
|
|
java.sql.rowset \
|
|
|
|
java.xml.crypto \
|
|
|
|
jdk.management \
|
|
|
|
jdk.naming.dns \
|
|
|
|
jdk.naming.rmi \
|
|
|
|
jdk.sctp \
|
|
|
|
jdk.security.auth \
|
|
|
|
#
|
2014-12-03 14:20:21 +00:00
|
|
|
|
2016-05-06 23:21:08 +00:00
|
|
|
JRE_MODULES_LIST := $(call CommaList, $(JRE_MODULES))
|
|
|
|
JDK_MODULES_LIST := $(call CommaList, $(JDK_MODULES))
|
|
|
|
JRE_COMPACT1_MODULES_LIST := $(call CommaList, $(JRE_COMPACT1_MODULES))
|
|
|
|
JRE_COMPACT2_MODULES_LIST := $(call CommaList, $(JRE_COMPACT2_MODULES))
|
|
|
|
JRE_COMPACT3_MODULES_LIST := $(call CommaList, $(JRE_COMPACT3_MODULES))
|
2016-03-17 19:03:53 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
|
|
|
|
|
|
|
|
JMODS := $(wildcard $(IMAGES_OUTPUTDIR)/jmods/*.jmod)
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
# Use this file inside the image as target for make rule
|
|
|
|
JIMAGE_TARGET_FILE := bin/java$(EXE_SUFFIX)
|
|
|
|
|
2016-06-09 14:12:18 +00:00
|
|
|
JLINK_ORDER_RESOURCES := **module-info.class
|
2016-08-31 12:20:00 +00:00
|
|
|
JLINK_JLI_CLASSES :=
|
2016-05-25 10:53:26 +00:00
|
|
|
ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
|
2016-11-07 12:25:18 +00:00
|
|
|
JLINK_ORDER_RESOURCES += @$(SUPPORT_OUTPUTDIR)/link_opt/classlist
|
2017-02-17 17:12:53 +00:00
|
|
|
JLINK_JLI_CLASSES := --generate-jli-classes=@$(SUPPORT_OUTPUTDIR)/link_opt/default_jli_trace.txt
|
2016-05-25 10:53:26 +00:00
|
|
|
endif
|
|
|
|
JLINK_ORDER_RESOURCES += \
|
2016-06-09 14:12:18 +00:00
|
|
|
/java.base/java/** \
|
|
|
|
/java.base/jdk/** \
|
|
|
|
/java.base/sun/** \
|
|
|
|
/java.base/com/** \
|
|
|
|
/jdk.localedata/** \
|
2016-05-12 12:57:48 +00:00
|
|
|
#
|
|
|
|
|
2016-11-30 13:58:45 +00:00
|
|
|
JLINK_TOOL := $(JLINK) -J-Djlink.debug=true \
|
|
|
|
--module-path $(IMAGES_OUTPUTDIR)/jmods \
|
2016-05-25 10:53:26 +00:00
|
|
|
--endian $(OPENJDK_BUILD_CPU_ENDIAN) \
|
|
|
|
--release-info $(BASE_RELEASE_FILE) \
|
|
|
|
--order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
|
2016-12-13 02:56:32 +00:00
|
|
|
--dedup-legal-notices=error-if-not-same-content \
|
2016-08-31 12:20:00 +00:00
|
|
|
$(JLINK_JLI_CLASSES) \
|
2016-05-25 10:53:26 +00:00
|
|
|
#
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-11-24 10:50:26 +00:00
|
|
|
JLINK_JRE_EXTRA_OPTS := --no-man-pages --no-header-files --strip-debug
|
2016-10-18 20:26:54 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
ifeq ($(JLINK_KEEP_PACKAGED_MODULES), true)
|
2016-10-18 20:26:54 +00:00
|
|
|
JLINK_JDK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods
|
2016-03-17 19:03:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
|
|
|
|
$(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(ECHO) Creating jdk jimage
|
2016-03-17 19:03:53 +00:00
|
|
|
$(RM) -r $(JDK_IMAGE_DIR)
|
2016-10-18 20:26:54 +00:00
|
|
|
$(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \
|
2016-11-07 12:25:18 +00:00
|
|
|
$(JLINK_JDK_EXTRA_OPTS) \
|
2016-10-18 20:26:54 +00:00
|
|
|
--output $(JDK_IMAGE_DIR)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(TOUCH) $@
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
|
|
|
|
$(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(ECHO) Creating jre jimage
|
2016-03-17 19:03:53 +00:00
|
|
|
$(RM) -r $(JRE_IMAGE_DIR)
|
2016-10-18 20:26:54 +00:00
|
|
|
$(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \
|
|
|
|
$(JLINK_JRE_EXTRA_OPTS) \
|
2016-11-07 12:25:18 +00:00
|
|
|
--output $(JRE_IMAGE_DIR)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(TOUCH) $@
|
|
|
|
|
2016-10-18 20:26:54 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
|
|
|
|
$(call DependOnVariable, JRE_COMPACT1_MODULES_LIST) $(BASE_RELEASE_FILE)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(ECHO) Creating jre compact1 jimage
|
2016-03-17 19:03:53 +00:00
|
|
|
$(RM) -r $(JRE_COMPACT1_IMAGE_DIR)
|
2016-08-10 22:49:03 +00:00
|
|
|
$(JLINK_TOOL) --add-modules $(JRE_COMPACT1_MODULES_LIST) \
|
2016-10-18 20:26:54 +00:00
|
|
|
$(JLINK_JRE_EXTRA_OPTS) \
|
2016-03-17 19:03:53 +00:00
|
|
|
--output $(JRE_COMPACT1_IMAGE_DIR)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(TOUCH) $@
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JRE_COMPACT2_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
|
|
|
|
$(call DependOnVariable, JRE_COMPACT2_MODULES_LIST) $(BASE_RELEASE_FILE)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(ECHO) Creating jre compact2 jimage
|
2016-03-17 19:03:53 +00:00
|
|
|
$(RM) -r $(JRE_COMPACT2_IMAGE_DIR)
|
2016-08-10 22:49:03 +00:00
|
|
|
$(JLINK_TOOL) --add-modules $(JRE_COMPACT2_MODULES_LIST) \
|
2016-10-18 20:26:54 +00:00
|
|
|
$(JLINK_JRE_EXTRA_OPTS) \
|
2016-03-17 19:03:53 +00:00
|
|
|
--output $(JRE_COMPACT2_IMAGE_DIR)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(TOUCH) $@
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JRE_COMPACT3_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
|
|
|
|
$(call DependOnVariable, JRE_COMPACT3_MODULES_LIST) $(BASE_RELEASE_FILE)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(ECHO) Creating jre compact3 jimage
|
2016-03-17 19:03:53 +00:00
|
|
|
$(RM) -r $(JRE_COMPACT3_IMAGE_DIR)
|
2016-08-10 22:49:03 +00:00
|
|
|
$(JLINK_TOOL) --add-modules $(JRE_COMPACT3_MODULES_LIST) \
|
2016-10-18 20:26:54 +00:00
|
|
|
$(JLINK_JRE_EXTRA_OPTS) \
|
2016-03-17 19:03:53 +00:00
|
|
|
--output $(JRE_COMPACT3_IMAGE_DIR)
|
2014-12-03 14:20:21 +00:00
|
|
|
$(TOUCH) $@
|
|
|
|
|
|
|
|
TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
|
|
|
|
TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
|
|
|
|
TOOL_JRE_COMPACT1_TARGETS := $(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
|
|
|
|
TOOL_JRE_COMPACT2_TARGETS := $(JRE_COMPACT2_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
|
|
|
|
TOOL_JRE_COMPACT3_TARGETS := $(JRE_COMPACT3_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# /man dir
|
|
|
|
#
|
|
|
|
# All variables in this section are assigned with simple =, without :, to enable
|
|
|
|
# more selective overriding from the custom version of this file.
|
|
|
|
#
|
|
|
|
# Avoid evaluating this whole section on windows for speed and stability
|
|
|
|
ifneq ($(OPENJDK_TARGET_OS), windows)
|
|
|
|
JRE_MAN_PAGES += \
|
|
|
|
java.1 \
|
|
|
|
jjs.1 \
|
|
|
|
keytool.1 \
|
|
|
|
orbd.1 \
|
|
|
|
pack200.1 \
|
|
|
|
rmid.1 \
|
|
|
|
rmiregistry.1 \
|
|
|
|
servertool.1 \
|
|
|
|
tnameserv.1 \
|
|
|
|
unpack200.1
|
|
|
|
|
|
|
|
JDK_MAN_PAGES += \
|
|
|
|
$(JRE_MAN_PAGES) \
|
|
|
|
appletviewer.1 \
|
|
|
|
idlj.1 \
|
|
|
|
jar.1 \
|
|
|
|
jarsigner.1 \
|
|
|
|
javac.1 \
|
|
|
|
javadoc.1 \
|
|
|
|
javah.1 \
|
|
|
|
javap.1 \
|
|
|
|
jconsole.1 \
|
|
|
|
jcmd.1 \
|
|
|
|
jdb.1 \
|
|
|
|
jdeps.1 \
|
|
|
|
jinfo.1 \
|
|
|
|
jmap.1 \
|
|
|
|
jps.1 \
|
|
|
|
jrunscript.1 \
|
|
|
|
jstack.1 \
|
|
|
|
jstat.1 \
|
|
|
|
jstatd.1 \
|
2015-02-13 03:03:13 +00:00
|
|
|
policytool.1 \
|
2014-12-03 14:20:21 +00:00
|
|
|
rmic.1 \
|
|
|
|
schemagen.1 \
|
|
|
|
serialver.1 \
|
|
|
|
wsgen.1 \
|
|
|
|
wsimport.1 \
|
|
|
|
xjc.1
|
|
|
|
|
|
|
|
# This variable is potentially overridden in the closed makefile.
|
2017-09-12 17:03:56 +00:00
|
|
|
MAN_SRC_BASEDIR ?= $(TOPDIR)/src
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), linux)
|
|
|
|
MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/linux/doc
|
|
|
|
MAN1_SUBDIR = man
|
|
|
|
endif
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), solaris)
|
|
|
|
MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/solaris/doc
|
|
|
|
MAN1_SUBDIR = sun/man/man1
|
|
|
|
endif
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
|
|
|
MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/bsd/doc
|
|
|
|
MAN1_SUBDIR = man
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(JRE_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/%
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(install-file)
|
|
|
|
|
|
|
|
$(JDK_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/%
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(install-file)
|
|
|
|
|
|
|
|
$(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2015-05-06 08:26:10 +00:00
|
|
|
$(install-file)
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
$(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2015-05-06 08:26:10 +00:00
|
|
|
$(install-file)
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), solaris)
|
|
|
|
$(JRE_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(install-file)
|
|
|
|
|
|
|
|
$(JDK_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(install-file)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring $(OPENJDK_TARGET_OS), linux macosx), )
|
|
|
|
$(JRE_IMAGE_DIR)/man/ja:
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja
|
|
|
|
|
|
|
|
$(JDK_IMAGE_DIR)/man/ja:
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), solaris)
|
|
|
|
JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JRE_IMAGE_DIR)/man/ja/man1/, $(JRE_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JRE_MAN_PAGES))
|
|
|
|
|
|
|
|
JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JDK_IMAGE_DIR)/man/ja/man1/, $(JDK_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JDK_MAN_PAGES))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring $(OPENJDK_TARGET_OS), linux macosx), )
|
|
|
|
JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
|
|
|
|
$(JRE_IMAGE_DIR)/man/ja
|
|
|
|
|
|
|
|
JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
|
|
|
|
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
|
|
|
|
$(JDK_IMAGE_DIR)/man/ja
|
|
|
|
endif
|
|
|
|
|
|
|
|
JRE_TARGETS += $(JRE_MAN_PAGE_LIST)
|
|
|
|
JDK_TARGETS += $(JDK_MAN_PAGE_LIST)
|
|
|
|
endif # Windows
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# src.zip
|
|
|
|
|
2016-11-29 23:20:30 +00:00
|
|
|
$(JDK_IMAGE_DIR)/lib/src.zip: $(SUPPORT_OUTPUTDIR)/src.zip
|
2016-01-16 12:01:43 +00:00
|
|
|
$(call LogInfo, Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2014-12-03 14:20:21 +00:00
|
|
|
$(install-file)
|
|
|
|
|
2016-11-29 23:20:30 +00:00
|
|
|
JDK_TARGETS += $(JDK_IMAGE_DIR)/lib/src.zip
|
2014-12-03 14:20:21 +00:00
|
|
|
|
2016-05-06 23:21:08 +00:00
|
|
|
################################################################################
|
2014-12-03 14:20:21 +00:00
|
|
|
# /demo dir
|
2016-10-05 08:49:21 +00:00
|
|
|
# Avoid doing the expensive find unless called with "jdk" as target.
|
|
|
|
ifneq ($(filter jdk, $(MAKECMDGOALS)), )
|
|
|
|
|
|
|
|
DEMO_FILES := \
|
|
|
|
$(if $(wildcard $(SUPPORT_OUTPUTDIR)/demos/image), \
|
2016-11-07 13:15:49 +00:00
|
|
|
$(call DoubleDollar, \
|
2016-10-05 08:49:21 +00:00
|
|
|
$(shell $(FIND) $(SUPPORT_OUTPUTDIR)/demos/image \
|
2016-11-07 13:15:49 +00:00
|
|
|
-type f -a ! \( -name "_the*" -o -name "javac_state" \) )) \
|
2016-10-05 08:49:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
|
|
|
DEMO_FILES := $(call not-containing, .dSYM, $(DEMO_FILES))
|
|
|
|
else
|
|
|
|
DEMO_FILES := $(filter-out %.debuginfo %.pdb %.map, $(DEMO_FILES))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-01-16 12:01:43 +00:00
|
|
|
$(eval $(call SetupCopyFiles, JDK_COPY_DEMOS, \
|
|
|
|
SRC := $(SUPPORT_OUTPUTDIR)/demos/image, \
|
|
|
|
DEST := $(JDK_IMAGE_DIR)/demo, \
|
2016-10-05 08:49:21 +00:00
|
|
|
FILES := $(DEMO_FILES), \
|
2016-01-16 12:01:43 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
JDK_TARGETS += $(JDK_COPY_DEMOS)
|
2014-12-03 14:20:21 +00:00
|
|
|
endif
|
|
|
|
|
2015-03-10 13:36:56 +00:00
|
|
|
################################################################################
|
|
|
|
# Code coverage data files
|
|
|
|
|
|
|
|
ifeq ($(GCOV_ENABLED), true)
|
|
|
|
|
|
|
|
GCOV_FIND_EXPR := -type f -name "*.gcno"
|
|
|
|
|
2015-03-17 13:16:30 +00:00
|
|
|
$(eval $(call SetupCopyFiles,COPY_HOTSPOT_GCOV_GCNO, \
|
|
|
|
SRC := $(OUTPUT_ROOT), \
|
|
|
|
DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
|
|
|
|
FILES := $(shell $(FIND) $(HOTSPOT_OUTPUTDIR) $(GCOV_FIND_EXPR))))
|
2015-03-10 13:36:56 +00:00
|
|
|
|
2015-03-17 13:16:30 +00:00
|
|
|
SYMBOLS_TARGETS += $(COPY_HOTSPOT_GCOV_GCNO)
|
2015-03-10 13:36:56 +00:00
|
|
|
|
|
|
|
$(eval $(call SetupCopyFiles,COPY_JDK_GCOV_GCNO, \
|
2015-03-17 13:16:30 +00:00
|
|
|
SRC := $(OUTPUT_ROOT), \
|
|
|
|
DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
|
2015-03-10 13:36:56 +00:00
|
|
|
FILES := $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/native $(GCOV_FIND_EXPR))))
|
|
|
|
|
|
|
|
SYMBOLS_TARGETS += $(COPY_JDK_GCOV_GCNO)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-04-28 15:33:49 +00:00
|
|
|
################################################################################
|
|
|
|
# Debug symbols
|
|
|
|
# Since debug symbols are not included in the jmod files, they need to be copied
|
|
|
|
# in manually after generating the images.
|
|
|
|
|
|
|
|
ALL_JDK_MODULES := $(JDK_MODULES)
|
|
|
|
ALL_JRE_MODULES := $(sort $(JRE_MODULES), $(foreach m, $(JRE_MODULES), \
|
|
|
|
$(call FindTransitiveDepsForModule, $m)))
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
|
|
|
LIBS_TARGET_SUBDIR := bin
|
|
|
|
else
|
|
|
|
LIBS_TARGET_SUBDIR := lib
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Param 1 - dir to find debuginfo files in
|
|
|
|
FindDebuginfoFiles = \
|
|
|
|
$(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
|
|
|
|
$(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
|
|
|
|
$(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))
|
|
|
|
|
2016-10-05 08:49:21 +00:00
|
|
|
# Pick the correct debug info files to copy, either zipped or not.
|
|
|
|
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
|
|
|
|
DEBUGINFO_SUFFIXES += .diz
|
|
|
|
else
|
|
|
|
DEBUGINFO_SUFFIXES := .debuginfo .pdb .map
|
|
|
|
# On Macosx, if debug symbols have not been zipped, find all files inside *.dSYM
|
|
|
|
# dirs.
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
|
|
|
$(eval $(call FillCacheFind, \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/modules_cmds $(SUPPORT_OUTPUTDIR)/modules_libs))
|
|
|
|
FindDebuginfoFiles = \
|
|
|
|
$(if $(wildcard $1), $(call containing, .dSYM/, $(call CacheFind, $1)))
|
|
|
|
endif
|
2016-04-28 15:33:49 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Param 1 - either JDK or JRE
|
|
|
|
SetupCopyDebuginfo = \
|
|
|
|
$(foreach m, $(ALL_$1_MODULES), \
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_$1_LIBS_DEBUGINFO_$m, \
|
|
|
|
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$m, \
|
|
|
|
DEST := $($1_IMAGE_DIR)/$(LIBS_TARGET_SUBDIR), \
|
|
|
|
FILES := $(call FindDebuginfoFiles, \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/modules_libs/$m), \
|
|
|
|
)) \
|
|
|
|
$(eval $1_TARGETS += $$(COPY_$1_LIBS_DEBUGINFO_$m)) \
|
|
|
|
)
|
|
|
|
|
|
|
|
# No space before argument to avoid having to put $(strip ) everywhere in
|
|
|
|
# implementation above.
|
|
|
|
$(call SetupCopyDebuginfo,JDK)
|
|
|
|
$(call SetupCopyDebuginfo,JRE)
|
|
|
|
|
2014-12-03 14:20:21 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Include custom post hook here to make it possible to augment the target lists
|
|
|
|
# before actual target prerequisites are declared.
|
|
|
|
$(eval $(call IncludeCustomExtension, , Images-post.gmk))
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(JRE_TARGETS): $(TOOL_JRE_TARGETS)
|
|
|
|
$(JDK_TARGETS): $(TOOL_JDK_TARGETS)
|
|
|
|
|
2016-10-05 08:49:21 +00:00
|
|
|
jdk: $(JDK_TARGETS)
|
|
|
|
jre: $(JRE_TARGETS)
|
|
|
|
symbols: $(SYMBOLS_TARGETS)
|
|
|
|
|
|
|
|
all: jdk jre symbols
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
$(JRE_COMPACT1_TARGETS): $(TOOL_JRE_COMPACT1_TARGETS)
|
|
|
|
$(JRE_COMPACT2_TARGETS): $(TOOL_JRE_COMPACT2_TARGETS)
|
|
|
|
$(JRE_COMPACT3_TARGETS): $(TOOL_JRE_COMPACT3_TARGETS)
|
|
|
|
|
|
|
|
profiles: $(TOOL_JRE_COMPACT1_TARGETS) \
|
|
|
|
$(TOOL_JRE_COMPACT2_TARGETS) \
|
|
|
|
$(TOOL_JRE_COMPACT3_TARGETS) \
|
|
|
|
$(JRE_COMPACT1_TARGETS) \
|
|
|
|
$(JRE_COMPACT2_TARGETS) \
|
|
|
|
$(JRE_COMPACT3_TARGETS)
|
|
|
|
|
2016-10-05 08:49:21 +00:00
|
|
|
.PHONY: default all jdk jre symbols profiles
|