jdk/make/common/Release.gmk
changeset 8013 4efa283dbce2
parent 8009 faa3179b2b38
child 8022 d11e5f2eb62c
equal deleted inserted replaced
8010:5ac947dbea53 8013:4efa283dbce2
    23 # questions.
    23 # questions.
    24 #
    24 #
    25 
    25 
    26 include $(JDK_TOPDIR)/make/docs/CORE_PKGS.gmk
    26 include $(JDK_TOPDIR)/make/docs/CORE_PKGS.gmk
    27 include $(JDK_TOPDIR)/make/docs/NON_CORE_PKGS.gmk
    27 include $(JDK_TOPDIR)/make/docs/NON_CORE_PKGS.gmk
       
    28 
       
    29 # What jdk version are we building
       
    30 THIS_JDK_VERSION := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION)
    28 
    31 
    29 #
    32 #
    30 # Perform release engineering tasks.
    33 # Perform release engineering tasks.
    31 #
    34 #
    32 # images    An image is what the product looks like when it is
    35 # images    An image is what the product looks like when it is
    69     IMAGE_BINDIR = bin/$(ARCH)
    72     IMAGE_BINDIR = bin/$(ARCH)
    70   endif
    73   endif
    71 endif
    74 endif
    72 
    75 
    73 JTG_DOCS            = $(JDK_TOPDIR)/src/solaris/doc
    76 JTG_DOCS            = $(JDK_TOPDIR)/src/solaris/doc
    74 
       
    75 #We use this for man page header
       
    76 jdkversion := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION)
       
    77 
    77 
    78 # The base names of all the license and document files for the jdk and jre
    78 # The base names of all the license and document files for the jdk and jre
    79 #   (These files get placed in the jdk and jre install images)
    79 #   (These files get placed in the jdk and jre install images)
    80 ifdef OPENJDK
    80 ifdef OPENJDK
    81   # Where to find these files
    81   # Where to find these files
   183           ja_dir="ja_JP.$${ja_encoding}"; \
   183           ja_dir="ja_JP.$${ja_encoding}"; \
   184 	fi; \
   184 	fi; \
   185         $(MKDIR) -p $1/man/$${ja_dir}/man1; \
   185         $(MKDIR) -p $1/man/$${ja_dir}/man1; \
   186         $(CAT) $${manbase}/ja/$${manpage} \
   186         $(CAT) $${manbase}/ja/$${manpage} \
   187           | $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \
   187           | $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \
   188           | $(SED) 's/@@VERSION@@/$(jdkversion)/g' \
   188           | $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \
   189           | $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \
   189           | $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \
   190             > $1/man/$${ja_dir}/man1/$${manpage}; \
   190             > $1/man/$${ja_dir}/man1/$${manpage}; \
   191       done; \
   191       done; \
   192     fi; \
   192     fi; \
   193   done; \
   193   done; \
   213 
   213 
   214 images images-clobber \
   214 images images-clobber \
   215 initial-image-jre initial-image-jdk \
   215 initial-image-jre initial-image-jdk \
   216 initial-image-jre-sol64 initial-image-jdk-sol64 \
   216 initial-image-jre-sol64 initial-image-jdk-sol64 \
   217 trim-image-jre trim-image-jdk \
   217 trim-image-jre trim-image-jdk \
       
   218 identify-image-jre identify-image-jdk \
   218 process-image-jre process-image-jdk \
   219 process-image-jre process-image-jdk \
   219 compare-image \
   220 compare-image \
   220 sec-files sec-files-win jgss-files ::
   221 sec-files sec-files-win jgss-files ::
   221 	@$(ECHO) ">>>Making "$@" @ `$(DATE)` ..."
   222 	@$(ECHO) ">>>Making "$@" @ `$(DATE)` ..."
   222 
   223 
   223 # Order is important here, trim jre after jdk image is created
   224 # Order is important here, trim jre after jdk image is created
   224 images:: sanity-images post-sanity-images  \
   225 images:: sanity-images post-sanity-images  \
   225 	 $(INITIAL_IMAGE_JRE) $(INITIAL_IMAGE_JDK) \
   226 	 $(INITIAL_IMAGE_JRE) $(INITIAL_IMAGE_JDK) \
   226 	 trim-image-jre trim-image-jdk \
   227 	 trim-image-jre trim-image-jdk \
       
   228          identify-image-jre identify-image-jdk \
   227 	 process-image-jre process-image-jdk sec-files sec-files-win jgss-files
   229 	 process-image-jre process-image-jdk sec-files sec-files-win jgss-files
   228 
   230 
   229 # Don't use these
   231 # Don't use these
   230 image-jre:: initial-image-jre trim-image-jre process-image-jre
   232 image-jre:: initial-image-jre trim-image-jre identify-image-jre process-image-jre
   231 image-jdk:: initial-image-jdk trim-image-jdk process-image-jdk
   233 image-jdk:: initial-image-jdk trim-image-jdk identify-image-jdk process-image-jdk
   232 
   234 
   233 #
   235 #
   234 # Sources we ship in the SDK.
   236 # Sources we ship in the SDK.
   235 #
   237 #
   236 SOURCES = \
   238 SOURCES = \
  1086 	  $(call binary_file_verification,$${f}); \
  1088 	  $(call binary_file_verification,$${f}); \
  1087 	done
  1089 	done
  1088 	$(RM) $(JDK_BIN_LIST)
  1090 	$(RM) $(JDK_BIN_LIST)
  1089 
  1091 
  1090 ###################################################################
  1092 ###################################################################
       
  1093 # What did we build
       
  1094 ###################################################################
       
  1095 
       
  1096 # The jdk text info file that lives at the root of the install image.
       
  1097 
       
  1098 JDK_INFO_FILE = $(JDK_IMAGE_DIR)/release
       
  1099 JRE_INFO_FILE = $(JRE_IMAGE_DIR)/release
       
  1100 
       
  1101 # Common way to emit a line into the release or info file
       
  1102 define info-file-item # name value
       
  1103 $(PRINTF) "%s=\"%s\"\n" $1 $2 >> $@
       
  1104 endef
       
  1105 
       
  1106 # Values to emit
       
  1107 MINIMUM_OS_NAME    := $(REQUIRED_OS_NAME)
       
  1108 MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION)
       
  1109 MINIMUM_OS_ARCH    := $(ARCH)
       
  1110 
       
  1111 $(JDK_INFO_FILE): FRC
       
  1112 	$(prep-target)
       
  1113 	$(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)")
       
  1114 	$(call info-file-item, "OS_NAME",      "$(MINIMUM_OS_NAME)")
       
  1115 	$(call info-file-item, "OS_VERSION",   "$(MINIMUM_OS_VERSION)")
       
  1116 	$(call info-file-item, "OS_ARCH",      "$(MINIMUM_OS_ARCH)")
       
  1117 
       
  1118 # Create release file to identify this image
       
  1119 identify-image-jdk:: $(JDK_INFO_FILE)
       
  1120 
       
  1121 $(JRE_INFO_FILE): FRC
       
  1122 	$(prep-target)
       
  1123 	$(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)")
       
  1124 	$(call info-file-item, "OS_NAME",      "$(MINIMUM_OS_NAME)")
       
  1125 	$(call info-file-item, "OS_VERSION",   "$(MINIMUM_OS_VERSION)")
       
  1126 	$(call info-file-item, "OS_ARCH",      "$(MINIMUM_OS_ARCH)")
       
  1127 
       
  1128 # Create release file to identify this image
       
  1129 identify-image-jre:: $(JRE_INFO_FILE)
       
  1130 
       
  1131 ###################################################################
  1091 # What do we compare against
  1132 # What do we compare against
  1092 ###################################################################
  1133 ###################################################################
  1093 
  1134 
  1094 # The temporary files and areas created
  1135 # The temporary files and areas created
  1095 TEMP_PREV_JRE_BASE_DIR=$(TEMPDIR)/previous_jre
  1136 TEMP_PREV_JRE_BASE_DIR=$(TEMPDIR)/previous_jre
  1238 	initial-image-jdk-db \
  1279 	initial-image-jdk-db \
  1239         initial-image-jdk64-bindemos \
  1280         initial-image-jdk64-bindemos \
  1240         initial-image-jre-setup \
  1281         initial-image-jre-setup \
  1241 	trim-image-jre trim-image-jdk \
  1282 	trim-image-jre trim-image-jdk \
  1242 	process-image-jre process-image-jdk \
  1283 	process-image-jre process-image-jdk \
       
  1284 	identify-image-jre identify-image-jdk \
  1243 	install-previous-jre install-previous-jdk \
  1285 	install-previous-jre install-previous-jdk \
  1244 	compare-image-jre compare-image-jdk \
  1286 	compare-image-jre compare-image-jdk \
  1245 	compare-image compare-image-clobber \
  1287 	compare-image compare-image-clobber \
  1246 	images-clobber
  1288 	images-clobber
  1247 
  1289