Whamcloud - gitweb
LU-2982 build: make AC check for linux arch sandbox friendly 58/9458/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Mon, 3 Mar 2014 15:06:04 +0000 (19:06 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Mar 2014 23:51:02 +0000 (23:51 +0000)
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>
build/Makefile
config/lustre-build-linux.m4

index d00981f..d732afc 100644 (file)
@@ -10,8 +10,6 @@
 # 3.  At configure time, as the toplevel module dir for building
 #     kernel tests
 #
-# 4.  At configure time, to determine the kernel's idea of $(ARCH)
-#
 
 ifeq ($(PATCHLEVEL),)
 
@@ -32,8 +30,7 @@ endif # LUSTRE_LINUX_CONFIG
 
 else # PATCHLEVEL
 
-# case 3
-
+# case #3
 ifneq ($(LUSTRE_KERNEL_TEST),)
 extra-y = $(LUSTRE_KERNEL_TEST)
 endif
@@ -41,8 +38,3 @@ endif
 obj-m := conftest.o
 
 endif # PATCHLEVEL
-
-# case 4
-
-echoarch:
-       echo $(ARCH) >$(ARCHFILE)
index 416cb66..ce0de5e 100644 (file)
@@ -406,21 +406,6 @@ rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.
 ])
 
 #
-# LB_LINUX_ARCH
-#
-# Determine the kernel's idea of the current architecture
-#
-AC_DEFUN([LB_LINUX_ARCH],
-         [AC_MSG_CHECKING([Linux kernel architecture])
-          AS_IF([rm -f $PWD/build/arch
-                 make -s --no-print-directory echoarch -f $PWD/build/Makefile \
-                     LUSTRE_LINUX_CONFIG=$LINUX_CONFIG -C $LINUX $CROSS_VARS  \
-                     ARCHFILE=$PWD/build/arch && LINUX_ARCH=`cat $PWD/build/arch`],
-                [AC_MSG_RESULT([$LINUX_ARCH])],
-                [AC_MSG_ERROR([Could not determine the kernel architecture.])])
-          rm -f build/arch])
-
-#
 # LB_LINUX_TRY_COMPILE
 #
 # like AC_TRY_COMPILE
@@ -525,7 +510,6 @@ Kernel module loading support is highly recommended.
 #
 AC_DEFUN([LB_PROG_LINUX],
 [LB_LINUX_PATH
-LB_LINUX_ARCH
 LB_LINUX_SYMVERFILE