139 ifeq ($(BUILD_JAXWS), true)
140 generic_build_repo_series:: jaxws
141 clobber:: jaxws-clobber
142 endif
143
144 ifeq ($(BUILD_HOTSPOT), true)
145 generic_build_repo_series:: $(HOTSPOT)
146 clobber:: hotspot-clobber
147 endif
148
149 ifeq ($(BUILD_JDK), true)
150 generic_build_repo_series:: $(JDK_JAVA_EXE)
151 clobber:: jdk-clobber
152 endif
153
154 ifeq ($(BUILD_DEPLOY), true)
155 generic_build_repo_series:: $(DEPLOY)
156 clobber:: deploy-clobber
157 endif
158
159 ifeq ($(BUILD_JDK), true)
160 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
161 generic_build_repo_series:: openjdk-binary-plugs-bundles
162 endif
163 endif
164
165 # The debug build, fastdebug or debug. Needs special handling.
166 # Note that debug builds do NOT do INSTALL steps, but must be done
167 # after the product build and before the INSTALL step of the product build.
168 #
169 # DEBUG_NAME is fastdebug or debug
170 # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix
171 # The resulting j2sdk-image is used by the install makefiles to create a
172 # debug install bundle jdk-*-debug-** bundle (tar or zip)
173 # which will install in the debug or fastdebug subdirectory of the
174 # normal product install area.
175 # The install process needs to know what the DEBUG_NAME is, so
176 # look for INSTALL_DEBUG_NAME in the install rules.
177 #
178 # NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME).
179 # Due to the use of short paths in $(ABS_OUTPUTDIR), this may
180 # not be the same location.
181 #
182
183 # Location of fresh bootdir output
184 ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk
284 else \
285 $(ECHO) "OpenJDK will be built after JDK is built"; \
286 $(ECHO) " OPENJDK_BUILDDIR=$(OPENJDK_BUILDDIR)"; \
287 fi
288 @$(ECHO) "================================================="
289 @$(ECHO) " "
290 endif
291
292 # If we have bundle rules, we have a chance here to do a complete cycle
293 # build, of production and open build.
294 # FIXUP: We should create the openjdk source bundle and build that?
295 # But how do we reliable create or get at a formal openjdk source tree?
296 # The one we have needs to be trimmed of built bits and closed dirs.
297 # The repositories might not be available.
298 # The openjdk source bundle is probably not available.
299
300 ifneq ($(SKIP_OPENJDK_BUILD), true)
301 ifeq ($(BUILD_JDK), true)
302 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
303
304 OPENJDK_PLUGS=$(ABS_OUTPUTDIR)/$(OPENJDK_BINARY_PLUGS_INAME)
305 OPENJDK_OUTPUTDIR=$(ABS_OUTPUTDIR)/open-output
306 OPENJDK_BUILD_NAME \
307 = openjdk-$(JDK_MINOR_VERSION)-$(BUILD_NUMBER)-$(PLATFORM)-$(ARCH)-$(BUNDLE_DATE)
308 OPENJDK_BUILD_BINARY_ZIP=$(ABS_BIN_BUNDLEDIR)/$(OPENJDK_BUILD_NAME).zip
309 BUILT_IMAGE=$(ABS_OUTPUTDIR)/j2sdk-image
310 ifeq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64)
311 OPENJDK_BOOTDIR=$(BOOTDIR)
312 OPENJDK_IMPORTJDK=$(JDK_IMPORT_PATH)
313 else
314 OPENJDK_BOOTDIR=$(BUILT_IMAGE)
315 OPENJDK_IMPORTJDK=$(BUILT_IMAGE)
316 endif
317
318 openjdk_build:
319 @$(START_ECHO)
320 @$(ECHO) " "
321 @$(ECHO) "================================================="
322 @$(ECHO) "Starting openjdk build"
323 @$(ECHO) " Using: ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR)"
324 @$(ECHO) "================================================="
325 @$(ECHO) " "
326 $(RM) -r $(OPENJDK_OUTPUTDIR)
327 $(MKDIR) -p $(OPENJDK_OUTPUTDIR)
328 ($(CD) $(OPENJDK_BUILDDIR) && $(MAKE) \
329 OPENJDK=true \
330 GENERATE_DOCS=false \
331 ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR) \
332 ALT_OUTPUTDIR=$(OPENJDK_OUTPUTDIR) \
333 ALT_BINARY_PLUGS_PATH=$(OPENJDK_PLUGS) \
334 ALT_BOOTDIR=$(OPENJDK_BOOTDIR) \
335 ALT_JDK_IMPORT_PATH=$(OPENJDK_IMPORTJDK) \
336 product_build )
337 $(RM) $(OPENJDK_BUILD_BINARY_ZIP)
338 ( $(CD) $(OPENJDK_OUTPUTDIR)/j2sdk-image && \
339 $(ZIPEXE) -q -r $(OPENJDK_BUILD_BINARY_ZIP) .)
340 $(RM) -r $(OPENJDK_OUTPUTDIR)
341 @$(ECHO) " "
342 @$(ECHO) "================================================="
343 @$(ECHO) "Finished openjdk build"
344 @$(ECHO) " Binary Bundle: $(OPENJDK_BUILD_BINARY_ZIP)"
345 @$(ECHO) "================================================="
346 @$(ECHO) " "
347 @$(FINISH_ECHO)
348
349 endif
350 endif
351 endif
352
353 clobber::
528 \t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\
529 \t to use the clean target first. \n\
530 - JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\
531 \t builds or previous release JDK builds will work. \n\
532 - The fastest builds have been when the sources and the BOOTDIR are on \n\
533 \t local disk. \n\
534 "
535
536 examples_help:
537 @$(ECHO) "\
538 --- Examples --- \n\
539 $(MAKE) fastdebug_build \n\
540 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
541 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\
542 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
543 $(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\
544 $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\
545 "
546
547 ################################################################
548 # Source and binary plug bundling
549 ################################################################
550 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
551 include $(BUNDLE_RULES)
552 endif
553
554 ################################################################
555 # rule to test
556 ################################################################
557
558 .NOTPARALLEL: test_run
559
560 test:
561 $(MAKE) test_run
562
563 test_run: test_clean test_start test_summary
564
565 test_start:
566 @$(ECHO) "Tests started at `$(DATE)`"
567
568 test_clean:
|
139 ifeq ($(BUILD_JAXWS), true)
140 generic_build_repo_series:: jaxws
141 clobber:: jaxws-clobber
142 endif
143
144 ifeq ($(BUILD_HOTSPOT), true)
145 generic_build_repo_series:: $(HOTSPOT)
146 clobber:: hotspot-clobber
147 endif
148
149 ifeq ($(BUILD_JDK), true)
150 generic_build_repo_series:: $(JDK_JAVA_EXE)
151 clobber:: jdk-clobber
152 endif
153
154 ifeq ($(BUILD_DEPLOY), true)
155 generic_build_repo_series:: $(DEPLOY)
156 clobber:: deploy-clobber
157 endif
158
159 # The debug build, fastdebug or debug. Needs special handling.
160 # Note that debug builds do NOT do INSTALL steps, but must be done
161 # after the product build and before the INSTALL step of the product build.
162 #
163 # DEBUG_NAME is fastdebug or debug
164 # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix
165 # The resulting j2sdk-image is used by the install makefiles to create a
166 # debug install bundle jdk-*-debug-** bundle (tar or zip)
167 # which will install in the debug or fastdebug subdirectory of the
168 # normal product install area.
169 # The install process needs to know what the DEBUG_NAME is, so
170 # look for INSTALL_DEBUG_NAME in the install rules.
171 #
172 # NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME).
173 # Due to the use of short paths in $(ABS_OUTPUTDIR), this may
174 # not be the same location.
175 #
176
177 # Location of fresh bootdir output
178 ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk
278 else \
279 $(ECHO) "OpenJDK will be built after JDK is built"; \
280 $(ECHO) " OPENJDK_BUILDDIR=$(OPENJDK_BUILDDIR)"; \
281 fi
282 @$(ECHO) "================================================="
283 @$(ECHO) " "
284 endif
285
286 # If we have bundle rules, we have a chance here to do a complete cycle
287 # build, of production and open build.
288 # FIXUP: We should create the openjdk source bundle and build that?
289 # But how do we reliable create or get at a formal openjdk source tree?
290 # The one we have needs to be trimmed of built bits and closed dirs.
291 # The repositories might not be available.
292 # The openjdk source bundle is probably not available.
293
294 ifneq ($(SKIP_OPENJDK_BUILD), true)
295 ifeq ($(BUILD_JDK), true)
296 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
297
298 OPENJDK_OUTPUTDIR=$(ABS_OUTPUTDIR)/open-output
299 OPENJDK_BUILD_NAME \
300 = openjdk-$(JDK_MINOR_VERSION)-$(BUILD_NUMBER)-$(PLATFORM)-$(ARCH)-$(BUNDLE_DATE)
301 OPENJDK_BUILD_BINARY_ZIP=$(ABS_BIN_BUNDLEDIR)/$(OPENJDK_BUILD_NAME).zip
302 BUILT_IMAGE=$(ABS_OUTPUTDIR)/j2sdk-image
303 ifeq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64)
304 OPENJDK_BOOTDIR=$(BOOTDIR)
305 OPENJDK_IMPORTJDK=$(JDK_IMPORT_PATH)
306 else
307 OPENJDK_BOOTDIR=$(BUILT_IMAGE)
308 OPENJDK_IMPORTJDK=$(BUILT_IMAGE)
309 endif
310
311 openjdk_build:
312 @$(START_ECHO)
313 @$(ECHO) " "
314 @$(ECHO) "================================================="
315 @$(ECHO) "Starting openjdk build"
316 @$(ECHO) " Using: ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR)"
317 @$(ECHO) "================================================="
318 @$(ECHO) " "
319 $(RM) -r $(OPENJDK_OUTPUTDIR)
320 $(MKDIR) -p $(OPENJDK_OUTPUTDIR)
321 ($(CD) $(OPENJDK_BUILDDIR) && $(MAKE) \
322 OPENJDK=true \
323 GENERATE_DOCS=false \
324 ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR) \
325 ALT_OUTPUTDIR=$(OPENJDK_OUTPUTDIR) \
326 ALT_BOOTDIR=$(OPENJDK_BOOTDIR) \
327 ALT_JDK_IMPORT_PATH=$(OPENJDK_IMPORTJDK) \
328 product_build )
329 $(RM) $(OPENJDK_BUILD_BINARY_ZIP)
330 ( $(CD) $(OPENJDK_OUTPUTDIR)/j2sdk-image && \
331 $(ZIPEXE) -q -r $(OPENJDK_BUILD_BINARY_ZIP) .)
332 $(RM) -r $(OPENJDK_OUTPUTDIR)
333 @$(ECHO) " "
334 @$(ECHO) "================================================="
335 @$(ECHO) "Finished openjdk build"
336 @$(ECHO) " Binary Bundle: $(OPENJDK_BUILD_BINARY_ZIP)"
337 @$(ECHO) "================================================="
338 @$(ECHO) " "
339 @$(FINISH_ECHO)
340
341 endif
342 endif
343 endif
344
345 clobber::
520 \t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\
521 \t to use the clean target first. \n\
522 - JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\
523 \t builds or previous release JDK builds will work. \n\
524 - The fastest builds have been when the sources and the BOOTDIR are on \n\
525 \t local disk. \n\
526 "
527
528 examples_help:
529 @$(ECHO) "\
530 --- Examples --- \n\
531 $(MAKE) fastdebug_build \n\
532 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
533 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\
534 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
535 $(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\
536 $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\
537 "
538
539 ################################################################
540 # Source bundling
541 ################################################################
542 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
543 include $(BUNDLE_RULES)
544 endif
545
546 ################################################################
547 # rule to test
548 ################################################################
549
550 .NOTPARALLEL: test_run
551
552 test:
553 $(MAKE) test_run
554
555 test_run: test_clean test_start test_summary
556
557 test_start:
558 @$(ECHO) "Tests started at `$(DATE)`"
559
560 test_clean:
|