6819847: build is broken for OpenJDK with plugs
Reviewed-by: jjg, robilad, ohair
This commit is contained in:
parent
2ce9a96c01
commit
0a7ba6e27e
@ -328,11 +328,6 @@ else
|
|||||||
$(ECHO) "Rule $@ does not apply on $(PLATFORM)-$(ARCH)"
|
$(ECHO) "Rule $@ does not apply on $(PLATFORM)-$(ARCH)"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
|
||||||
# Binary Plug rules and macros
|
|
||||||
#
|
|
||||||
include $(BUILDDIR)/common/internal/BinaryPlugs.gmk
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Get top level sccs_get rule
|
# Get top level sccs_get rule
|
||||||
#
|
#
|
||||||
|
@ -145,6 +145,11 @@ endif
|
|||||||
# 2. ALT_BINARY_PLUGS_PATH overrides all locations of classes and libraries
|
# 2. ALT_BINARY_PLUGS_PATH overrides all locations of classes and libraries
|
||||||
# 3. ALT_BUILD_BINARY_PLUGS_PATH is used to find a ALT_BINARY_PLUGS_PATH
|
# 3. ALT_BUILD_BINARY_PLUGS_PATH is used to find a ALT_BINARY_PLUGS_PATH
|
||||||
# 4. ALT_CLOSED_JDK_IMPORT_PATH is used to locate classes and libraries
|
# 4. ALT_CLOSED_JDK_IMPORT_PATH is used to locate classes and libraries
|
||||||
|
# Note: If any of the ALT_ variables are modified here, it is assumed
|
||||||
|
# that the build should be done with IMPORT_BINARY_PLUGS=true as
|
||||||
|
# well. Otherwise the default will be IMPORT_BINARY_PLUGS=false.
|
||||||
|
# Lastly, setting IMPORT_BINARY_PLUGS=false on the command line
|
||||||
|
# will override this logic, and plugs will not be imported.
|
||||||
#
|
#
|
||||||
|
|
||||||
# Always needed, defines the name of the imported/exported jarfile
|
# Always needed, defines the name of the imported/exported jarfile
|
||||||
@ -155,9 +160,11 @@ ifdef OPENJDK
|
|||||||
CLOSED_JDK_IMPORT_PATH = $(ALT_CLOSED_JDK_IMPORT_PATH)
|
CLOSED_JDK_IMPORT_PATH = $(ALT_CLOSED_JDK_IMPORT_PATH)
|
||||||
BINARY_PLUGS_PATH = $(CLOSED_JDK_IMPORT_PATH)
|
BINARY_PLUGS_PATH = $(CLOSED_JDK_IMPORT_PATH)
|
||||||
BINARY_PLUGS_JARFILE = $(CLOSED_JDK_IMPORT_PATH)/jre/lib/rt.jar
|
BINARY_PLUGS_JARFILE = $(CLOSED_JDK_IMPORT_PATH)/jre/lib/rt.jar
|
||||||
|
IMPORT_BINARY_PLUGS=true
|
||||||
endif
|
endif
|
||||||
ifdef ALT_BUILD_BINARY_PLUGS_PATH
|
ifdef ALT_BUILD_BINARY_PLUGS_PATH
|
||||||
BUILD_BINARY_PLUGS_PATH = $(ALT_BUILD_BINARY_PLUGS_PATH)
|
BUILD_BINARY_PLUGS_PATH = $(ALT_BUILD_BINARY_PLUGS_PATH)
|
||||||
|
IMPORT_BINARY_PLUGS=true
|
||||||
else
|
else
|
||||||
BUILD_BINARY_PLUGS_PATH = $(SLASH_JAVA)/re/jdk/$(JDK_VERSION)/promoted/latest/openjdk/binaryplugs
|
BUILD_BINARY_PLUGS_PATH = $(SLASH_JAVA)/re/jdk/$(JDK_VERSION)/promoted/latest/openjdk/binaryplugs
|
||||||
endif
|
endif
|
||||||
@ -166,9 +173,11 @@ ifdef OPENJDK
|
|||||||
ifdef ALT_BINARY_PLUGS_PATH
|
ifdef ALT_BINARY_PLUGS_PATH
|
||||||
BINARY_PLUGS_PATH = $(ALT_BINARY_PLUGS_PATH)
|
BINARY_PLUGS_PATH = $(ALT_BINARY_PLUGS_PATH)
|
||||||
BINARY_PLUGS_JARFILE = $(BINARY_PLUGS_PATH)/jre/lib/$(BINARY_PLUGS_JARNAME)
|
BINARY_PLUGS_JARFILE = $(BINARY_PLUGS_PATH)/jre/lib/$(BINARY_PLUGS_JARNAME)
|
||||||
|
IMPORT_BINARY_PLUGS=true
|
||||||
endif
|
endif
|
||||||
ifdef ALT_BINARY_PLUGS_JARFILE
|
ifdef ALT_BINARY_PLUGS_JARFILE
|
||||||
BINARY_PLUGS_JARFILE = $(ALT_BINARY_PLUGS_JARFILE)
|
BINARY_PLUGS_JARFILE = $(ALT_BINARY_PLUGS_JARFILE)
|
||||||
|
IMPORT_BINARY_PLUGS=true
|
||||||
endif
|
endif
|
||||||
endif # OPENJDK
|
endif # OPENJDK
|
||||||
|
|
||||||
|
@ -245,6 +245,7 @@ ifdef OPENJDK
|
|||||||
ALL_SETTINGS+=$(call addAltSetting,FREETYPE_HEADERS_PATH)
|
ALL_SETTINGS+=$(call addAltSetting,FREETYPE_HEADERS_PATH)
|
||||||
ALL_SETTINGS+=$(call addAltSetting,FREETYPE_LIB_PATH)
|
ALL_SETTINGS+=$(call addAltSetting,FREETYPE_LIB_PATH)
|
||||||
ALL_SETTINGS+=$(call addHeading,OPENJDK Import Binary Plug Settings)
|
ALL_SETTINGS+=$(call addHeading,OPENJDK Import Binary Plug Settings)
|
||||||
|
ALL_SETTINGS+=$(call addOptionalSetting,IMPORT_BINARY_PLUGS)
|
||||||
ALL_SETTINGS+=$(call addAltSetting,BINARY_PLUGS_JARFILE)
|
ALL_SETTINGS+=$(call addAltSetting,BINARY_PLUGS_JARFILE)
|
||||||
ALL_SETTINGS+=$(call addAltSetting,BINARY_PLUGS_PATH)
|
ALL_SETTINGS+=$(call addAltSetting,BINARY_PLUGS_PATH)
|
||||||
ALL_SETTINGS+=$(call addAltSetting,BUILD_BINARY_PLUGS_PATH)
|
ALL_SETTINGS+=$(call addAltSetting,BUILD_BINARY_PLUGS_PATH)
|
||||||
|
@ -251,9 +251,11 @@ endif # INCLUDE_SA
|
|||||||
#
|
#
|
||||||
ifdef OPENJDK
|
ifdef OPENJDK
|
||||||
|
|
||||||
|
ifeq ($(IMPORT_BINARY_PLUGS),true)
|
||||||
include $(BUILDDIR)/common/internal/BinaryPlugs.gmk
|
include $(BUILDDIR)/common/internal/BinaryPlugs.gmk
|
||||||
|
|
||||||
build: import-binary-plugs
|
build: import-binary-plugs
|
||||||
|
endif
|
||||||
|
|
||||||
else # !OPENJDK
|
else # !OPENJDK
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user