From: Robert Read Date: Fri, 18 Jun 2010 15:40:13 +0000 (-0700) Subject: Clean out more cruft. X-Git-Tag: v2_0_0-rc1~30 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a8f1f47baf388f795390b94b3184a0ab0a17f032 Clean out more cruft. Remove empty lustre/kernel-tests Remove very outofdate README.kernel-source --- diff --git a/build/README.kernel-source b/build/README.kernel-source deleted file mode 100644 index bb985e9..0000000 --- a/build/README.kernel-source +++ /dev/null @@ -1,103 +0,0 @@ -Lustre can currently build against Red Hat 2.4 and SuSE 2.6 -kernel-source RPMs. All other kernel-source RPMs are *unsupported* at -this time. - -Note that a Lustre-patched kernel is required for building Lustre; in -most cases a kernel-source RPM from your Linux vendor will not contain -the necessary patches. - -## -## Instructions for Red Hat 2.4.x kernel-source RPMs -## - -1. kernel.h - -Building against a kernel-source RPM requires a special header. On -Red Hat systems, this file should be automatically created at boot -time, and saved in /boot/kernel.h. - - *** If you are not running Red Hat Linux, or are not booted into the - *** kernel you are trying to build against, you need to create this - *** file manually. - - *** If you do not, the Lustre build may fail, or may fail to build - *** modules that work with your kernel. - -Here is an example /boot/kernel.h file. If you are building on -x86_64, the first defines should be __MODULE_KERNEL_x86_64, etc. The -other defines should be simple to figure out. - -/* This file is automatically generated at boot time. */ -#ifndef __BOOT_KERNEL_H_ -#define __BOOT_KERNEL_H_ - -/* Kernel type i686-smp */ - -#ifndef __MODULE_KERNEL_i686 -#define __MODULE_KERNEL_i686 1 -#endif - -#ifndef __BOOT_KERNEL_ENTERPRISE -#define __BOOT_KERNEL_ENTERPRISE 0 -#endif - -#ifndef __BOOT_KERNEL_BIGMEM -#define __BOOT_KERNEL_BIGMEM 0 -#endif - -#ifndef __BOOT_KERNEL_HUGEMEM -#define __BOOT_KERNEL_HUGEMEM 0 -#endif - -#ifndef __BOOT_KERNEL_SMP -#define __BOOT_KERNEL_SMP 1 -#endif - -#ifndef __BOOT_KERNEL_UP -#define __BOOT_KERNEL_UP 0 -#endif - -#endif - -You should save this somewhere, and pass the location of this file to -./configure using the --with-kernel-source-header option. - -2. .config - -You will also need to tell Lustre about the .config file for your -kernel. The two likely locations of this file are -/boot/config-$(uname -r), and /usr/src/linux-2.4/configs/. You should -pass the location of this file to Lustre using the --with-linux-config -option. - -3. An Example - -Here is an example for configuring Lustre: - -./configure --with-linux=/usr/src/linux-2.4.20-28.9_lustre.1.0.3 \ ---with-kernel-source-header=/boot/kernel.h \ ---with-linux-config=/boot/config-2.4.20-28.9_lustre.1.0.3smp - -## -## Instructions for SuSE 2.6.x kernel-source RPMs -## - -1. kernel-syms - -In addition to the kernel-source rpm, you may need to install a -kernel-syms rpm. This should be included where you got your kernel -rpm. - -2. linux-obj - -You will need to choose the correct linux-obj directory for your -machine. They will be located in /usr/src/linux-$(uname --r)-obj/$ARCH/$FLAVOR. Lustre should be configured with the ---with-linux-obj option. - -3. Example - -Here is an example for configuring Lustre: - -./configure --with-linux=/usr/src/linux-2.6.5-7.97 \ ---with-linux-obj=/usr/src/linux-2.6.5-7.97-obj/ppc64/pseries64 diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index b442aef..ef97458 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -95,7 +95,7 @@ dist-hook: EXTRA_DIST = @PACKAGE_TARNAME@.spec \ build/Makefile build/autoMakefile.am.toplevel build/lbuild \ - build/Rules.in build/README.kernel-source \ + build/Rules.in \ build/update_oldconfig \ build/autoconf/lustre-build-linux.m4 \ build/autoconf/lustre-build-darwin.m4 \ diff --git a/lustre/kernel-tests/.gitignore b/lustre/kernel-tests/.gitignore deleted file mode 100644 index c43489c..0000000 --- a/lustre/kernel-tests/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/.*.cmd -/.*.flags -/*.ko -/*.c -/.tmp_versions diff --git a/lustre/kernel-tests/Makefile b/lustre/kernel-tests/Makefile deleted file mode 100644 index 7360935..0000000 --- a/lustre/kernel-tests/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -ifeq ($(PATCHLEVEL),) - -ifneq ($(LUSTRE_LINUX_CONFIG),) -include $(LUSTRE_LINUX_CONFIG) -endif -include Makefile - -else - -ifneq ($(LUSTRE_KERNEL_TEST),) -ifeq ($(PATCHLEVEL),4) -all: $(LUSTRE_KERNEL_TEST) -else -extra-y = $(LUSTRE_KERNEL_TEST) -endif -endif - -obj-m := conftest.o - -ifeq ($(PATCHLEVEL),4) -include $(TOPDIR)/Rules.make -endif - -endif