LU-2675 build: remove liblustre and libsysio Remove the lustre/liblustre and libsysio subdirectories. Signed-off-by: John L. Hammond <john.hammond@intel.com> Change-Id: I53c06b8c76955519a33a7b1292b0d87495105607 Reviewed-on: http://review.whamcloud.com/10657 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-3963 cleanup: C89 and build cleanups use C99 initialization for a types, remove some platform depended code and use POSIX compatible instead. don't build a lhsmtool is none utils allowed. Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com> Change-Id: I6e2837953902520240e9ceb251c92329d328d715 Reviewed-on: http://review.whamcloud.com/7803 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-4679 liblustre: remove dead code and clean headers In liblustre, remove statically unused functions, varaibles and macros. Also ensure that the headers needed by the c and h files are included at top level. Prune unneeded includes. In libsysio, include sys/queue.h in fs.h. Signed-off-by: John L. Hammond <john.hammond@intel.com> Change-Id: I878b442b6d0ae17d8d5d33375ca7596618323c52 Reviewed-on: http://review.whamcloud.com/9429 Reviewed-by: Lai Siyao <lai.siyao@intel.com> Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-3865 build: support of new MPSS version 3.x The MPSS team changed the architecture name from “x86_64-k1om-linux” to “k1om-mpss-linux”. To accommodate this change we need few fixes in build infrastructure. Disable automatic dependency processing for cross build to avoid incorrect package dependency. The following files were just copied from main directory beacuse they are produced by modern autoconf which knows about k1om architecture: libsysio/config.guess libsysio/config.sub libsysio/depcomp libsysio/install-sh libsysio/missing Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Change-Id: I89aab076a350540fbc79aa3f6cb0221f5190eb62 Reviewed-on: http://review.whamcloud.com/7513 Tested-by: Hudson Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-3185 build: fix autogen with modern autoconf tools Modern autoconf tools request configure scripts to be more strict in style, some fixes to improve autoconf usage. Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: I954c0fc7be34d84ec279883debc44e7a543ebbe5 Reviewed-on: http://review.whamcloud.com/7490 Reviewed-by: Keith Mannthey <keith.mannthey@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Tested-by: Hudson Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-3204 build: clean up unused variables and dead code Clean up the code from really unused variables and rearrange other to remove SET_BUT_UNUSED and UNUSED macro usage if possible. Clean up or comment on some dead code. Removed never implemented suspend timeouts functionality from pinger.c which was commented out since 2007 and going to be replaced by adaptive timeouts. Also removed all references to this functionality from ldlm_lockd.c, ldlm_request.c and import.c which actually nevers executes or do nothing. pinger.c commit d2d56f38da01001c92a09afc6b52b5acbd9bc13c Author: tappro <tappro> Date: Mon Jul 30 21:08:59 2007 +0000 - make HEAD from b_post_cmd3 Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Signed-off-by: Ned Bass <bass6@llnl.gov> Change-Id: If7b6b3576d3ecc79948a7a1eb46a08c27a3bbc03 Reviewed-on: http://review.whamcloud.com/6139 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-3441 build: Allow for native KNC compilation The cross-compilation support (LU-2752) assumes that K1OM will only be built in a cross-compile environment. To allow for native compilation we only perform the cross compilation check if $cross_compile is defined to yes. Signed-off-by: Chris Horn <hornc@cray.com> Change-Id: I93fd9c2f7d29dd9567cfcd93013df09271d65dc2 Reviewed-on: http://review.whamcloud.com/6558 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Minh Diep <minh.diep@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2752 build: Enhance build for cross compilation for MIC Enhance lustre build for cross compilation for the Intel(R) Xeon Phi(TM) card. In addition to standard build the GNU cross toolchain for the Intel(R) Xeon Phi(TM) can be used to produce client binaries for the Intel(R) Xeon Phi(TM) card. To enable this just specify appropriate --host and --build option for ./configure. For example, to produce Lustre client binaries for Intel(R) Xeon Phi(TM) card just execute the following commands: NOTE: You should have "intel-mic-gpl-<version>.x86_64" package installed and MIC GPL sources unpacked in /opt/intel/mic/src. export PATH=/usr/linux-k1om-4.7/bin:$PATH sh ./autogen.sh ./configure --with-linux=/opt/intel/mic/src/card/kernel \ --disable-server --without-o2ib \ --host=x86_64-k1om-linux --build=x86_64-pc-linux make Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Change-Id: I4347c65f67bd836116532989c2132457f5eee934 Reviewed-on: http://review.whamcloud.com/5273 Tested-by: Hudson Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
LU-1032 build: Support --disable-maintainer mode We add "AM_MAINTAINER_MODE([enable])" to all configure scripts to allow us to use --disable-maintainer-mode. By default, without the AM_MAINTAINER_MODE macro, autotools "maintainer mode" is enabled. By specifying "enable" we maintain our previous default behaviour. Change-Id: I88366ad658795145af80ed96c6e708c385799ffa Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Reviewed-on: http://review.whamcloud.com/5423 Tested-by: Hudson Reviewed-by: Faccini Bruno <bruno.faccini@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Prakash Surya <surya1@llnl.gov> Reviewed-by: Brian J. Murrell <brian.murrell@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1821 build: fix build error about VLA at file scope Fix build error: drivers/incore/fs_incore.c:340:54: error: variably modified ‘incore_dir_template’ at file scope [-Werror] C99 does not allow VLA at file scope. Allocate incore_dir_template dynamically to avoid build error with newer gcc(>4.6.3) that checks this. Signed-off-by: Peng Tao <tao.peng@emc.com> Change-Id: Icc81c649f58772e76e1cd3dcd42348a53a9a942b Reviewed-on: http://review.whamcloud.com/3856 Reviewed-by: James Simmons <uja.ornl@gmail.com> Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Yang Sheng <ys@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1617 build: skip generated files in .gitignore Ignore automatically generated files via .gitignore so that a large number of spurious files are not listed at "git commit" time. Also consolidate many duplicate ignored files in the top-level .gitignore file, since we don't need to list the exceptions in every directory like the original .cvsignore files that they were generated from. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Change-Id: I5f9c60dc498f98abcd8c91042fc72408a915500c Reviewed-on: http://review.whamcloud.com/3364 Reviewed-by: Yu Jian <yujian@whamcloud.com> Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-455 Replace DIST_SOURCES with EXTRA_DIST Resolve autoconf-2.63 warnings mainly by replacing DIST_SOURCES with EXTRA_DIST. Additionally, the non-portable $(shell) contruct was removed from tests/module.mk and the sources simply enumated. Finally, the incorrect EXTRA_SOURCES instance was removed from the top level autoMakefile.am. Running automake-1.11 -a -c -W no-portability libcfs/libcfs/autoMakefile.am:92: variable `DIST_SOURCES' is defined but no program or libcfs/libcfs/autoMakefile.am:92: library has `DIST' as canonical name (possible typo) lnet/klnds/mxlnd/autoMakefile.am:44: variable `DIST_SOURCES' is defined but no program or lnet/klnds/mxlnd/autoMakefile.am:44: library has `DIST' as canonical name (possible typo) ... Also, as a result of the above changes, libcfs/libcfs/autoMakefile.am had to be modified in order to allow 'make dist' to succeed. As it turns out, libcfsutils_a_SOURCES was incorrect. That list contained references to nonexistent 'util/[parser|platform].h' files. The assumption is it intended to reference libcfs/include/libcfs/util/[parser|platform].h. To fix the issue, both [parser|platform].h references were removed from the list. This produces a simple solution that maintains consistency with the rest of the build system. The caveat being that libcfsutil.a won't automatically be rebuilt if either of the intended [parser|platform].h files are modified. Change-Id: Ia81eb1e3fc219f6dac4c7da234f7e736754c5440 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Signed-off-by: Prakash Surya <surya1@llnl.gov> Reviewed-on: http://review.whamcloud.com/1092 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Richard Henwood <rhenwood@whamcloud.com> Tested-by: Richard Henwood <rhenwood@whamcloud.com> Reviewed-by: Brian J. Murrell <brian@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
b=21581 too long file / path names for old tar Instruct automake to use tar's ustar format to prevent errors when pathnames are longer than 99 chars. - this requires automake >= 1.9, so adjust accordingly - including dealing with multiple versions of automake installed Per andreas' inspection, provide a hint to the user on how to install a missing automake or autoconf. Per mjmac's inspection, give Debian users help on how to install software. - note that I am *assuming" that Debian's lsb distribution id is "Debian" i=adilger i=mjmac Issue: LU-47 Signed-off-by: Brian J. Murrell <brian@whamcloud.com> Change-Id: Ica6419196d2a6910824e8f2326537d9b46612c15
Remove remaining remnants of the CVS era.
Introduce .gitignore files. The top level .gitignore file is new and is an attempt at pulling in some of the common items that you might get for free (by default)with CVS. The other subdir/.gitignore files are translated versions of their corresponding .cvsignore file. Because CVS does not descend into a subdir when applying a ingore rule we have to prepend a "/" to the pathname to get git to behave the same way.