make/Jprt.gmk

Thu, 16 Oct 2014 20:31:43 -0400

author
mikael
date
Thu, 16 Oct 2014 20:31:43 -0400
changeset 1190
2e76a06cb431
parent 1155
c7b4d867b82d
child 1174
6cb876613230
permissions
-rw-r--r--

8049071: Add jtreg jobs to JPRT for hotspot
Reviewed-by: dholmes, iveresov

erikj@559 1 #
ksrini@806 2 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
erikj@559 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@559 4 #
erikj@559 5 # This code is free software; you can redistribute it and/or modify it
erikj@559 6 # under the terms of the GNU General Public License version 2 only, as
erikj@559 7 # published by the Free Software Foundation. Oracle designates this
erikj@559 8 # particular file as subject to the "Classpath" exception as provided
erikj@559 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@559 10 #
erikj@559 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@559 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@559 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@559 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@559 15 # accompanied this code).
erikj@559 16 #
erikj@559 17 # You should have received a copy of the GNU General Public License version
erikj@559 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@559 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@559 20 #
erikj@559 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@559 22 # or visit www.oracle.com if you need additional information or have any
erikj@559 23 # questions.
erikj@559 24 #
erikj@559 25
mikael@1140 26 # This file is contains targets utilities needed by JPRT.
erikj@559 27
erikj@559 28 ifndef JPRT_ARCHIVE_BUNDLE
erikj@559 29 JPRT_ARCHIVE_BUNDLE=/tmp/jprt_bundles/j2sdk-image.zip
erikj@559 30 endif
tbell@589 31 ifndef JPRT_ARCHIVE_INSTALL_BUNDLE
ihse@839 32 JPRT_ARCHIVE_INSTALL_BUNDLE=/tmp/jprt_bundles/product-install.zip
tbell@589 33 endif
erikj@559 34
mikael@1155 35 ifeq ($(SKIP_BOOT_CYCLE), false)
mikael@1155 36 jprt_bundle: bootcycle-images
mikael@1155 37 endif
mikael@1155 38
erikj@559 39 # This target must be called in the context of a SPEC file
erikj@559 40 jprt_bundle: $(JPRT_ARCHIVE_BUNDLE)
erikj@559 41 @$(call CheckIfMakeAtEnd)
erikj@559 42
erikj@559 43 # This target must be called in the context of a SPEC file
erikj@559 44 $(JPRT_ARCHIVE_BUNDLE): bundles
erikj@559 45 $(MKDIR) -p $(@D)
erikj@559 46 $(RM) $@
erikj@610 47 $(CP) $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip $@
erikj@559 48
ksrini@806 49 SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR)
ksrini@806 50 SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR)
erikj@610 51 SRC_JDK_BUNDLE_DIR := $(JDK_BUNDLE_DIR)
erikj@610 52 SRC_JRE_BUNDLE_DIR := $(JRE_BUNDLE_DIR)
erikj@610 53
erikj@610 54 # Bundle up the images
erikj@610 55 bundles: all bundles-only
erikj@610 56 bundles-only: start-make
erikj@559 57 @$(call TargetEnter)
erikj@559 58 $(MKDIR) -p $(BUILD_OUTPUT)/bundles
ksrini@806 59 $(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIP) -y -q -r $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip .
ksrini@806 60 $(CD) $(SRC_JRE_IMAGE_DIR) && $(ZIP) -y -q -r $(BUILD_OUTPUT)/bundles/$(JRE_IMAGE_SUBDIR).zip .
ihse@839 61 if [ -d $(BUILD_OUTPUT)/install/bundles ] ; then \
ihse@839 62 $(CD) $(BUILD_OUTPUT)/install/bundles && $(ZIP) -y -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ; \
ihse@839 63 fi
erikj@610 64 @$(call TargetExit)
erikj@610 65
erikj@610 66 # Copy images to one unified location regardless of platform etc.
erikj@610 67 final-images: all final-images-only
erikj@610 68 final-images-only: start-make
erikj@610 69 @$(call TargetEnter)
erikj@610 70 $(RM) -r $(BUILD_OUTPUT)/final-images
erikj@610 71 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)
erikj@610 72 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)
erikj@610 73 $(CP) -R -P $(SRC_JDK_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)/
erikj@610 74 $(CP) -R -P $(SRC_JRE_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)/
ihse@839 75 ifeq ($(OPENJDK_TARGET_OS),macosx)
ihse@839 76 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)
ihse@839 77 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)
ihse@839 78 $(CP) -R -P $(SRC_JDK_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)/
ihse@839 79 $(CP) -R -P $(SRC_JRE_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)/
ihse@839 80 endif
erikj@559 81 @$(call TargetExit)
erikj@559 82
erikj@610 83
erikj@559 84 ###########################################################################
erikj@559 85 # Phony targets
mikael@1140 86 .PHONY: jprt_bundle bundles bundles-only final-images final-images-only

mercurial