annotate make/InterimImage.gmk @ 41258:93d617c00792

Added tag jdk-9+139 for changeset 65477538bec3
author duke
date Wed, 05 Jul 2017 22:17:46 +0200
parents 9f040cf69078
children 07c3c4f1eb63
rev   line source
redestad@37770 1 #
redestad@37770 2 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
redestad@37770 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
redestad@37770 4 #
redestad@37770 5 # This code is free software; you can redistribute it and/or modify it
redestad@37770 6 # under the terms of the GNU General Public License version 2 only, as
redestad@37770 7 # published by the Free Software Foundation. Oracle designates this
redestad@37770 8 # particular file as subject to the "Classpath" exception as provided
redestad@37770 9 # by Oracle in the LICENSE file that accompanied this code.
redestad@37770 10 #
redestad@37770 11 # This code is distributed in the hope that it will be useful, but WITHOUT
redestad@37770 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
redestad@37770 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
redestad@37770 14 # version 2 for more details (a copy is included in the LICENSE file that
redestad@37770 15 # accompanied this code).
redestad@37770 16 #
redestad@37770 17 # You should have received a copy of the GNU General Public License version
redestad@37770 18 # 2 along with this work; if not, write to the Free Software Foundation,
redestad@37770 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
redestad@37770 20 #
redestad@37770 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
redestad@37770 22 # or visit www.oracle.com if you need additional information or have any
redestad@37770 23 # questions.
redestad@37770 24 #
redestad@37770 25
redestad@37770 26 default: all
redestad@37770 27
redestad@37770 28 include $(SPEC)
redestad@37770 29 include MakeBase.gmk
redestad@37770 30 include Modules.gmk
redestad@37770 31
redestad@37770 32 ################################################################################
redestad@37770 33
redestad@37770 34 # Use this file inside the image as target for make rule
redestad@37770 35 JIMAGE_TARGET_FILE := bin/java$(EXE_SUFFIX)
redestad@37770 36
redestad@37770 37 INTERIM_MODULES_LIST := $(call CommaList, $(INTERIM_IMAGE_MODULES))
redestad@37770 38
redestad@37770 39 JMODS := $(patsubst %, $(IMAGES_OUTPUTDIR)/jmods/%.jmod, $(INTERIM_IMAGE_MODULES))
redestad@37770 40
redestad@37770 41 JLINK_TOOL := $(JLINK) \
mchung@40241 42 --module-path $(IMAGES_OUTPUTDIR)/jmods \
redestad@37770 43 --endian $(OPENJDK_BUILD_CPU_ENDIAN)
redestad@37770 44
redestad@37770 45 $(INTERIM_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
redestad@37770 46 $(call DependOnVariable, INTERIM_MODULES_LIST)
redestad@37770 47 $(ECHO) Creating interim jimage
redestad@37770 48 $(RM) -r $(INTERIM_IMAGE_DIR)
redestad@37770 49 $(JLINK_TOOL) \
redestad@37770 50 --output $(INTERIM_IMAGE_DIR) \
mchung@40241 51 --add-modules $(INTERIM_MODULES_LIST)
redestad@37770 52 $(TOUCH) $@
redestad@37770 53
redestad@37770 54 TARGETS += $(INTERIM_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
redestad@37770 55
redestad@37770 56 ################################################################################
redestad@37770 57
redestad@37770 58 all: $(TARGETS)
redestad@37770 59
redestad@37770 60 .PHONY: all