United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7018429 JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK
JDK-7018429 : JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK

Details
Type:
Enhancement
Submit Date:
2011-02-10
Status:
Closed
Updated Date:
2012-01-31
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b03)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

Description
When doing cross-compilation builds you need to copy hotspot into a host JDK image that mataches your target architecture. At present the copy_jdk (and other) rules use the setting of JDK_IMPORT_PATH, but that setting has a dual role in a full JDK build and in general needs to refer to a JDK that can run on the host doing a build.

JPRT has just been enhanced to add two new environment variables when doing a build:

     ALT_JDK_HOST_IMPORT_PATH  - JDK that the host can execute
     ALT_JDK_TARGET_IMPORT_PATH - JDK for the target architecture

for cross-compile builds the target will be set based on properties defined in the JPRT system. For non-cross-compile ALT_JDK_TARGET_IMPORT_PATH will either not be set (seems to be current case) or else will be the same as ALT_JDK_HOST_IMPORT_PATH which in turn will be the same as JDK_IMPORT_PATH.

This fix will change the JDK copying tasks in the Makefile to use ALT_JDK_TARGET_IMPORT_PATH if it is defined.

                                    

Comments
EVALUATION

See description
                                     
2011-02-10
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/b76d12f4ab2d
                                     
2011-02-16



Hardware and Software, Engineered to Work Together