Some kernels define CONFIG_SND_KERNELDIR rather than CONFIG_SND_KERNELBUILD. If the latter is not set, then use the former. Signed-off-by: Stephen Warren <swarren@xxxxxxxxxxxxxxxxxxxxxx> --- Makefile | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 9af188f..59c477c 100644 --- a/Makefile +++ b/Makefile @@ -157,6 +157,12 @@ all-deps: toplevel.config.in acinclude.m4 include/config1.h.in include/sndversions.h: $(MAKE) dep +ifdef NEW_KBUILD + ifeq ("$(CONFIG_SND_KERNELBUILD)", "") + override CONFIG_SND_KERNELBUILD := $(CONFIG_SND_KERNELDIR) + endif +endif + .PHONY: compile compile: include/sndversions.h ifdef NEW_KBUILD -- 1.6.3.3 nvpublic _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel