8002028: build-infra: need no-hotspot partial build
Added configure option --with-import-hotspot=/path/to/j2sdkimage Reviewed-by: dholmes, tbell
This commit is contained in:
parent
556c5ce459
commit
cc66da7e9f
File diff suppressed because it is too large
Load Diff
@ -253,5 +253,24 @@ AC_DEFUN_ONCE([SRCDIRS_SETUP_OUTPUT_DIRS],
|
|||||||
BUILD_OUTPUT="$OUTPUT_ROOT"
|
BUILD_OUTPUT="$OUTPUT_ROOT"
|
||||||
AC_SUBST(BUILD_OUTPUT)
|
AC_SUBST(BUILD_OUTPUT)
|
||||||
|
|
||||||
|
HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
|
||||||
|
BUILD_HOTSPOT=true
|
||||||
|
AC_SUBST(HOTSPOT_DIST)
|
||||||
|
AC_SUBST(BUILD_HOTSPOT)
|
||||||
|
AC_ARG_WITH(import-hotspot, [AS_HELP_STRING([--with-import-hotspot],
|
||||||
|
[import hotspot binaries from this jdk image or hotspot build dist dir instead of building from source])])
|
||||||
|
if test "x$with_import_hotspot" != x; then
|
||||||
|
CURDIR="$PWD"
|
||||||
|
cd "$with_import_hotspot"
|
||||||
|
HOTSPOT_DIST="`pwd`"
|
||||||
|
cd "$CURDIR"
|
||||||
|
if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then
|
||||||
|
AC_MSG_ERROR([You have to import hotspot from a full jdk image or hotspot build dist dir!])
|
||||||
|
fi
|
||||||
|
AC_MSG_CHECKING([if hotspot should be imported])
|
||||||
|
AC_MSG_RESULT([yes from $HOTSPOT_DIST])
|
||||||
|
BUILD_HOTSPOT=false
|
||||||
|
fi
|
||||||
|
|
||||||
JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
|
JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
|
||||||
])
|
])
|
||||||
|
@ -224,7 +224,9 @@ LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
|
|||||||
CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
|
CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
|
||||||
JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
|
JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
|
||||||
JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
|
JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
|
||||||
HOTSPOT_DIST=$(HOTSPOT_OUTPUTDIR)/dist
|
HOTSPOT_DIST=@HOTSPOT_DIST@
|
||||||
|
|
||||||
|
BUILD_HOTSPOT=@BUILD_HOTSPOT@
|
||||||
|
|
||||||
# The boot jdk to use
|
# The boot jdk to use
|
||||||
BOOT_JDK:=@BOOT_JDK@
|
BOOT_JDK:=@BOOT_JDK@
|
||||||
|
@ -94,11 +94,13 @@ jaxws-only: start-make
|
|||||||
@($(CD) $(JAXWS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxws.gmk)
|
@($(CD) $(JAXWS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxws.gmk)
|
||||||
@$(call TargetExit)
|
@$(call TargetExit)
|
||||||
|
|
||||||
|
ifeq ($(BUILD_HOTSPOT),true)
|
||||||
hotspot: hotspot-only
|
hotspot: hotspot-only
|
||||||
hotspot-only: start-make
|
hotspot-only: start-make
|
||||||
@$(call TargetEnter)
|
@$(call TargetEnter)
|
||||||
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk)
|
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk)
|
||||||
@$(call TargetExit)
|
@$(call TargetExit)
|
||||||
|
endif
|
||||||
|
|
||||||
jdk: langtools hotspot corba jaxp jaxws jdk-only
|
jdk: langtools hotspot corba jaxp jaxws jdk-only
|
||||||
jdk-only: start-make
|
jdk-only: start-make
|
||||||
|
Loading…
x
Reference in New Issue
Block a user