[alsa-devel] [PATCH] alsa-driver-build/Makefile: Support CONFIG_SND_KERNELDIR
Stephen Warren
swarren at nvidia.com
Fri Aug 20 18:07:51 CEST 2010
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 at swarren-lx2.nvidia.com>
---
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
More information about the Alsa-devel
mailing list