I just pushed the first example of a configure script

David Holmes David.Holmes at oracle.com
Fri Aug 26 04:51:32 PDT 2011


On 26/08/2011 9:42 PM, Magnus Ihse Bursie wrote:
> On 2011-08-25 12:01, David Holmes wrote:
>> Today I have a source forest and a top-level builds directory that
>> contains my build scripts for the different platforms. I simply do
>> build-x.csh or build-y.csh.
>
> Are these build scripts are managed by yourself locally on your system?
> Could you possibly post an example of such a script?

The scripts simply sets the desired environment variables such as:

BUILD_HOTSPOT=true
BUILD_JDK=true
...
ALT_OUTPUTDIR=/my-local-filesystem/$BUILD/$OS-$ARCH
cd ..
make all

The scripts are in a directory at the top-level of the source forest.

> Quoting from another mail:
>> But my output directory is often on a different file system (local rather
>> than NFS) and it is determined by build identifier eg:
>>
>> b00/linux-x
>> b00/linux-y
>>
>> etc.
>>
>> and then
>>
>> b01/linux-x
>> b01/linux-y
>>
>> etc.
>
> I don't think I'm familiar with this concept of build identifier. This is a
> name that is given to the build itself and the directory it resides in? Is
> the build identifier in the example above "b00/linux-x" or just "linux-x"?
> Is the "b00" an arbitrary part given by you, and "linux-x" the system it is
> compiled for?

b00 is the build number - and yes it is arbitrary in this context. linux-x 
represents $OS-$ARCH

> As I understand you, your current situation looks somewhat like this:
> Source code on NFS, like:
> /nfs-mounted-disk/jdk-srcs/my-jdk-project-1
>
> Builds created locally, like:
> /local-disk/build-output/my-jdk-project-1/b00/linux-x
> /local-disk/build-output/my-jdk-project-1/b00/linux-y
> ... etc

Yes

> And then you have a bunch of scripts located somewhere (else?)

scripts are in a directory added to top-level of the forest

> which builds
> from /nfs-mounted-disk/jdk-srcs/my-jdk-project-1 and puts the output in one
> of the target directories in /local-disk/build-output/my-jdk-project-1;
> which one is determined by the script which has a name matching the actual
> build produced.
>
> Have I captured the basics of your workflow correctly?

Essentially yes.

David
-----

> /Magnus



More information about the build-infra-dev mailing list