< prev index next >

make/ReleaseFile.gmk

Print this page
@  rev 2556 : [mq]: libc
|


  31 ################################################################################
  32 # This makefile generates the "release" file into the exploded image. Jlink is
  33 # then responsible for using this as the base for release files in each linked
  34 # image.
  35 #
  36 ################################################################################
  37 
  38 BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
  39 
  40 # Common way to emit a line into the release or info file
  41 define info-file-item # name value
  42   $(PRINTF) '%s="%s"\n' $1 $2 >> $@
  43 endef
  44 
  45 # Param 1 - The file containing the MODULES list
  46 define create-info-file
  47   $(if $(JDK_ARCH_ABI_PROP_NAME), \
  48     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
  49   $(call info-file-item, "SOURCE", "$(strip $(SOURCE_REVISION))")
  50   $(call info-file-item, "IMPLEMENTOR", "$(COMPANY_NAME)")
  51   $(call info-file-item, "CLIB", "$(OPENJDK_TARGET_CLIB)")
  52 endef
  53 
  54 # Param 1 - The file containing the MODULES list
  55 define prepare-info-file
  56   $(call LogInfo, Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@))
  57   $(call MakeDir, $(@D))
  58   $(RM) $@
  59 endef
  60 
  61 define info-file
  62   $(call prepare-info-file)
  63   $(call create-info-file)
  64 endef
  65 
  66 # Create a variable dependency file common for all release info files.
  67 INFO_FILE_VARDEPS := $(call DependOnVariable, create-info-file)
  68 
  69 SOURCE_REVISION = $(shell \
  70     if [ -f $(SOURCE_REVISION_TRACKER) ] ; then \
  71       $(CAT) $(SOURCE_REVISION_TRACKER) ; \


  31 ################################################################################
  32 # This makefile generates the "release" file into the exploded image. Jlink is
  33 # then responsible for using this as the base for release files in each linked
  34 # image.
  35 #
  36 ################################################################################
  37 
  38 BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
  39 
  40 # Common way to emit a line into the release or info file
  41 define info-file-item # name value
  42   $(PRINTF) '%s="%s"\n' $1 $2 >> $@
  43 endef
  44 
  45 # Param 1 - The file containing the MODULES list
  46 define create-info-file
  47   $(if $(JDK_ARCH_ABI_PROP_NAME), \
  48     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
  49   $(call info-file-item, "SOURCE", "$(strip $(SOURCE_REVISION))")
  50   $(call info-file-item, "IMPLEMENTOR", "$(COMPANY_NAME)")
  51   $(call info-file-item, "LIBC", "$(OPENJDK_TARGET_LIBC)")
  52 endef
  53 
  54 # Param 1 - The file containing the MODULES list
  55 define prepare-info-file
  56   $(call LogInfo, Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@))
  57   $(call MakeDir, $(@D))
  58   $(RM) $@
  59 endef
  60 
  61 define info-file
  62   $(call prepare-info-file)
  63   $(call create-info-file)
  64 endef
  65 
  66 # Create a variable dependency file common for all release info files.
  67 INFO_FILE_VARDEPS := $(call DependOnVariable, create-info-file)
  68 
  69 SOURCE_REVISION = $(shell \
  70     if [ -f $(SOURCE_REVISION_TRACKER) ] ; then \
  71       $(CAT) $(SOURCE_REVISION_TRACKER) ; \
< prev index next >