Review Request: 8002028: build-infra: need no-hotspot partial build

David Holmes david.holmes at oracle.com
Fri Nov 9 03:50:21 UTC 2012


On 9/11/2012 2:51 AM, Erik Joelsson wrote:
> And a new for jdk too. This fixes solaris.
>
> http://cr.openjdk.java.net/~erikj/8002028/webrev.jdk.02/
> <http://cr.openjdk.java.net/%7Eerikj/8002028/webrev.jdk.02/>

Here:

!         $1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY 
$(addprefix -o$(SPACE)-name$(SPACE),$4) \))

Is the "-name DUMMY" to account for $4 possibly being empty?

   #
   # Import hotspot
   #
! HOTSPOT_IMPORT_FILES:=$(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* 
jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \
!                       Xusage.txt sa-jdi.jar
! $(eval $(call CopyDir,HOTSPOT0, $(HOTSPOT_LIB_DIR), 
$(INSTALL_LIBRARIES_HERE), $(HOTSPOT_IMPORT_FILES)))
! $(eval $(call CopyDir,HOTSPOT1, $(HOTSPOT_DIST)/lib, 
$(JDK_OUTPUTDIR)/lib, $(HOTSPOT_IMPORT_FILES)))

   JSIG_DEBUGINFO := $(strip $(wildcard 
$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \
                     $(wildcard 
$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )

It seems to me that libjsig.diz will be handled twice due to the jsig.* 
above.

Also should those foo.* really be foo.$(LIBRARY_SUFFIX) , or are there 
other files (like .diz) that we want to include?

Finally does all that work for windows too?

David

> /Erik
>
> On 2012-11-08 15:27, Erik Joelsson wrote:
>> New webrev for root:
>>
>> http://cr.openjdk.java.net/~erikj/8002028/webrev.root.02/
>> <http://cr.openjdk.java.net/%7Eerikj/8002028/webrev.root.02/>
>>
>> Changed to conditional as David suggested.
>>
>> Improved the description and fail message in configure.
>>
>> /Erik
>>
>> On 2012-11-08 11:41, Erik Joelsson wrote:
>>>
>>>
>>> On 2012-11-08 04:19, David Holmes wrote:
>>>> Hi Erik,
>>>>
>>>> Two queries:
>>>>
>>>> 1. In Main.gmk wouldn't it be better to move the hotspot targets
>>>> inside the conditional - that way if you ask to build hotspot when
>>>> you are not configured to build it you will get an error.
>>>>
>>> I figured there would be errors when other targets depended on
>>> hotspot, but it seems to handle it fine. In fact, I can't get it to
>>> cause any errors at all even when trying to make hotspot explicitly.
>>> It looks better having the complete set of rules inside the ifdefs
>>> though.
>>>
>>>> 2. Why do you have to import hotspot from a full JDK ??
>>>>
>>> You don't. I just assumed that's how this feature was used before.
>>> Another valid value would be the dist directory of any hotspot build.
>>> Are there other possible ways to use this in the old build?
>>>
>>> /Erik
>>>> David
>>>>
>>>> On 8/11/2012 1:08 AM, Erik Joelsson wrote:
>>>>> Adding support for importing the hotspot binaries from a prebuilt
>>>>> j2sdk
>>>>> image. Use configure option --with-import-hotspot=/path/to/j2sdkimage
>>>>> and the build will skip building hotspot.
>>>>>
>>>>> http://cr.openjdk.java.net/~erikj/8002028/webrev.jdk.01/
>>>>> <http://cr.openjdk.java.net/%7Eerikj/8002028/webrev.jdk.01/>
>>>>> http://cr.openjdk.java.net/~erikj/8002028/webrev.root.01/
>>>>> <http://cr.openjdk.java.net/%7Eerikj/8002028/webrev.root.01/>
>>>>>
>>>>> Note that if trying this patch (or before committing it) make sure to
>>>>> regenerate configure first and if committing, commit in
>>>>> jdk/make/closed
>>>>> too.
>>>>>
>>>>> /Erik



More information about the build-dev mailing list