6833444: _BOOTDIR1/_BOOTDIR2 on MS Windows should be consistent with other platforms
Added optional _BOOTDIR3 that provides the J: path for the BOOTDIR on Windows Reviewed-by: ohair, xdono
This commit is contained in:
parent
7648a0d70b
commit
013285996b
jdk/make/common
@ -92,6 +92,7 @@ sanity-all:: sanity-base \
|
|||||||
sane-ld_run_path \
|
sane-ld_run_path \
|
||||||
sane-alt_bootdir \
|
sane-alt_bootdir \
|
||||||
sane-bootdir \
|
sane-bootdir \
|
||||||
|
sane-local-bootdir \
|
||||||
sane-alsa-headers \
|
sane-alsa-headers \
|
||||||
sane-jibx
|
sane-jibx
|
||||||
|
|
||||||
|
@ -431,9 +431,11 @@ DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
|
|||||||
|
|
||||||
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
|
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
|
||||||
# _BOOTDIR2: Second choice
|
# _BOOTDIR2: Second choice
|
||||||
|
# The _BOOTDIR3 is defind optionally.
|
||||||
ifndef ALT_BOOTDIR
|
ifndef ALT_BOOTDIR
|
||||||
_BOOTDIR1 =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
|
_BOOTDIR1 =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
|
||||||
_BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
|
_BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
|
||||||
|
_BOOTDIR3 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# 32 bit always needs 2 runtimes, 64 bit usually does too
|
# 32 bit always needs 2 runtimes, 64 bit usually does too
|
||||||
|
@ -94,6 +94,21 @@ $(shell \
|
|||||||
fi)
|
fi)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Select a directory if it exists, or the alternate 2, or the alternate 3, or the alternate 4
|
||||||
|
define DirExists4
|
||||||
|
$(shell \
|
||||||
|
if [ -d "$1" ]; then \
|
||||||
|
echo "$1"; \
|
||||||
|
elif [ -d "$2" ]; then \
|
||||||
|
echo "$2"; \
|
||||||
|
elif [ -d "$3" ]; then \
|
||||||
|
echo "$3"; \
|
||||||
|
else \
|
||||||
|
echo "$4"; \
|
||||||
|
fi)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
# Select a writable directory if it exists and is writable, or the alternate
|
# Select a writable directory if it exists and is writable, or the alternate
|
||||||
define WriteDirExists
|
define WriteDirExists
|
||||||
$(shell \
|
$(shell \
|
||||||
@ -356,11 +371,16 @@ endif
|
|||||||
|
|
||||||
# BOOTDIR: Bootstrap JDK, previous released JDK.
|
# BOOTDIR: Bootstrap JDK, previous released JDK.
|
||||||
# _BOOTDIR1 and _BOOTDIR2 picked by platform
|
# _BOOTDIR1 and _BOOTDIR2 picked by platform
|
||||||
|
# Platform may optionally define _BOOTDIR3 as well.
|
||||||
ifdef ALT_BOOTDIR
|
ifdef ALT_BOOTDIR
|
||||||
BOOTDIR =$(ALT_BOOTDIR)
|
BOOTDIR =$(ALT_BOOTDIR)
|
||||||
|
else
|
||||||
|
ifdef _BOOTDIR3
|
||||||
|
BOOTDIR :=$(call DirExists4,$(_BOOTDIR1),$(_BOOTDIR2),$(_BOOTDIR3),/NO_BOOTDIR)
|
||||||
else
|
else
|
||||||
BOOTDIR :=$(call DirExists,$(_BOOTDIR1),$(_BOOTDIR2),/NO_BOOTDIR)
|
BOOTDIR :=$(call DirExists,$(_BOOTDIR1),$(_BOOTDIR2),/NO_BOOTDIR)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
export BOOTDIR
|
export BOOTDIR
|
||||||
BOOTDIR:=$(call AltCheckSpaces,BOOTDIR)
|
BOOTDIR:=$(call AltCheckSpaces,BOOTDIR)
|
||||||
BOOTDIR:=$(call AltCheckValue,BOOTDIR)
|
BOOTDIR:=$(call AltCheckValue,BOOTDIR)
|
||||||
|
@ -194,6 +194,7 @@ include $(JDK_MAKE_SHARED_DIR)/Sanity-Settings.gmk
|
|||||||
sane-outputdir \
|
sane-outputdir \
|
||||||
sane-alt_bootdir \
|
sane-alt_bootdir \
|
||||||
sane-bootdir \
|
sane-bootdir \
|
||||||
|
sane-local-bootdir \
|
||||||
sane-cups \
|
sane-cups \
|
||||||
sane-devtools_path \
|
sane-devtools_path \
|
||||||
sane-compiler_path \
|
sane-compiler_path \
|
||||||
@ -766,6 +767,23 @@ sane-bootdir:
|
|||||||
"" >> $(ERROR_FILE) ; \
|
"" >> $(ERROR_FILE) ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
######################################################
|
||||||
|
# BOOTDIR is recommended to reside on a local drive
|
||||||
|
######################################################
|
||||||
|
sane-local-bootdir:
|
||||||
|
ifeq ($(PLATFORM), windows)
|
||||||
|
@if [ `$(ECHO) $(BOOTDIR) | $(EGREP) -ci '^J:'` -ne 0 ]; then \
|
||||||
|
$(ECHO) "WARNING: Your BOOTDIR is located on the J: drive. Often the J:\n" \
|
||||||
|
" drive is mapped over a network. Using a mapped drive for\n" \
|
||||||
|
" the BOOTDIR may significantly slow down the build process.\n" \
|
||||||
|
" You may want to consider using the ALT_BOOTDIR variable\n" \
|
||||||
|
" to point the build to another location for the BOOTDIR instead. \n" \
|
||||||
|
" Your current BOOTDIR is:\n" \
|
||||||
|
" $(BOOTDIR) \n" \
|
||||||
|
"" >> $(WARNING_FILE) ; \
|
||||||
|
fi
|
||||||
|
endif
|
||||||
|
|
||||||
######################################################
|
######################################################
|
||||||
# CACERTS_FILE must be absoulte path and readable
|
# CACERTS_FILE must be absoulte path and readable
|
||||||
######################################################
|
######################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user