aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>2008-01-20 16:25:40 -0500
committerLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>2008-01-20 16:25:40 -0500
commit8bf4c09b99cccefb7502eb695f85c70f302b2cfe (patch)
treed717da427f9bb6bf66c293553d5bf2e755204975
parent4ccd55e1d3076acf71e2bcabce6a26e9bd02a00d (diff)
downloadcompat-wireless-2.6-old-8bf4c09b99cccefb7502eb695f85c70f302b2cfe.tar.gz
Fixes a few bugs on the build process:
* ensure we use our own config to determine which drivers to build. Be paranoid and include config.mk once in the beginning and another time during the build process * Fixes issues during install target users were facing Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
-rw-r--r--Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 63fe077..80732ce 100644
--- a/Makefile
+++ b/Makefile
@@ -8,19 +8,12 @@ endif
KLIB_BUILD ?= $(KLIB)/build
MADWIFI=$(shell modprobe -l ath_pci)
-# These exported as they are used by the scripts
-# to check config and compat autoconf
-export COMPAT_CONFIG=config.mk
-export CONFIG_CHECK=.$(COMPAT_CONFIG)_md5sum.txt
-export COMPAT_AUTOCONF=include/linux/compat_autoconf.h
-export CREL=$(shell cat $(PWD)/compat-release)
-export CREL_CHECK:=.compat_autoconf_$(CREL)
-
-include $(PWD)/$(COMPAT_CONFIG)
ifneq ($(KERNELRELEASE),)
-NOSTDINC_FLAGS := -I$(PWD)/include/ -include $(M)/include/net/compat.h $(CFLAGS)
+include $(src)/$(COMPAT_CONFIG)
+
+NOSTDINC_FLAGS := -I$(src)/include/ -include $(M)/include/net/compat.h $(CFLAGS)
obj-y := net/wireless/ net/mac80211/ net/ieee80211/ \
drivers/ssb/ \
@@ -28,8 +21,19 @@ obj-y := net/wireless/ net/mac80211/ net/ieee80211/ \
drivers/net/wireless/
else
+
export PWD := $(shell pwd)
+# These exported as they are used by the scripts
+# to check config and compat autoconf
+export COMPAT_CONFIG=config.mk
+export CONFIG_CHECK=.$(COMPAT_CONFIG)_md5sum.txt
+export COMPAT_AUTOCONF=include/linux/compat_autoconf.h
+export CREL=$(shell cat $(PWD)/compat-release)
+export CREL_CHECK:=.compat_autoconf_$(CREL)
+
+include $(PWD)/$(COMPAT_CONFIG)
+
all: modules
modules: $(CREL_CHECK)