Whamcloud - gitweb
LU-1199 build: Refactor ldiskfs's build system
authorChristopher J. Morrone <morrone2@llnl.gov>
Thu, 29 Nov 2012 22:05:39 +0000 (14:05 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 Jan 2013 22:57:22 +0000 (17:57 -0500)
commit4dc7a9df5084c27e21c653f1aaf955202ea33826
tree5e31b1af89294a873b330eff1370b69b3d376a3e
parent648b69c2c9d0ba18810645ab555870e57d2efa1d
LU-1199 build: Refactor ldiskfs's build system

Lustre has a complicated build system that combines automake
files and the kernel's Makefile.in build system in a rather
serpentine system that has long chains of makefile includes,
making it very difficult for the reader to ever know exactly
which targets and reles will either be required or  available
under any specific set of conditions.

The good news is that none of that is required by ldiskfs
because ldiskfs is only built for kernel-space Linux.
We only need one fairly straight forward build path.

To simplify the build system, we:

- Remove Rules.in
- Remove all autoMakefile.am files
- Remove confusing build/Makefile
- Combine the three .m4 files into one, since
  that was just a hold-over from Lustre's build system.
- Cleanup and improve some of the m4 macros
- Remove the multi-level build/ subdirectory tree
  and replace with single-level config subdirectory.
- Fix the ldiskfs debuginfo package (actually contains
  the patched source of ldiskfs!)
- Simplify autogen.sh
- Update .gitignore files

Change-Id: I9e6112c150c1e0f9076d5e689b69534eab7a964b
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/4728
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Brian J. Murrell <brian.murrell@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
22 files changed:
autoMakefile.am
ldiskfs/.gitignore
ldiskfs/Makefile.am [new file with mode: 0644]
ldiskfs/Makefile.in [deleted file]
ldiskfs/autoMakefile.am [deleted file]
ldiskfs/autogen.sh
ldiskfs/build/.gitignore [deleted file]
ldiskfs/build/Makefile [deleted file]
ldiskfs/build/Rules.in [deleted file]
ldiskfs/build/autoMakefile.am [deleted file]
ldiskfs/build/autoMakefile.am.toplevel [deleted file]
ldiskfs/build/autoconf/Makefile.am [deleted file]
ldiskfs/build/autoconf/ldiskfs-build-linux.m4 [deleted file]
ldiskfs/build/autoconf/ldiskfs-build.m4 [deleted file]
ldiskfs/build/autoconf/ldiskfs.m4 [deleted file]
ldiskfs/build/quiltrc [deleted file]
ldiskfs/config/.gitignore [moved from ldiskfs/build/autoconf/.gitignore with 78% similarity]
ldiskfs/config/ldiskfs-build.m4 [new file with mode: 0644]
ldiskfs/configure.ac
ldiskfs/ldiskfs/Makefile.in
ldiskfs/ldiskfs/autoMakefile.am [deleted file]
ldiskfs/lustre-ldiskfs.spec.in