X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ldiskfs%2Fbuild%2FMakefile;fp=ldiskfs%2Fbuild%2FMakefile;h=da0cda43f2c1069ee2a17f71abdd5b664514e371;hb=39f87f91ee26fc617b97b8c90c1f9bb585a15391;hp=0000000000000000000000000000000000000000;hpb=68cf17efb9ccb01a7842368dd307c6f00d3a7ac2;p=fs%2Flustre-release.git diff --git a/ldiskfs/build/Makefile b/ldiskfs/build/Makefile new file mode 100644 index 0000000..da0cda4 --- /dev/null +++ b/ldiskfs/build/Makefile @@ -0,0 +1,55 @@ +# +# 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 +# possibly override the .config file +# +# 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 ($(LUSTRE_LINUX_CONFIG),) + +# case #1 +include autoMakefile + +else + +# case #2 +# Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile +# so "include Makefile" below includes $LINUX/Makefile, not this file +include $(LUSTRE_LINUX_CONFIG) +include Makefile + +endif # LUSTRE_LINUX_CONFIG + +else # PATCHLEVEL + +# case 3 + +ifneq ($(LUSTRE_KERNEL_TEST),) +extra-y = $(LUSTRE_KERNEL_TEST) +endif + +obj-m := conftest.o + +endif # PATCHLEVEL + +# case 4 + +echoarch: + echo $(ARCH) >$(ARCHFILE) + +TESTS := $(wildcard commit.*) +check-commit: + SHELL="$(SHELL)" $(SHELL) test-commit-msg.sh $(TESTS) + +check: check-commit +.PHONY: check-commit