jdk/make/common/shared/Defs-linux.gmk

Print this page




 122 # _BOOTDIR2: Second choice
 123 ifndef ALT_BOOTDIR
 124   _BOOTDIR1  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
 125   _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
 126 endif
 127 
 128 # Always build headless on Linux
 129 BUILD_HEADLESS = true
 130 LIBM=-lm
 131 
 132 # GCC29_COMPILER_PATH: is the path to where the gcc 2.9 compiler is installed
 133 #  NOTE: Must end with / so that it could be empty, allowing PATH usage.
 134 ifdef ALT_GCC29_COMPILER_PATH
 135   GCC29_COMPILER_PATH :=$(call PrefixPath,$(ALT_GCC29_COMPILER_PATH))
 136 else
 137   GCC29_COMPILER_PATH = $(JDK_DEVTOOLS_DIR)/$(PLATFORM)/gcc29/usr/
 138 endif
 139 
 140 _CUPS_HEADERS_PATH=/usr/include
 141 


 142 # Import JDK images allow for partial builds, components not built are
 143 #    imported (or copied from) these import areas when needed.
 144 
 145 # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 
 146 #   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
 147 ifdef ALT_BUILD_JDK_IMPORT_PATH
 148   BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
 149 else
 150   BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
 151 endif
 152 BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
 153 
 154 # JDK_IMPORT_PATH: location of JDK install tree (this version) to import
 155 ifdef ALT_JDK_IMPORT_PATH
 156   JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
 157 else
 158   JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
 159 endif
 160 JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
 161 










 162 # HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
 163 ifdef ALT_HOTSPOT_IMPORT_PATH
 164   HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
 165 else
 166   HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH)
 167 endif
 168 HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
 169 
 170 # check if the HOTSPOT_IMPORT_PATH is a modules image or not
 171 HOTSPOT_IMPORT_MODULES_IMAGE := $(shell \
 172       if [ -d $(HOTSPOT_IMPORT_PATH)/jre/$(ARCH_VM_SUBDIR) ] ; then \
 173         echo "false"; \
 174       elif [ -d $(HOTSPOT_IMPORT_PATH)/lib/modules ] ; then \
 175         echo "true"; \
 176       else \
 177         echo "false"; \
 178       fi \
 179       )
 180 
 181 ifeq ($(HOTSPOT_IMPORT_MODULES_IMAGE),true)




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