aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjal2 <jal2>2004-03-26 21:53:25 +0000
committerjal2 <jal2>2004-03-26 21:53:25 +0000
commit405c185088d70529866da027e8133b56831f9ece (patch)
tree237a451530d237cf97bf4d0ccf2e3fd5a4e26eb2 /Makefile
parentb02305758bbc742d04267e73f97d452f33a77187 (diff)
if no file fw-pkg*.h is avail., compile for firmware download, create non-firmware distribution tgz, too
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2c70caa..80e754d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-#$Id: Makefile,v 1.26 2004/03/18 20:54:57 jal2 Exp $
+#$Id: Makefile,v 1.27 2004/03/26 21:53:25 jal2 Exp $
VERSION = 0.12beta9
@@ -10,8 +10,11 @@ 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
+# compile for firmware download from user space
+# if no firmware header files are available
+ifeq ($(wildcard fw-pkg*.h),)
+FW_DL += -DCONFIG_AT76C503_FIRMWARE_DOWNLOAD
+endif
MODULES = at76c503.o usbdfu.o at76c503-i3861.o at76c503-rfmd.o at76c503-rfmd-acc.o \
at76c505-rfmd.o at76c503-i3863.o at76c505-rfmd2958.o
@@ -19,15 +22,16 @@ MODULES = at76c503.o usbdfu.o at76c503-i3861.o at76c503-rfmd.o at76c503-rfmd-acc
SRCS = at76c503.c usbdfu.c at76c503-rfmd.c at76c505-rfmd.c at76c503-rfmd-acc.c \
at76c503-i3861.c at76c503-i3863.c at76c505-rfmd2958.c
-HDRS = at76c503.h ieee802_11.h usbdfu.h at76c503-fw_skel.c \
- fw-pkg-505-rfmd2958-1.101.0-86.h fw-pkg-i3863.h \
+HDRS = at76c503.h ieee802_11.h usbdfu.h at76c503-fw_skel.c fw-empty.h
+FW_HDRS= fw-pkg-505-rfmd2958-1.101.0-86.h fw-pkg-i3863.h \
fw-pkg-rfmd-1.101.0-84.h fw-pkg-i3861.h \
fw-pkg-rfmd-0.90.2-140.h \
- fw-pkg-r505.h fw-empty.h fw-pkg-rfmd-acc-1.101.0-84.h
+ fw-pkg-r505.h fw-pkg-rfmd-acc-1.101.0-84.h
SCRIPTS = fwbin2h fwbin2pkg.sh fwconvert fwversion
-DISTFILES = $(SRCS) $(HDRS) Makefile README COPYING CHANGELOG gen_fw.c
+DISTFILES = $(SRCS) $(HDRS) $(FW_HDRS) Makefile README COPYING \
+ CHANGELOG gen_fw.c
TOPDISTFILES =
DISTNAME = at76c503-$(VERSION)
DISTDIR = ../dist
@@ -128,5 +132,7 @@ dist:
mkdir $(DISTNAME)/scripts
(cd scripts ; cp -aR $(SCRIPTS) ../$(DISTNAME)/scripts)
tar zcvf $(DISTNAME).tar.gz $(DISTNAME)
+ cd $(DISTNAME) ; rm $(FW_HDRS) ; cd ..
+ tar zcvf $(DISTNAME)_no_fw.tar.gz $(DISTNAME)
rm -rf $(DISTNAME)