aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjal2 <jal2>2004-01-17 12:15:44 +0000
committerjal2 <jal2>2004-01-17 12:15:44 +0000
commit0e1744963cbcce5a6cb17d68c33b928185f1c189 (patch)
tree25ee295061dd50a3ecf99ed4134273ab68145e61 /Makefile
parent70db03cb0fdd9d6085b05122ea61ffaada34514f (diff)
0.12beta6, added include <version.h> for 2.6.x, fixed firmware download file names, prepared Makefile for fw download config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9074353..85e6353 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-#$Id: Makefile,v 1.21 2004/01/10 20:31:17 jal2 Exp $
+#$Id: Makefile,v 1.22 2004/01/17 12:15:44 jal2 Exp $
-VERSION = 0.12beta5
+VERSION = 0.12beta6
CC=gcc
@@ -8,6 +8,10 @@ KERNEL_VERSION = $(shell uname -r)
KERNEL_SRC = /lib/modules/$(KERNEL_VERSION)/build
KERNEL_HEADERS = $(KERNEL_SRC)/include
+FW_DL=
+
+# uncomment to compile for firmware download from user space
+#FW_DL += -DCONFIG_AT76C503_FIRMWARE_DOWNLOAD
MODULES = at76c503.o usbdfu.o at76c503-i3861.o at76c503-rfmd.o at76c503-rfmd-acc.o \
at76c505-rfmd.o at76c503-i3863.o at76c505-rfmd2958.o
@@ -49,7 +53,7 @@ modules:
mkdir -p .tmp_versions
-cp $(KERNEL_SRC)/.tmp_versions/*.mod $(MODVERDIR)
$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(SRCDIR) MODVERDIR=$(MODVERDIR) \
- EXTRA_CFLAGS="-g -DDRIVER_VERSION=\\\"v$(VERSION)\\\"" modules
+ EXTRA_CFLAGS="-g -DDRIVER_VERSION=\\\"v$(VERSION)\\\" $(FW_DL)" modules
install: all
mkdir -p $(MODULE_DIR)
@@ -67,6 +71,7 @@ CPPFLAGS = -D__KERNEL__ \
-DDRIVER_VERSION=\"v$(VERSION)\" \
-I$(KERNEL_HEADERS)
CFLAGS = -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing \
+ $(FW_DL) \
-fno-common -Wno-sign-compare -Wno-unused
MODVER = $(shell if cat $(KERNEL_HEADERS)/linux/autoconf.h 2>/dev/null | \