summaryrefslogtreecommitdiff
path: root/recipes/zd1211/zd1211-r85/makefile.patch
blob: adc2bd416d05ef20248d6ca773f513a6c8e127c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- zd1211-driver-r83/Makefile.orig	2006-09-02 16:00:00.000000000 +0200
+++ zd1211-driver-r83/Makefile	2006-09-02 16:01:57.000000000 +0200
@@ -4,10 +4,10 @@
 #
 #
 
-CC=gcc
-CPP=g++
-LD=ld
-rM=rm -f -r
+#CC=gcc
+#CPP=g++
+#LD=ld
+#rM=rm -f -r
 
 VERSION := $(shell uname -r)
 MODPATH := /lib/modules/$(VERSION)
@@ -15,14 +15,14 @@
 # if the kernel is 2.6.x, turn on this
 KERN_26=y
 
-KERNEL_SOURCE=$(MODPATH)/source
+KERNEL_SOURCE ?= $(MODPATH)/source
 #KERNEL_SOURCE=/usr/src/linux
 
 # set to 1 for zd1211b
 ZD1211REV_B=0
 
 SRC_DIR=src
-DEFINES=-D__KERNEL__ -DMODULE=1
+DEFINES ?= -D__KERNEL__ -DMODULE=1
 
 
 
@@ -228,9 +228,9 @@
 	depmod -a $(VERSION)
 
 #for apdbg
-	gcc -o apdbg apdbg.c
-	chmod +x apdbg
-	cp ./apdbg /sbin/apdbg   
+#	gcc -o apdbg apdbg.c
+#	chmod +x apdbg
+#	cp ./apdbg /sbin/apdbg   
 
 clean:
 	rm -rf .tmp_versions .*.cmd *.ko *.mod.c *.mod.o *.o $(SRC_DIR)/*.o  $(SRC_DIR)/.*.o.cmd