Whamcloud - gitweb
Branch b1_6
authorscjody <scjody>
Fri, 24 Aug 2007 15:36:32 +0000 (15:36 +0000)
committerscjody <scjody>
Fri, 24 Aug 2007 15:36:32 +0000 (15:36 +0000)
Add EXPORT_SYMBOL check for node_to_cpumask symbol.

b=12826
i=shadow
i=mjmac

build/Makefile
build/autoconf/lustre-build-linux.m4

index c0538bd..11c9c6e 100644 (file)
@@ -1,5 +1,5 @@
 #
 #
-# There are three ways this Makefile can be called:
+# There are four ways this Makefile can be called:
 #
 # 
 # 1.  As a subdirectory from the toplevel, for automake
 #
 # 
 # 1.  As a subdirectory from the toplevel, for automake
@@ -10,6 +10,8 @@
 # 3.  At configure time, as the toplevel module dir for building
 #     kernel tests
 #
 # 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),)
 
 
 ifeq ($(PATCHLEVEL),)
 
@@ -47,3 +49,8 @@ include $(TOPDIR)/Rules.make
 endif
 
 endif # PATCHLEVEL
 endif
 
 endif # PATCHLEVEL
+
+# case 4
+
+echoarch:
+       echo $(ARCH) >$(ARCHFILE)
index 8e7c8c1..2728334 100644 (file)
@@ -309,6 +309,21 @@ 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_OBJ $ARCH_UM \
+                     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
 # LB_LINUX_TRY_COMPILE
 #
 # like AC_TRY_COMPILE