123 # _BOOTDIR2: Second choice 124 ifndef ALT_BOOTDIR 125 _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH) 126 _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) 127 endif 128 129 # GCC_COMPILER_PATH: path to where the gcc/g++ compiler and tools are installed 130 # NOTE: Must end with / so that it could be empty, allowing PATH usage. 131 ifneq "$(origin ALT_GCC_COMPILER_PATH)" "undefined" 132 GCC_COMPILER_PATH :=$(call PrefixPath,$(ALT_GCC_COMPILER_PATH)) 133 else 134 GCC_COMPILER_PATH = $(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/gnucc/bin/ 135 endif 136 137 138 # Always build headless on Solaris 139 BUILD_HEADLESS = true 140 141 _CUPS_HEADERS_PATH=/opt/sfw/cups/include 142 143 # Import JDK images allow for partial builds, components not built are 144 # imported (or copied from) these import areas when needed. 145 146 # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 147 # multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc. 148 ifdef ALT_BUILD_JDK_IMPORT_PATH 149 BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) 150 else 151 BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) 152 endif 153 BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) 154 155 # JDK_IMPORT_PATH: location of previously built JDK (this version) to import 156 ifdef ALT_JDK_IMPORT_PATH 157 JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) 158 else 159 JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) 160 endif 161 JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) 162 163 # HOTSPOT_IMPORT_PATH: location of hotspot pre-built files 164 ifdef ALT_HOTSPOT_IMPORT_PATH 165 HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH)) 166 else 167 HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH) 168 endif 169 HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH) 170 171 # check if the HOTSPOT_IMPORT_PATH is a modules image or not 172 HOTSPOT_IMPORT_MODULES_IMAGE := $(shell \ 173 if [ -d $(HOTSPOT_IMPORT_PATH)/jre/$(ARCH_VM_SUBDIR) ] ; then \ 174 echo "false"; \ 175 elif [ -d $(HOTSPOT_IMPORT_PATH)/lib/modules ] ; then \ 176 echo "true"; \ 177 else \ 178 echo "false"; \ 179 fi \ 180 ) 181 182 ifeq ($(HOTSPOT_IMPORT_MODULES_IMAGE),true) | 123 # _BOOTDIR2: Second choice 124 ifndef ALT_BOOTDIR 125 _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH) 126 _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) 127 endif 128 129 # GCC_COMPILER_PATH: path to where the gcc/g++ compiler and tools are installed 130 # NOTE: Must end with / so that it could be empty, allowing PATH usage. 131 ifneq "$(origin ALT_GCC_COMPILER_PATH)" "undefined" 132 GCC_COMPILER_PATH :=$(call PrefixPath,$(ALT_GCC_COMPILER_PATH)) 133 else 134 GCC_COMPILER_PATH = $(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/gnucc/bin/ 135 endif 136 137 138 # Always build headless on Solaris 139 BUILD_HEADLESS = true 140 141 _CUPS_HEADERS_PATH=/opt/sfw/cups/include 142 143 _BDB_HEADERS_PATH=/usr/include 144 145 # Import JDK images allow for partial builds, components not built are 146 # imported (or copied from) these import areas when needed. 147 148 # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 149 # multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc. 150 ifdef ALT_BUILD_JDK_IMPORT_PATH 151 BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) 152 else 153 BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) 154 endif 155 BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) 156 157 # JDK_IMPORT_PATH: location of previously built JDK (this version) to import 158 ifdef ALT_JDK_IMPORT_PATH 159 JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) 160 else 161 JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) 162 endif 163 JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) 164 165 # BDB_IMPORT_PATH: location of bdb pre-built/generated files 166 ifndef USE_SYSTEM_BDB 167 ifdef ALT_BDB_IMPORT_PATH 168 BDB_IMPORT_PATH :=$(call FullPath,$(ALT_BDB_IMPORT_PATH)) 169 else 170 BDB_IMPORT_PATH = #$(JDK_IMPORT_PATH) # Can't import from JDK 171 endif 172 #BDB_IMPORT_PATH:=$(call AltCheckValue,BDB_IMPORT_PATH) # TODO: disable for now 173 endif 174 175 # HOTSPOT_IMPORT_PATH: location of hotspot pre-built files 176 ifdef ALT_HOTSPOT_IMPORT_PATH 177 HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH)) 178 else 179 HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH) 180 endif 181 HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH) 182 183 # check if the HOTSPOT_IMPORT_PATH is a modules image or not 184 HOTSPOT_IMPORT_MODULES_IMAGE := $(shell \ 185 if [ -d $(HOTSPOT_IMPORT_PATH)/jre/$(ARCH_VM_SUBDIR) ] ; then \ 186 echo "false"; \ 187 elif [ -d $(HOTSPOT_IMPORT_PATH)/lib/modules ] ; then \ 188 echo "true"; \ 189 else \ 190 echo "false"; \ 191 fi \ 192 ) 193 194 ifeq ($(HOTSPOT_IMPORT_MODULES_IMAGE),true) |