Whamcloud - gitweb
LU-3205 llite: Set layout_gen before compatibility check
[fs/lustre-release.git] / build / Makefile
index c0538bd..d00981f 100644 (file)
@@ -1,7 +1,7 @@
 #
-# 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
 #
 # 2.  A wrapper around the kernel's makefile when building modules, to
@@ -10,6 +10,8 @@
 # 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),)
 
@@ -33,17 +35,14 @@ else # PATCHLEVEL
 # case 3
 
 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 # PATCHLEVEL
+
+# case 4
+
+echoarch:
+       echo $(ARCH) >$(ARCHFILE)