LU-16751 build: remove symlinks and add SPDX Remove commit-msg and prepare-commit-msg links in the build/ directory. Add proper headers and SPDX to the remaining files in build/. Test-Parameters: trivial Fixes: 25c93758d6 ("LU-1199 build: Clean out the build directory") Signed-off-by: Timothy Day <timday@amazon.com> Change-Id: I649ed60f5541be2832555efa2e0cf64cd1a5c67c Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53396 Reviewed-by: Oleg Drokin <green@whamcloud.com> Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com>
LU-16666 doc: remove unmaintained doxyfiles These Doxygen related files had old urls, some using http rather than https. Some code scanning tools will flag this. Rather than update these, remove all of the old doxyfiles. They are very out of date, Doxygen throws many errors when you try to use them, and they do not seem to generate usable documentation. Test-Parameters: trivial Signed-off-by: Timothy Day <timday@amazon.com> Change-Id: I5a24d4754582ecee558c4e87385b8835d2675adc Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50415 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Aurelien Degremont <adegremont@nvidia.com> Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-16115 build: Linux 5.17 external module support Linux commit v5.16-rc3-26-g129ab0d2d9f3 Added quotes around "$(CONFIG_CC_VERSION_TEXT)", however .config stores CONFIG_CC_VERSION_TEXT with quotes thus breaking the GNU make Makefile for external modules. We need to supply a non-quoted value and override the value in .config before it is used. Test-Parameters: trivial HPE-bug-id: LUS-11190 Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com> Change-Id: I997b6987ef37a8c5b9d8f0984e81d9402a2ea705 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48360 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Jian Yu <yujian@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: jsimmons <jsimmons@infradead.org> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-16233 build: Add always target for SUSE15 SP3 LTSS SUSE 15 SP3 LTSS kernel version 5.3.18-150300.59.93 (and later) breaks lustre build tests which expect conftest.i to be generated. HPE-bug-id: LUS-11286 Test-Parameters: trivial Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com> Change-Id: If23e9b31b537878a43075ffff62a99906f47fd9a Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48833 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Jian Yu <yujian@whamcloud.com> Reviewed-by: Minh Diep <mdiep@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-14195 build: Adjust Makefile for Linux build changes. Since v5.10-rc1~51^2~19, "KBUILD_BUILTIN" has been unset for module builds. This means that "targets-for-builtin" isn't built, and that is how "extra-y" is built. So we need another way to force LUSTRE_KERNEL_TEST to be built. Since v5.6-rc1~1^2~5 any target listed in "always-y" will always get built. So we can assign LUSTRE_KERNEL_TEST to this macro. Assigning both macros is safe, even for those kernels which include both in the list of targets. Test-Parameters: trivial Signed-off-by: Mr NeilBrown <neilb@suse.de> Change-Id: I508b3710579c068dec93baf81ee383f3f03bd370 Reviewed-on: https://review.whamcloud.com/40907 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Aurelien Degremont <degremoa@amazon.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-9897 build: add binaries to .gitignore Several binaries are built that show up with git status. Add them to the .gitignore file Test-Parameters: trivial Change-Id: I7eb38d8fe725408dffaa71eb4db2d0305721367b Signed-off-by: James Simmons <jsimmons@infradead.org> Reviewed-on: https://review.whamcloud.com/38825 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Faccini Bruno <bruno.faccini@intel.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
LU-12634 build: kbuild changes in 5.3 drop subdir-m Several changes in kbuild affect the way external modules can be built. In the Linux 5.3-rc4 series subdir-m has been removed. Linux commit: c07d8d47bca1b325102fa2be3a463075f7b051d9 Test-Parameters: trivial Cray-bug-id: LUS-7689 Signed-off-by: Shaun Tancheff <stancheff@cray.com> Change-Id: Id1f248ac4ccdee8d2a2d177b4fdff4444d2084d1 Reviewed-on: https://review.whamcloud.com/35786 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-7518 build: Remove the Phi accelerator-specific packaging Intel needed to build Lustre for its non-self-hosted accelerator version of the Phi processor. It turns out that the OS for that is packaged in some weird non-standard way. Intel added support into Lustre to rpm package it. While those additions use words like "cross_build", making it sound like it might be generic, it really isn't. All of that is really messy and non-standard, and it is making far too difficult to package Lustre for normal rpm-based distributions. Hopefully this won't be too much of a problem for Intel, because Phi processors are now self-hosting. This is in large part a revert of commit 426194de03ad47497e99d281d86b5cdfc5142148: "LU-2784 build: Provide RPMs build for Xeon Phi(TM) card" Change-Id: Ie5d655f1da3e17eae6edebb5f4d6fd6e7d58811f Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Reviewed-on: http://review.whamcloud.com/17488 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-6788 build: Remove build/lbuild backwards compatibility symlink Enough time has passed since lbuild was moved to contrib to remove the symlink that we left behind in the build directory to accommodate Intel's build farm. Change-Id: I4d3b6038aad0663c3030590d161b6d71d05e6d43 Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Reviewed-on: http://review.whamcloud.com/15464 Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Minh Diep <minh.diep@intel.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-5597 build: Ensure MOFED Module symvers are used Change way extra symbols are included in build. Use KBUILD_EXTRA_SYMBOLS to directly included Modules.symvers files instead of buildling Modules.symvers in buildroot directory. Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Change-Id: I4a6ee59f4e4eed9f878ad52993b8b17426f19d4a Reviewed-on: http://review.whamcloud.com/15498 Tested-by: Jenkins Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: James Simmons <uja.ornl@yahoo.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2675 build: remove Darwin "support" Remove the Darwin "support" code. It's not maintained or used. Signed-off-by: John L. Hammond <john.hammond@intel.com> Change-Id: I56ee7788d55465495815c4f8655e986dd5a51d00 Reviewed-on: http://review.whamcloud.com/11423 Reviewed-by: frank zago <fzago@cray.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Tested-by: Jenkins Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
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-2982 build: make AC check for linux arch sandbox friendly I didn't found any usage of LINUXARCH definition in sources now. But this check is problematic in sandbox. Therefore, I removed it from sources at all. Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Change-Id: Ibdf0a3c26950a59d7f9cc51687d725d9c8835374 Reviewed-on: http://review.whamcloud.com/9458 Tested-by: Jenkins Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Alexey Shvetsov <alexxy@gentoo.org> Reviewed-by: James Simmons <uja.ornl@gmail.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-2784 build: Provide RPMs build for Xeon Phi(TM) card Enhance Lustre build to provide RPMs which can be installed on Xeon Phi(TM) card automatically. This means the binaries should be compiled by cross compiler and deployed into Xeon Phi(TM) infrastructure on host to be automatically installed on card after boot. To produce Lustre client RPMs for Xeon Phi(TM) card just execute the following commands: 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 rpms NOTE: You should have "intel-mic-gpl-<version>.x86_64" package installed and MIC GPL sources unpacked in /opt/intel/mic/src. and the following RPMs will be produced: lustre-client-mic-<version>.x86_64.rpm lustre-client-mic-debuginfo-<version>.x86_64.rpm lustre-client-mic-modules-<version>.x86_64.rpm lustre-client-mic-source-<version>.x86_64.rpm lustre-client-mic-tests-<version>.x86_64.rpm lustre-client-mic-<version>.src.rpm Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Change-Id: I8d61133614443e2a6a33f5c1b1b097250b11d749 Reviewed-on: http://review.whamcloud.com/5324 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1199 build: Relocate missed lbuild-fc18 lbuild-fc18 was missed in the move of the other lbuild files to contrib/lbuild. This relocates that file as well. Change-Id: I2775f1e0aa4c7d17d2e1d8a114f2bea3702fec68 Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Reviewed-on: http://review.whamcloud.com/5872 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1199 build: Clean out the build directory Clean up the build directory. Move in the direction of reserving "build/" for the special-purpose Makefile that lives there. Eventually we could rewrite the autoconf tests to eliminate that Makfile, and the build directory could disappear altogether (after finding homes for anything else that is left). The autoconf m4 file move into a top level "config" directory. Most other things that have moved are put in the new "contrib" top-level directory. For instance, "contrib/lbuild" contains all of the lbuild-related files, and "contrib/git-hooks" contains the git hooks for lustre developers. Most of the moved files were unchanged, however the lbuild scripts needed some tweaking to deal with the new location. Because of the way that Intel's build farm and git hooks expect to find certain files in fixed locations I have had to leave a few symlinks in place that point to the new locations. Change-Id: I04dc529d4f4060b892e1e4eaa8613bbc3337c414 Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Reviewed-on: http://review.whamcloud.com/5035 Reviewed-by: Brian J. Murrell <brian.murrell@intel.com> Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2920 autoconf: delete unused LB_LINUX_MODPOST LB_LINUX_MODPOST does not seem to be used anywhere. Signed-off-by: Minh Diep <minh.diep@intel.com> Change-Id: Ibec2002ae8b74b9c6f1f6df82a35d44bd00916dc Reviewed-on: http://review.whamcloud.com/5615 Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Hudson Reviewed-by: Keith Mannthey <keith.mannthey@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2961 build: Fix commit-msg to love new files It is annoying to receive errors like this when the changes being committed include new files: $ git commit -asv --amend line 65: diff --git a/lustre/include/lustre_errno.h b/lustre/include/lustre_errno.h new file mode 100644 error: commit message invalid signoff section line line 66: index 0000000..89b8d1b error: commit message invalid signoff section line line 67: --- /dev/null error: commit message invalid signoff section line ... This patch adds the "new file mode" pattern to commit-msg. Hopefully, this is enough. Signed-off-by: Li Wei <wei.g.li@intel.com> Change-Id: I39c985d51afb04184322a8fc725bcef3938bf419 Reviewed-on: http://review.whamcloud.com/5712 Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Hudson Reviewed-by: Bruce Korb <bruce_korb@xyratex.com> Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-2882 build: build broken with no zfs libraries installed Reverting default values (originaly set in LU-2391 patch) for ldiskfs/zfs OSD RPMs builds, to comply for more ways ("rpmbuild -tb <lustre_source_tarball>") used to build Lustre. Signed-off-by: Bruno Faccini <bruno.faccini@intel.com> Change-Id: I07eca22d03f597942284bbbc0bfd1b680ecb199b Reviewed-on: http://review.whamcloud.com/5661 Tested-by: Hudson Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>