summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@frijolero.org>2012-02-24 17:24:58 -0800
committerLuis R. Rodriguez <mcgrof@frijolero.org>2012-02-24 17:26:47 -0800
commit66e398ef856152df342bec8e61ac8962f356b146 (patch)
tree303fc57925d7e5afa5c959cbc9b7e39d88063680 /Makefile
parent37de7f595de5ebd57176052f4d7b84cca35e44c2 (diff)
compat-wireless: use compat's CONFIG_COMPAT_KERNEL_* variables
compat already deals with defining CONFIG_COMPAT_KERNEL_* variables for us for both makefiles and C / header files. The C / header file usage was fixed in the last commit, this removes internal usage we had for the Makefiles in preference over the same mechanism. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b5423ee1..5393b404 100644
--- a/Makefile
+++ b/Makefile
@@ -76,9 +76,14 @@ export CREL_PRE:=.compat_autoconf_
export CREL_CHECK:=$(CREL_PRE)$(CREL)
include $(PWD)/$(COMPAT_CONFIG_CW)
+
+# Recursion lets us ensure we get this file included.
+# Trick is to run make -C $(PWD) modules later.
-include $(PWD)/$(COMPAT_CONFIG)
-all: modules
+all: $(CREL_CHECK)
+
+$COMPAT_CONFIG: ;
modules: $(CREL_CHECK)
@./scripts/check_config.sh
@@ -100,6 +105,7 @@ $(CREL_CHECK):
@./scripts/check_config.sh
@touch $@
@md5sum $(COMPAT_CONFIG_CW) > $(CONFIG_CHECK)
+ make -C $(PWD) modules
btinstall: btuninstall bt-install-modules