author | schien |
Thu, 05 May 2011 14:02:17 -0700 | |
changeset 9454 | 99a7ebf426f2 |
parent 9309 | 334bea52fc16 |
child 9618 | 83db8167c9f6 |
permissions | -rw-r--r-- |
0 | 1 |
# |
8917
a3bac6e9ee79
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8445
diff
changeset
|
2 |
# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved. |
0 | 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 |
|
5499 | 7 |
# published by the Free Software Foundation. Oracle designates this |
0 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5499 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
0 | 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 |
# |
|
5499 | 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. |
|
0 | 24 |
# |
25 |
||
17
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
26 |
BUILD_PARENT_DIRECTORY=. |
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
27 |
|
0 | 28 |
ifndef TOPDIR |
20 | 29 |
TOPDIR:=. |
0 | 30 |
endif |
31 |
||
32 |
ifndef JDK_TOPDIR |
|
33 |
JDK_TOPDIR=$(TOPDIR)/jdk |
|
34 |
endif |
|
35 |
ifndef JDK_MAKE_SHARED_DIR |
|
36 |
JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared |
|
37 |
endif |
|
38 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
39 |
default: all |
0 | 40 |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
41 |
include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
42 |
include ./make/Defs-internal.gmk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
43 |
include ./make/sanity-rules.gmk |
0 | 44 |
include ./make/hotspot-rules.gmk |
45 |
include ./make/langtools-rules.gmk |
|
46 |
include ./make/corba-rules.gmk |
|
47 |
include ./make/jaxp-rules.gmk |
|
48 |
include ./make/jaxws-rules.gmk |
|
49 |
include ./make/jdk-rules.gmk |
|
50 |
include ./make/install-rules.gmk |
|
51 |
include ./make/sponsors-rules.gmk |
|
52 |
include ./make/deploy-rules.gmk |
|
53 |
||
7873
4ff5acee11e8
7009969: Remove SKIP_OPENJDK_BUILD from top Makefile
ohair
parents:
7652
diff
changeset
|
54 |
all:: sanity |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
55 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
56 |
ifeq ($(SKIP_FASTDEBUG_BUILD), false) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
57 |
all:: fastdebug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
58 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
59 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
60 |
ifeq ($(SKIP_DEBUG_BUILD), false) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
61 |
all:: debug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
62 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
63 |
|
948 | 64 |
all:: all_product_build |
65 |
||
8445 | 66 |
all_product_build:: |
67 |
||
8441 | 68 |
# Everything for a full product build |
69 |
ifeq ($(SKIP_PRODUCT_BUILD), false) |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
70 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
71 |
all_product_build:: product_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
72 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
73 |
ifeq ($(BUILD_INSTALL), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
74 |
all_product_build:: $(INSTALL) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
75 |
clobber:: install-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
76 |
endif |
8441 | 77 |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
78 |
ifeq ($(BUILD_SPONSORS), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
79 |
all_product_build:: $(SPONSORS) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
80 |
clobber:: sponsors-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
81 |
endif |
8441 | 82 |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
83 |
ifneq ($(SKIP_COMPARE_IMAGES), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
84 |
all_product_build:: compare-image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
85 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
86 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
87 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
88 |
|
8441 | 89 |
define StartTimer |
90 |
$(MKDIR) -p $(BUILDTIMESDIR) |
|
91 |
$(RM) $(BUILDTIMESDIR)/build_time_* |
|
92 |
$(call RecordStartTime,TOTAL) |
|
93 |
endef |
|
94 |
||
95 |
define StopTimer |
|
96 |
$(if $(REPORT_BUILD_TIMES),$(call RecordEndTime,TOTAL) && $(call ReportBuildTimes,$1),) |
|
97 |
endef |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
98 |
|
5743 | 99 |
# Generic build of basic repo series |
9309 | 100 |
generic_build_repo_series:: $(SOURCE_TIPS) |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
101 |
$(MKDIR) -p $(OUTPUTDIR) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
102 |
$(MKDIR) -p $(OUTPUTDIR)/j2sdk-image |
8441 | 103 |
@$(call StartTimer) |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
104 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
105 |
ifeq ($(BUILD_LANGTOOLS), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
106 |
generic_build_repo_series:: langtools |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
107 |
clobber:: langtools-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
108 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
109 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
110 |
ifeq ($(BUILD_CORBA), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
111 |
generic_build_repo_series:: corba |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
112 |
clobber:: corba-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
113 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
114 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
115 |
ifeq ($(BUILD_JAXP), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
116 |
generic_build_repo_series:: jaxp |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
117 |
clobber:: jaxp-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
118 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
119 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
120 |
ifeq ($(BUILD_JAXWS), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
121 |
generic_build_repo_series:: jaxws |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
122 |
clobber:: jaxws-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
123 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
124 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
125 |
ifeq ($(BUILD_HOTSPOT), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
126 |
generic_build_repo_series:: $(HOTSPOT) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
127 |
clobber:: hotspot-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
128 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
129 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
130 |
ifeq ($(BUILD_JDK), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
131 |
generic_build_repo_series:: $(JDK_JAVA_EXE) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
132 |
clobber:: jdk-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
133 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
134 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
135 |
ifeq ($(BUILD_DEPLOY), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
136 |
generic_build_repo_series:: $(DEPLOY) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
137 |
clobber:: deploy-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
138 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
139 |
|
8441 | 140 |
generic_build_repo_series:: |
141 |
@$(call StopTimer,$(if $(DEBUG_NAME),$(DEBUG_NAME)_build,all_product_build)) |
|
142 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
143 |
# The debug build, fastdebug or debug. Needs special handling. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
144 |
# Note that debug builds do NOT do INSTALL steps, but must be done |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
145 |
# after the product build and before the INSTALL step of the product build. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
146 |
# |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
147 |
# DEBUG_NAME is fastdebug or debug |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
148 |
# ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
149 |
# The resulting j2sdk-image is used by the install makefiles to create a |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
150 |
# debug install bundle jdk-*-debug-** bundle (tar or zip) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
151 |
# which will install in the debug or fastdebug subdirectory of the |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
152 |
# normal product install area. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
153 |
# The install process needs to know what the DEBUG_NAME is, so |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
154 |
# look for INSTALL_DEBUG_NAME in the install rules. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
155 |
# |
5743 | 156 |
# NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME). |
157 |
# Due to the use of short paths in $(ABS_OUTPUTDIR), this may |
|
158 |
# not be the same location. |
|
159 |
# |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
160 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
161 |
# Location of fresh bootdir output |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
162 |
ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
163 |
FRESH_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/j2sdk-image |
5743 | 164 |
FRESH_DEBUG_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-$(DEBUG_NAME)/j2sdk-image |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
165 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
166 |
create_fresh_product_bootdir: FRC |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
167 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
168 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
169 |
BOOT_CYCLE_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
170 |
build_product_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
171 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
172 |
create_fresh_debug_bootdir: FRC |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
173 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
174 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
175 |
BOOT_CYCLE_DEBUG_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
176 |
build_debug_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
177 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
178 |
create_fresh_fastdebug_bootdir: FRC |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
179 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
180 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
181 |
BOOT_CYCLE_DEBUG_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
182 |
build_fastdebug_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
183 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
184 |
# Create boot image? |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
185 |
ifeq ($(SKIP_BOOT_CYCLE),false) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
186 |
ifneq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
187 |
DO_BOOT_CYCLE=true |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
188 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
189 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
190 |
|
8441 | 191 |
|
192 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
193 |
ifeq ($(DO_BOOT_CYCLE),true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
194 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
195 |
# Create the bootdir to use in the build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
196 |
product_build:: create_fresh_product_bootdir |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
197 |
debug_build:: create_fresh_debug_bootdir |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
198 |
fastdebug_build:: create_fresh_fastdebug_bootdir |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
199 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
200 |
# Define variables to be used now for the boot jdk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
201 |
BOOT_CYCLE_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
202 |
ALT_BOOTDIR=$(FRESH_BOOTDIR) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
203 |
ALT_JDK_IMPORT_PATH=$(FRESH_BOOTDIR) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
204 |
BOOT_CYCLE_DEBUG_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
205 |
ALT_BOOTDIR=$(FRESH_DEBUG_BOOTDIR) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
206 |
ALT_JDK_IMPORT_PATH=$(FRESH_DEBUG_BOOTDIR) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
207 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
208 |
else |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
209 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
210 |
# Use the supplied ALT_BOOTDIR as the boot |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
211 |
BOOT_CYCLE_SETTINGS= |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
212 |
BOOT_CYCLE_DEBUG_SETTINGS= |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
213 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
214 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
215 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
216 |
build_product_image: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
217 |
$(MAKE) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
218 |
SKIP_FASTDEBUG_BUILD=true \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
219 |
SKIP_DEBUG_BUILD=true \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
220 |
$(BOOT_CYCLE_SETTINGS) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
221 |
generic_build_repo_series |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
222 |
|
5743 | 223 |
# NOTE: On windows, do not use $(ABS_OUTPUTDIR)-$(DEBUG_NAME). |
224 |
# Due to the use of short paths in $(ABS_OUTPUTDIR), this may |
|
225 |
# not be the same location. |
|
226 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
227 |
generic_debug_build: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
228 |
$(MAKE) \ |
5743 | 229 |
ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-$(DEBUG_NAME) \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
230 |
DEBUG_NAME=$(DEBUG_NAME) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
231 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
232 |
$(BOOT_CYCLE_DEBUG_SETTINGS) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
233 |
generic_build_repo_series |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
234 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
235 |
build_debug_image: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
236 |
$(MAKE) DEBUG_NAME=debug generic_debug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
237 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
238 |
build_fastdebug_image: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
239 |
$(MAKE) DEBUG_NAME=fastdebug generic_debug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
240 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
241 |
# Build final image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
242 |
product_build:: build_product_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
243 |
debug_build:: build_debug_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
244 |
fastdebug_build:: build_fastdebug_image |
0 | 245 |
|
9309 | 246 |
# The source tips are stored with the relative path to the repo. |
247 |
# This file will be used when constructing the jdk image. |
|
248 |
source_tips: $(SOURCE_TIPS) |
|
249 |
$(CAT) $< |
|
250 |
$(SOURCE_TIPS): FRC |
|
251 |
@$(prep-target) |
|
252 |
@$(call GetSourceTips) |
|
253 |
||
8441 | 254 |
clobber:: REPORT_BUILD_TIMES= |
255 |
clobber:: |
|
0 | 256 |
$(RM) -r $(OUTPUTDIR)/* |
5743 | 257 |
$(RM) -r $(OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-debug/* |
258 |
$(RM) -r $(OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-fastdebug/* |
|
0 | 259 |
-($(RMDIR) -p $(OUTPUTDIR) > $(DEV_NULL) 2>&1; $(TRUE)) |
260 |
||
261 |
clean: clobber |
|
262 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
263 |
# |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
264 |
# Dev builds |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
265 |
# |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
266 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
267 |
dev : dev-build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
268 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
269 |
dev-build: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
270 |
$(MAKE) DEV_ONLY=true all |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
271 |
dev-sanity: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
272 |
$(MAKE) DEV_ONLY=true sanity |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
273 |
dev-clobber: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
274 |
$(MAKE) DEV_ONLY=true clobber |
0 | 275 |
|
276 |
# |
|
277 |
# Quick jdk verification build |
|
278 |
# |
|
279 |
jdk_only: |
|
280 |
$(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all |
|
281 |
||
282 |
||
283 |
# |
|
284 |
# Quick jdk verification fastdebug build |
|
285 |
# |
|
286 |
jdk_fastdebug_only: |
|
287 |
$(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \ |
|
288 |
BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build |
|
289 |
||
290 |
# |
|
291 |
# Quick deploy verification fastdebug build |
|
292 |
# |
|
293 |
deploy_fastdebug_only: |
|
294 |
$(MAKE) \ |
|
295 |
DEBUG_NAME=fastdebug \ |
|
296 |
BUILD_HOTSPOT=false \ |
|
297 |
BUILD_JDK=false \ |
|
298 |
BUILD_LANGTOOLS=false \ |
|
299 |
BUILD_CORBA=false \ |
|
300 |
BUILD_JAXP=false \ |
|
301 |
BUILD_JAXWS=false \ |
|
302 |
BUILD_INSTALL=false \ |
|
303 |
BUILD_SPONSORS=false \ |
|
304 |
generic_debug_build |
|
305 |
||
306 |
# |
|
307 |
# Product build (skip debug builds) |
|
308 |
# |
|
309 |
product_only: |
|
310 |
$(MAKE) SKIP_FASTDEBUG_BUILD=true all |
|
311 |
||
312 |
# |
|
313 |
# Check target |
|
314 |
# |
|
315 |
||
316 |
check: variable_check |
|
317 |
||
318 |
# |
|
319 |
# Help target |
|
320 |
# |
|
321 |
help: intro_help target_help variable_help notes_help examples_help |
|
322 |
||
323 |
# Intro help message |
|
324 |
intro_help: |
|
325 |
@$(ECHO) "\ |
|
326 |
Makefile for the JDK builds (all the JDK). \n\ |
|
327 |
" |
|
328 |
||
329 |
# Target help |
|
330 |
target_help: |
|
331 |
@$(ECHO) "\ |
|
332 |
--- Common Targets --- \n\ |
|
333 |
all -- build the core JDK (default target) \n\ |
|
334 |
help -- Print out help information \n\ |
|
335 |
check -- Check make variable values for correctness \n\ |
|
336 |
sanity -- Perform detailed sanity checks on system and settings \n\ |
|
337 |
fastdebug_build -- build the core JDK in 'fastdebug' mode (-g -O) \n\ |
|
338 |
debug_build -- build the core JDK in 'debug' mode (-g) \n\ |
|
339 |
clean -- remove all built and imported files \n\ |
|
340 |
clobber -- same as clean \n\ |
|
341 |
" |
|
342 |
||
343 |
# Variable help (only common ones used by this Makefile) |
|
344 |
variable_help: variable_help_intro variable_list variable_help_end |
|
345 |
variable_help_intro: |
|
346 |
@$(ECHO) "--- Common Variables ---" |
|
347 |
variable_help_end: |
|
348 |
@$(ECHO) " " |
|
349 |
||
350 |
# One line descriptions for the variables |
|
351 |
OUTPUTDIR.desc = Output directory |
|
352 |
PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count |
|
353 |
SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: |
|
354 |
BOOTDIR.desc = JDK used to boot the build |
|
355 |
JDK_IMPORT_PATH.desc = JDK used to import components of the build |
|
356 |
COMPILER_PATH.desc = Compiler install directory |
|
357 |
CACERTS_FILE.desc = Location of certificates file |
|
358 |
DEVTOOLS_PATH.desc = Directory containing zip and gnumake |
|
359 |
CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files |
|
360 |
DXSDK_PATH.desc = Root directory of DirectX SDK |
|
361 |
||
362 |
# Make variables to print out (description and value) |
|
363 |
VARIABLE_PRINTVAL_LIST += \ |
|
364 |
OUTPUTDIR \ |
|
365 |
PARALLEL_COMPILE_JOBS \ |
|
366 |
SLASH_JAVA \ |
|
367 |
BOOTDIR \ |
|
368 |
JDK_IMPORT_PATH \ |
|
369 |
COMPILER_PATH \ |
|
370 |
CACERTS_FILE \ |
|
371 |
DEVTOOLS_PATH |
|
372 |
||
373 |
# Make variables that should refer to directories that exist |
|
374 |
VARIABLE_CHECKDIR_LIST += \ |
|
375 |
SLASH_JAVA \ |
|
376 |
BOOTDIR \ |
|
377 |
JDK_IMPORT_PATH \ |
|
378 |
COMPILER_PATH \ |
|
379 |
DEVTOOLS_PATH |
|
380 |
||
381 |
# Make variables that should refer to files that exist |
|
382 |
VARIABLE_CHECKFIL_LIST += \ |
|
383 |
CACERTS_FILE |
|
384 |
||
385 |
# Some are windows specific |
|
386 |
ifeq ($(PLATFORM), windows) |
|
387 |
||
388 |
VARIABLE_PRINTVAL_LIST += \ |
|
7876
c2a288bdcca1
6950375: Remove msvcrt.dll from the Windows JRE bundles
ohair
parents:
7873
diff
changeset
|
389 |
DXSDK_PATH |
0 | 390 |
|
391 |
VARIABLE_CHECKDIR_LIST += \ |
|
7876
c2a288bdcca1
6950375: Remove msvcrt.dll from the Windows JRE bundles
ohair
parents:
7873
diff
changeset
|
392 |
DXSDK_PATH |
0 | 393 |
|
394 |
endif |
|
395 |
||
396 |
# For pattern rules below, so all are treated the same |
|
397 |
DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) |
|
398 |
DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) |
|
399 |
DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) |
|
400 |
||
401 |
# Complete variable check |
|
402 |
variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) |
|
403 |
variable_list: $(DO_PRINTVAL_LIST) variable_check |
|
404 |
||
405 |
# Pattern rule for printing out a variable |
|
406 |
%.printval: |
|
407 |
@$(ECHO) " ALT_$* - $($*.desc)" |
|
408 |
@$(ECHO) " \t $*=$($*)" |
|
409 |
||
410 |
# Pattern rule for checking to see if a variable with a directory exists |
|
411 |
%.checkdir: |
|
412 |
@if [ ! -d $($*) ] ; then \ |
|
413 |
$(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ |
|
414 |
fi |
|
415 |
||
416 |
# Pattern rule for checking to see if a variable with a file exists |
|
417 |
%.checkfil: |
|
418 |
@if [ ! -f $($*) ] ; then \ |
|
419 |
$(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ |
|
420 |
fi |
|
421 |
||
422 |
# Misc notes on help |
|
423 |
notes_help: |
|
424 |
@$(ECHO) "\ |
|
425 |
--- Notes --- \n\ |
|
426 |
- All builds use same output directory unless overridden with \n\ |
|
427 |
\t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\ |
|
428 |
\t to use the clean target first. \n\ |
|
429 |
- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\ |
|
430 |
\t builds or previous release JDK builds will work. \n\ |
|
431 |
- The fastest builds have been when the sources and the BOOTDIR are on \n\ |
|
432 |
\t local disk. \n\ |
|
433 |
" |
|
434 |
||
435 |
examples_help: |
|
436 |
@$(ECHO) "\ |
|
437 |
--- Examples --- \n\ |
|
438 |
$(MAKE) fastdebug_build \n\ |
|
439 |
$(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\ |
|
440 |
$(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\ |
|
441 |
$(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\ |
|
442 |
$(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\ |
|
443 |
$(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\ |
|
444 |
" |
|
445 |
||
446 |
################################################################ |
|
7652
803a0c91a1a2
7008723: Remove binary plugs creation and use from openjdk
ohair
parents:
7649
diff
changeset
|
447 |
# Source bundling |
0 | 448 |
################################################################ |
449 |
ifeq ($(BUNDLE_RULES_AVAILABLE), true) |
|
450 |
include $(BUNDLE_RULES) |
|
451 |
endif |
|
452 |
||
453 |
################################################################ |
|
5743 | 454 |
# rule to test |
455 |
################################################################ |
|
456 |
||
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
457 |
.NOTPARALLEL: test_run |
5743 | 458 |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
459 |
test: |
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
460 |
$(MAKE) test_run |
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
461 |
|
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
462 |
test_run: test_clean test_start test_summary |
5743 | 463 |
|
464 |
test_start: |
|
465 |
@$(ECHO) "Tests started at `$(DATE)`" |
|
466 |
||
467 |
test_clean: |
|
468 |
$(RM) $(OUTPUTDIR)/test_failures.txt $(OUTPUTDIR)/test_log.txt |
|
469 |
||
470 |
test_summary: $(OUTPUTDIR)/test_failures.txt |
|
471 |
@$(ECHO) "#################################################" |
|
472 |
@$(ECHO) "Tests completed at `$(DATE)`" |
|
473 |
@( $(EGREP) '^TEST STATS:' $(OUTPUTDIR)/test_log.txt \ |
|
474 |
|| $(ECHO) "No TEST STATS seen in log" ) |
|
475 |
@$(ECHO) "For complete details see: $(OUTPUTDIR)/test_log.txt" |
|
476 |
@$(ECHO) "#################################################" |
|
477 |
@if [ -s $< ] ; then \ |
|
478 |
$(ECHO) "ERROR: Test failure count: `$(CAT) $< | $(WC) -l`"; \ |
|
479 |
$(CAT) $<; \ |
|
480 |
exit 1; \ |
|
481 |
else \ |
|
482 |
$(ECHO) "Success! No failures detected"; \ |
|
483 |
fi |
|
484 |
||
485 |
# Get failure list from log |
|
486 |
$(OUTPUTDIR)/test_failures.txt: $(OUTPUTDIR)/test_log.txt |
|
487 |
@$(RM) $@ |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
488 |
@( $(EGREP) '^FAILED:' $< || $(ECHO) "" ) | $(NAWK) 'length>0' > $@ |
5743 | 489 |
|
490 |
# Get log file of all tests run |
|
491 |
JDK_TO_TEST := $(shell \ |
|
492 |
if [ -d "$(ABS_OUTPUTDIR)/j2sdk-image" ] ; then \ |
|
493 |
$(ECHO) "$(ABS_OUTPUTDIR)/j2sdk-image"; \ |
|
494 |
elif [ -d "$(ABS_OUTPUTDIR)/bin" ] ; then \ |
|
495 |
$(ECHO) "$(ABS_OUTPUTDIR)"; \ |
|
496 |
elif [ "$(PRODUCT_HOME)" != "" -a -d "$(PRODUCT_HOME)/bin" ] ; then \ |
|
497 |
$(ECHO) "$(PRODUCT_HOME)"; \ |
|
498 |
fi \ |
|
499 |
) |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
500 |
TEST_TARGETS=all |
5743 | 501 |
$(OUTPUTDIR)/test_log.txt: |
502 |
$(RM) $@ |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
503 |
( $(CD) test && \ |
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
504 |
$(MAKE) NO_STOPPING=- PRODUCT_HOME=$(JDK_TO_TEST) $(TEST_TARGETS) \ |
5743 | 505 |
) | tee $@ |
506 |
||
507 |
################################################################ |
|
0 | 508 |
# JPRT rule to build |
509 |
################################################################ |
|
510 |
||
511 |
include ./make/jprt.gmk |
|
512 |
||
513 |
################################################################ |
|
514 |
# PHONY |
|
515 |
################################################################ |
|
516 |
||
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
517 |
.PHONY: all test test_run test_start test_summary test_clean \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
518 |
generic_build_repo_series \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
519 |
what clobber insane \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
520 |
dev dev-build dev-sanity dev-clobber \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
521 |
product_build \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
522 |
fastdebug_build \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
523 |
debug_build \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
524 |
build_product_image \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
525 |
build_debug_image \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
526 |
build_fastdebug_image \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
527 |
create_fresh_product_bootdir \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
528 |
create_fresh_debug_bootdir \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
529 |
create_fresh_fastdebug_bootdir \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
530 |
generic_debug_build |
0 | 531 |
|
17
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
532 |
# Force target |
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
533 |
FRC: |
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
534 |