Merge

Wed, 13 Feb 2013 11:21:14 -0800

author
lana
date
Wed, 13 Feb 2013 11:21:14 -0800
changeset 619
76808fb4194a
parent 618
fdb1e09519ed
parent 613
3933eebc659d
child 620
bbb7548d45c7
child 641
ecc8fda8f187

Merge

common/makefiles/Main.gmk file | annotate | diff | comparison | revisions
     1.1 --- a/.hgtags	Tue Feb 12 09:27:48 2013 -0800
     1.2 +++ b/.hgtags	Wed Feb 13 11:21:14 2013 -0800
     1.3 @@ -197,3 +197,4 @@
     1.4  93b9664f97eeb6f89397a8842318ebacaac9feb9 jdk8-b73
     1.5  b43aa5bd8ca5c8121336495382d35ecfa7a71536 jdk8-b74
     1.6  2a713921952cbd77a1e699626976cb6cdfe3e57e jdk8-b75
     1.7 +278af9fc67e7eba2884936b49ec07345f423aabb jdk8-b76
     2.1 --- a/common/autoconf/generated-configure.sh	Tue Feb 12 09:27:48 2013 -0800
     2.2 +++ b/common/autoconf/generated-configure.sh	Wed Feb 13 11:21:14 2013 -0800
     2.3 @@ -3723,7 +3723,7 @@
     2.4  #CUSTOM_AUTOCONF_INCLUDE
     2.5  
     2.6  # Do not change or remove the following line, it is needed for consistency checks:
     2.7 -DATE_WHEN_GENERATED=1359376859
     2.8 +DATE_WHEN_GENERATED=1359971740
     2.9  
    2.10  ###############################################################################
    2.11  #
    2.12 @@ -10778,7 +10778,8 @@
    2.13    as_fn_error $? "Milestone must have a value" "$LINENO" 5
    2.14  elif test "x$with_milestone" != x; then
    2.15      MILESTONE="$with_milestone"
    2.16 -else
    2.17 +fi
    2.18 +if test "x$MILESTONE" = x; then
    2.19    MILESTONE=internal
    2.20  fi
    2.21  
    2.22 @@ -29247,6 +29248,12 @@
    2.23  fi
    2.24  
    2.25  
    2.26 +# AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
    2.27 +# this doesn't make sense so we remove it.
    2.28 +if test "x$COMPILE_TYPE" = xcross; then
    2.29 +  X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
    2.30 +fi
    2.31 +
    2.32  if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
    2.33  
    2.34      # Print a helpful message on how to acquire the necessary build dependency.
     3.1 --- a/common/autoconf/spec.gmk.in	Tue Feb 12 09:27:48 2013 -0800
     3.2 +++ b/common/autoconf/spec.gmk.in	Wed Feb 13 11:21:14 2013 -0800
     3.3 @@ -434,6 +434,12 @@
     3.4  
     3.5  JARSIGNER=@FIXPATH@ $(BOOT_JDK)/bin/jarsigner
     3.6  
     3.7 +# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
     3.8 +BOOTSTRAP_JAVAC_JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
     3.9 +BOOTSTRAP_JAVAC_ARGS:="-Xbootclasspath/p:$(BOOTSTRAP_JAVAC_JAR)" -cp $(BOOTSTRAP_JAVAC_JAR)
    3.10 +NEW_JAVAC   = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javac.Main
    3.11 +NEW_JAVADOC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javadoc.Main
    3.12 +
    3.13  # Base flags for RC
    3.14  # Guarding this against resetting value. Legacy make files include spec multiple
    3.15  # times.
     4.1 --- a/common/makefiles/IdlCompilation.gmk	Tue Feb 12 09:27:48 2013 -0800
     4.2 +++ b/common/makefiles/IdlCompilation.gmk	Wed Feb 13 11:21:14 2013 -0800
     4.3 @@ -71,7 +71,7 @@
     4.4  		$4
     4.5  	$(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6)
     4.6  	$(CP) -rp $3/$$($4_TMPDIR)/* $3
     4.7 -	($(CD) $3/$$($4_TMPDIR); find . -type f | sed 's!\./!$3/!g' | awk '{ print $$$$1 ": $4" }' > $5)
     4.8 +	($(CD) $3/$$($4_TMPDIR) && $(FIND) . -type f | $(SED) 's!\./!$3/!g' | $(NAWK) '{ print $$$$1 ": $4" }' > $5)
     4.9  	$(RM) -rf $3/$$($4_TMPDIR)
    4.10  endef
    4.11  
     5.1 --- a/common/makefiles/JavaCompilation.gmk	Tue Feb 12 09:27:48 2013 -0800
     5.2 +++ b/common/makefiles/JavaCompilation.gmk	Wed Feb 13 11:21:14 2013 -0800
     5.3 @@ -42,8 +42,8 @@
     5.4  FALSE_FIND_PATTERN:=-name FILE_NAME_THAT_DOESNT_EXIST
     5.5  
     5.6  define SetupJavaCompiler
     5.7 -    # param 1 is for example BOOT_JAVAC or NEW_JAVAC
     5.8 -    # This is the name later used to decide which java compiler to use.
     5.9 +    # param 1 is for example GENERATE_OLD_BYTECODE or GENERATE_NEW_JDKBYTECODE
    5.10 +    # This is the name of the compiler setup.
    5.11      # param 2-9 are named args.
    5.12      #   JVM:=The jvm used to run the javac/javah command
    5.13      #   JAVAC:=The javac jar and bootstrap classpath changes, or just bin/javac if JVM is left out
    5.14 @@ -143,8 +143,8 @@
    5.15      ifneq (,$2)
    5.16          $1_DEPS:=$2
    5.17      else
    5.18 -        $1_DEPS:=$$(filter $$(addprefix %,$$($1_FIND_PATTERNS)),\
    5.19 -                    $$(call CacheFind $$($1_SRCS)))
    5.20 +        $1_DEPS:=$$(filter $$(addprefix %,$$($1_SUFFIXES)),\
    5.21 +                    $$(call CacheFind,$$($1_SRCS)))
    5.22          ifneq (,$$($1_GREP_INCLUDE_PATTERNS))
    5.23              $1_DEPS:=$$(filter $$(addsuffix %,$$($1_GREP_INCLUDE_PATTERNS)),$$($1_DEPS))
    5.24          endif
    5.25 @@ -487,10 +487,10 @@
    5.26          # Using sjavac to compile. 
    5.27          $1 := $$($1_ALL_COPY_TARGETS) $$($1_ALL_COPY_CLEAN_TARGETS) $$($1_BIN)/javac_state
    5.28  
    5.29 -        # Create SJAVAC variable,
    5.30 -        # expects $1_JAVAC to be "bootclasspathprepend -jar ...javac.jar"
    5.31 -        # and it is rewritten into "bootclasspathprepend com.sun.tools.sjavac.Main"
    5.32 -        $1_SJAVAC:=$$(word 1,$$($1_JAVAC)) -cp $$(word 3,$$($1_JAVAC)) com.sun.tools.sjavac.Main
    5.33 +        # Create SJAVAC variable form JAVAC variable. Expects $1_JAVAC to be 
    5.34 +        # "bootclasspathprepend -cp .../javac.jar com.sun.tools.javac.Main"
    5.35 +        # and javac is simply replaced with sjavac.
    5.36 +        $1_SJAVAC:=$$(subst com.sun.tools.javac.Main,com.sun.tools.sjavac.Main,$$($1_JAVAC))
    5.37  
    5.38          # Set the $1_REMOTE to spawn a background javac server.
    5.39          $1_REMOTE:=--server:portfile=$$($1_SJAVAC_PORTFILE),id=$1,sjavac=$$(subst $$(SPACE),%20,$$(subst $$(COMMA),%2C,$$(strip $$($1_SERVER_JVM) $$($1_SJAVAC))))
     6.1 --- a/common/makefiles/Jprt.gmk	Tue Feb 12 09:27:48 2013 -0800
     6.2 +++ b/common/makefiles/Jprt.gmk	Wed Feb 13 11:21:14 2013 -0800
     6.3 @@ -179,27 +179,52 @@
     6.4  $(JPRT_ARCHIVE_BUNDLE): bundles
     6.5  	$(MKDIR) -p $(@D)
     6.6  	$(RM) $@
     6.7 -	$(CP) $(BUILD_OUTPUT)/bundles/j2sdk-image.zip $@
     6.8 +	$(CP) $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip $@
     6.9  
    6.10 -# This target must be called in the context of a SPEC file
    6.11 -bundles: all
    6.12 +ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64)
    6.13 +  SRC_JDK_IMAGE_DIR := $(JDK_OVERLAY_IMAGE_DIR)
    6.14 +  SRC_JRE_IMAGE_DIR := $(JRE_OVERLAY_IMAGE_DIR)
    6.15 +else
    6.16 +  SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR)
    6.17 +  SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR)
    6.18 +endif
    6.19 +SRC_JDK_BUNDLE_DIR := $(JDK_BUNDLE_DIR)
    6.20 +SRC_JRE_BUNDLE_DIR := $(JRE_BUNDLE_DIR)
    6.21 +
    6.22 +# Bundle up the images
    6.23 +bundles: all bundles-only
    6.24 +bundles-only: start-make
    6.25  	@$(call TargetEnter)
    6.26  	$(MKDIR) -p $(BUILD_OUTPUT)/bundles
    6.27 -ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64)
    6.28 -	$(CD) $(JDK_OVERLAY_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip .
    6.29 -	$(CD) $(JRE_OVERLAY_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip .
    6.30 -else
    6.31 -	$(CD) $(JDK_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip .
    6.32 -	$(CD) $(JRE_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip .
    6.33 +	$(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip .
    6.34 +	$(CD) $(SRC_JRE_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/$(JRE_IMAGE_SUBDIR).zip .
    6.35  	if [ -d  $(BUILD_OUTPUT)/install/bundles ] ; then \
    6.36             $(CD) $(BUILD_OUTPUT)/install/bundles && $(ZIP) -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ; \
    6.37          fi
    6.38 +	@$(call TargetExit)
    6.39 +
    6.40 +# Copy images to one unified location regardless of platform etc.
    6.41 +final-images: all final-images-only
    6.42 +final-images-only: start-make
    6.43 +	@$(call TargetEnter)
    6.44 +	$(RM) -r $(BUILD_OUTPUT)/final-images
    6.45 +	$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)
    6.46 +	$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)
    6.47 +	$(CP) -R -P $(SRC_JDK_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)/
    6.48 +	$(CP) -R -P $(SRC_JRE_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)/
    6.49 +ifeq ($(OPENJDK_TARGET_OS),macosx)
    6.50 +	$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)
    6.51 +	$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)
    6.52 +	$(CP) -R -P $(SRC_JDK_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)/
    6.53 +	$(CP) -R -P $(SRC_JRE_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)/
    6.54  endif
    6.55  	@$(call TargetExit)
    6.56  
    6.57 +
    6.58  # Keep track of phony targets
    6.59  PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \
    6.60 -              jprt_build_generic bundles jprt_bundle
    6.61 +              jprt_build_generic bundles jprt_bundle \
    6.62 +              final-images final-images-only
    6.63  
    6.64  ###########################################################################
    6.65  # Phony targets
     7.1 --- a/common/makefiles/Main.gmk	Tue Feb 12 09:27:48 2013 -0800
     7.2 +++ b/common/makefiles/Main.gmk	Wed Feb 13 11:21:14 2013 -0800
     7.3 @@ -75,7 +75,14 @@
     7.4    all: overlay-images
     7.5  endif
     7.6  
     7.7 -start-make:
     7.8 +# Setup a rule for SPEC file that fails if executed. This check makes sure the configuration
     7.9 +# is up to date after changes to configure
    7.10 +$(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
    7.11 +	@$(ECHO) ERROR: $(SPEC) is not up to date
    7.12 +	@$(ECHO) Please rerun configure!
    7.13 +	@if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
    7.14 +
    7.15 +start-make: $(SPEC)
    7.16  	@$(call AtMakeStart)
    7.17  
    7.18  langtools: langtools-only
     8.1 --- a/common/makefiles/javadoc/Javadoc.gmk	Tue Feb 12 09:27:48 2013 -0800
     8.2 +++ b/common/makefiles/javadoc/Javadoc.gmk	Wed Feb 13 11:21:14 2013 -0800
     8.3 @@ -46,14 +46,11 @@
     8.4  
     8.5  BUILD_NUMBER=$(JDK_BUILD_NUMBER)
     8.6  
     8.7 -BOOT_JAVA_CMD=$(JAVA)
     8.8 -
     8.9 -JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
    8.10 -JAVADOC_CMD = $(BOOT_JAVA_CMD) \
    8.11 +JAVADOC_CMD = $(JAVA) \
    8.12                -Xmx1024m \
    8.13  	      -Djava.awt.headless=true \
    8.14 -              "-Xbootclasspath/p:$(JAVADOC_JAR)" \
    8.15 -              -jar $(JAVADOC_JAR) -bootclasspath $(JDK_OUTPUTDIR)/classes
    8.16 +	      $(NEW_JAVADOC) \
    8.17 +	      -bootclasspath $(JDK_OUTPUTDIR)/classes
    8.18  
    8.19  # Copyright year for beginning of Java and some of the apis
    8.20  #   (Needed when creating the javadocs)

mercurial