Whamcloud - gitweb
LU-1199 build: Untangle the ldiskfs build system from lustre 09/4409/10
authorChristopher J. Morrone <morrone2@llnl.gov>
Mon, 26 Nov 2012 21:38:35 +0000 (13:38 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Jan 2013 15:35:16 +0000 (10:35 -0500)
commit39f87f91ee26fc617b97b8c90c1f9bb585a15391
tree77c69e255774c59981086a2e03fe26a217df8f56
parent68cf17efb9ccb01a7842368dd307c6f00d3a7ac2
LU-1199 build: Untangle the ldiskfs build system from lustre

Make ldiskfs have its own independant build system, with no
sharing of files from higher up the tree in lustre.  To begin
with, this means some minor duplication of functions in build
scripts.  However, it is my opinion that the simpicity that
is gained by having a clear separation of the build systems
far outweighs the costs of some initial duplication.  It
also opens up the possibility of easily moving ldiskfs into
its own separate git repo should we choose to do so in the
future.

The separation of the build systems began by removing the
ldiskfs/build->lustre/build symbolic link, and making a
complete copy of the lustre/build tree into ldiskfs/build.
Then I iterated on removing everything from ldiskfs/build
that was unnecessary to build ldiskfs.

Since lustre's build/autogen.sh is no longer shared between
two build systems, I removed the wrapper autogen.sh scripts
and made the upper-level autogen.sh in both lustre and
ldiskfs full-fledged scripts.  This meant making a minor
change to remove bash specific language (pushd/popd).

Now the ldiskfs subtree is capable of being built completely
absent of the lustre tree.  There are no doubt more things
that can be trimmed and cleaned up, but that much is now
complete.

Also, along the way I noted build/Makefile is being ignored
by git, even though it is part of the source tree, and not
auto-generated by the build system.  I added "!Makefile" to
.gitignore in the lustre/build directory so that it is no
longer ignored.

Change-Id: I98e437a0da897680e3ea6f21f15bcd6287367166
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/4409
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Brian J. Murrell <brian.murrell@intel.com>
20 files changed:
autogen.sh
build/autoconf/lustre-build-ldiskfs.m4
build/autoconf/lustre-build.m4
build/autogen.sh [deleted file]
ldiskfs/.gitignore
ldiskfs/autoMakefile.am
ldiskfs/autogen.sh
ldiskfs/build [deleted symlink]
ldiskfs/build/.gitignore [new file with mode: 0644]
ldiskfs/build/Makefile [new file with mode: 0644]
ldiskfs/build/Rules.in [new file with mode: 0644]
ldiskfs/build/autoMakefile.am [new file with mode: 0644]
ldiskfs/build/autoMakefile.am.toplevel [new file with mode: 0644]
ldiskfs/build/autoconf/.gitignore [new file with mode: 0644]
ldiskfs/build/autoconf/Makefile.am [new file with mode: 0644]
ldiskfs/build/autoconf/ldiskfs-build-linux.m4 [new file with mode: 0644]
ldiskfs/build/autoconf/ldiskfs-build.m4 [new file with mode: 0644]
ldiskfs/build/autoconf/ldiskfs.m4 [new file with mode: 0644]
ldiskfs/build/quiltrc [new file with mode: 0644]
ldiskfs/configure.ac