< prev index next >

make/Images.gmk

Print this page


   1 #
   2 # Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved.
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  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 #
  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


 346 
 347 JRE_TARGETS += $(JRE_DOC_TARGETS)
 348 JDK_TARGETS += $(JDK_DOC_TARGETS)
 349 
 350 ################################################################################
 351 # Release file
 352 
 353 JRE_INFO_FILE := $(JRE_IMAGE_DIR)/release
 354 JDK_INFO_FILE := $(JDK_IMAGE_DIR)/release
 355 JRE_COMPACT1_INFO_FILE := $(JRE_COMPACT1_IMAGE_DIR)/release
 356 JRE_COMPACT2_INFO_FILE := $(JRE_COMPACT2_IMAGE_DIR)/release
 357 JRE_COMPACT3_INFO_FILE := $(JRE_COMPACT3_IMAGE_DIR)/release
 358 
 359 # Common way to emit a line into the release or info file
 360 define info-file-item # name value
 361   $(PRINTF) '%s="%s"\n' $1 $2 >> $@
 362 endef
 363 
 364 # Param 1 - The file containing the MODULES list
 365 define create-info-file
 366   $(call info-file-item, "JAVA_VERSION", "$(JDK_VERSION)")

 367   $(call info-file-item, "OS_NAME", "$(REQUIRED_OS_NAME)")
 368   $(call info-file-item, "OS_VERSION", "$(REQUIRED_OS_VERSION)")
 369   $(call info-file-item, "OS_ARCH", "$(OPENJDK_TARGET_CPU_LEGACY)")
 370   $(if $(JDK_ARCH_ABI_PROP_NAME), \
 371     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
 372   $(call info-file-item, "SOURCE", "$(ALL_SOURCE_TIPS)")
 373   $(call info-file-item, "MODULES", "`$(CAT) $1`")
 374 endef
 375 
 376 # Param 1 - The file containing the MODULES list
 377 define prepare-info-file
 378   $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
 379   $(MKDIR) -p $(@D)
 380   $(RM) $@
 381 endef
 382 
 383 define info-file
 384   $(call prepare-info-file, $1)
 385   $(call create-info-file, $1)
 386 endef
 387 
 388 # Create a variable dependency file common for all release info files. The
 389 # sorted module list will only change if the image is regenerated, which will
 390 # trigger a rebuild of these files anyway.
 391 INFO_FILE_VARDEPS := $(call DependOnVariable, create-info-file)
 392 


   1 #
   2 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  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 #
  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


 346 
 347 JRE_TARGETS += $(JRE_DOC_TARGETS)
 348 JDK_TARGETS += $(JDK_DOC_TARGETS)
 349 
 350 ################################################################################
 351 # Release file
 352 
 353 JRE_INFO_FILE := $(JRE_IMAGE_DIR)/release
 354 JDK_INFO_FILE := $(JDK_IMAGE_DIR)/release
 355 JRE_COMPACT1_INFO_FILE := $(JRE_COMPACT1_IMAGE_DIR)/release
 356 JRE_COMPACT2_INFO_FILE := $(JRE_COMPACT2_IMAGE_DIR)/release
 357 JRE_COMPACT3_INFO_FILE := $(JRE_COMPACT3_IMAGE_DIR)/release
 358 
 359 # Common way to emit a line into the release or info file
 360 define info-file-item # name value
 361   $(PRINTF) '%s="%s"\n' $1 $2 >> $@
 362 endef
 363 
 364 # Param 1 - The file containing the MODULES list
 365 define create-info-file
 366   $(call info-file-item, "JAVA_VERSION", "$(VERSION_NUMBER)")
 367   $(call info-file-item, "JAVA_FULL_VERSION", "$(VERSION_STRING)")
 368   $(call info-file-item, "OS_NAME", "$(REQUIRED_OS_NAME)")
 369   $(call info-file-item, "OS_VERSION", "$(REQUIRED_OS_VERSION)")
 370   $(call info-file-item, "OS_ARCH", "$(OPENJDK_TARGET_CPU_LEGACY)")
 371   $(if $(JDK_ARCH_ABI_PROP_NAME), \
 372     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
 373   $(call info-file-item, "SOURCE", "$(strip $(ALL_SOURCE_TIPS))")
 374   $(call info-file-item, "MODULES", "`$(CAT) $1`")
 375 endef
 376 
 377 # Param 1 - The file containing the MODULES list
 378 define prepare-info-file
 379   $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
 380   $(MKDIR) -p $(@D)
 381   $(RM) $@
 382 endef
 383 
 384 define info-file
 385   $(call prepare-info-file, $1)
 386   $(call create-info-file, $1)
 387 endef
 388 
 389 # Create a variable dependency file common for all release info files. The
 390 # sorted module list will only change if the image is regenerated, which will
 391 # trigger a rebuild of these files anyway.
 392 INFO_FILE_VARDEPS := $(call DependOnVariable, create-info-file)
 393 


< prev index next >