X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2FMakefile;h=11c9c6ec622f7ada91842460be81ac2ff46e649b;hb=a594ec4212c0ef4a619a3a3f932b30d0a700b96d;hp=d13bbb70adc7cae05ece1be8d59727d20dc030c5;hpb=7b16772ac5bd3a3e0b5c7c52d96f261be9b22263;p=fs%2Flustre-release.git diff --git a/build/Makefile b/build/Makefile index d13bbb7..11c9c6e 100644 --- a/build/Makefile +++ b/build/Makefile @@ -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 @@ -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),) @@ -22,7 +24,7 @@ else # case #2 # Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile -# So the include Makefile includes $LINUX/Makefile, not this file +# so "include Makefile" below includes $LINUX/Makefile, not this file include $(LUSTRE_LINUX_CONFIG) include Makefile @@ -47,3 +49,8 @@ include $(TOPDIR)/Rules.make endif endif # PATCHLEVEL + +# case 4 + +echoarch: + echo $(ARCH) >$(ARCHFILE)