Review request for 6915413 Module build: building of specified jdk components instead of all

Mandy Chung Mandy.Chung at Sun.COM
Wed Feb 10 11:31:24 PST 2010


Kelly,

Thanks for the review.

On 02/10/10 10:39, Kelly O'Hair wrote:
> This one looks strange:
> 
> http://cr.openjdk.java.net/~mchung/6915413/webrev.00/make/com/sun/security/Makefile.sdiff.html 
> 
>   33 SUBDIRS = auth
>   34 SUBDIRS = jgss sasl auth/module
>   35 include $(BUILDDIR)/common/Subdirs.gmk
>   36

Thanks for catching it.  line 34 is supposed to be SUBDIRS_misc = ...

> http://cr.openjdk.java.net/~mchung/6915413/webrev.00/make/common/Subdirs.gmk.html 
> 
>   I have a separate set of changes that are getting a little stale
>   that completely removed this TIMING logic.
>   This timing was complex, and was doing lots of 'exec's during the build.
>   I came to the conclusion that doing something like:
>      make MAKE="/usr/bin/time make"
>   might work just as well when you wanted timings on each make command,
>   much simplier than all this crazy shell timing logic, that I
>   must confess, I added. :^(
>   For the simple loops I came up with, look at:
>     
> http://cr.openjdk.java.net/~ohair/openjdk7/jdk7-build-cygwin-6892741/webrev/make/common/Defs.gmk.html 
> 
>   Lines 492-515.
>   I also got rid of the "cd dir", using 'make -C dir' instead.

That's better.  I change Subdirs.gmk to use the simple loops and make -C 
dir you came up with. Also I remove the timing function defined in Defs.gmk.

New webrev:
    http://cr.openjdk.java.net/~mchung/6915413/webrev.01/

Updated files are:
http://cr.openjdk.java.net/~mchung/6915413/webrev.01/make/common/Defs.gmk.sdiff.html
http://cr.openjdk.java.net/~mchung/6915413/webrev.01/make/common/Subdirs.gmk.html 
  (line 72-94)
http://cr.openjdk.java.net/~mchung/6915413/webrev.01/make/com/sun/security/Makefile.sdiff.html

Thanks
Mandy

> -kto
> 
> 
> On 2/8/10 2:28 PM, Mandy Chung wrote:
>> Hi Alan, Kelly,
>>
>> Can you review the change for:
>> 6915413 Module build: building of specified jdk components instead of all
>>
>> Webrev at:
>> http://cr.openjdk.java.net/~mchung/6915413/webrev.00/
>>
>> A new file, make/common/Subdirs.gmk, is added to handle the
>> recursive building of subdirectories. Makefiles that call
>> SUBDIRS-loop are modified to include make/common/Subdirs.gmk
>> after SUBDIRS* variables are defined.
>>
>> No change to the usual way in building JDK, i.e.
>> gnumake all - building the entire JDK
>>
>> What's new is described in the comment in make/common/Subdirs.gmk:
>>
>> # SUBDIRS subdirs for the base module always get built
>> # SUBDIRS_<group> subdirs for the named group
>> #
>> # By default, subdirs specified in the SUBDIRS and all SUBDIRS_* #
>> variables will be built.
>> # # BUILD_MODULES variable can be used to specify one or more groups
>> # to be built (BUILD_MODULES=all will build all groups).
>> #
>> # Variables of the currently supported groups are:
>> # SUBDIRS_desktop # SUBDIRS_management
>> # SUBDIRS_enterprise
>> # SUBDIRS_misc
>> # SUBDIRS_tools
>> # # Eventually we want to restructure the make directory
>> # according to these grouping (e.g. make/desktop/...) and
>> # the SUBDIRS_<group> variables would not be needed.
>> # # To build the desktop and tools groups only, you can do:
>> # gnumake BUILD_MODULES="desktop tools" ...
>> #
>> When we finalize the list of jdk modules/profiles, we may
>> update the supported groups to reflect the final grouping
>> and also create only the modules belonging to that group
>> under <outputdir>/modules/ directory.
>>
>> Thanks
>> Mandy
>>
>>



More information about the jigsaw-dev mailing list