fix segfault in locking utility
[openwrt.git] / openwrt / target / linux / brcm-2.4 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 LINUX_VERSION:=2.4.32
4 LINUX_RELEASE:=1
5 LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
6
7 include ../rules.mk
8 include ./config
9
10 # broadcom specific kmod packages
11 $(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
12 $(MODULES_DIR)/kernel/drivers/net/wl/wl.o \
13 ,CONFIG_WL,,20,wl))
14
15 $(eval $(call KMOD_template,BRCM_WL2,brcm-wl2,\
16 $(MODULES_DIR)/kernel/drivers/net/wl2/wl.o \
17 ,CONFIG_WL,,20,wl))
18
19 $(eval $(call KMOD_template,LP,lp,\
20 $(MODULES_DIR)/kernel/drivers/parport/parport.o \
21 $(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
22 $(MODULES_DIR)/kernel/drivers/char/lp.o \
23 $(MODULES_DIR)/kernel/drivers/char/ppdev.o \
24 ,CONFIG_PARPORT,,50,parport parport_splink lp))
25
26 include ../generic-$(KERNEL)/modules.mk
27 include ../kernel.mk
28
29
30 $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
31 [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
32 [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
33 @$(CP) config $(LINUX_DIR)/.config
34 touch $@
35
36
37 ###############################################
38 # Proprietary driver for BCM43xx
39 ###############################################
40
41 LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/sources
42 # proprietary driver, extracted from Linksys GPL sourcetree WRT54GS 4.70.6
43 LINUX_BINARY_WL_DRIVER=kernel-binary-wl-0.6.tar.gz
44 LINUX_BINARY_WL_MD5SUM=4fc1d5b46bcb7a17d6d5dd31da9c8d7f
45
46 $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
47 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
48
49 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER)
50 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
51 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
52 $(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.drivers-installed
53
54 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
55 -mkdir -p $(BUILD_DIR)
56 zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
57 # copy binary wlan driver
58 mkdir -p $(LINUX_DIR)/drivers/net/wl
59 $(CP) $(BUILD_DIR)/kernel-binary-wl/old/*.o $(LINUX_DIR)/drivers/net/wl
60 $(CP) $(BUILD_DIR)/kernel-binary-wl/new/*.o $(LINUX_DIR)/drivers/net/wl2
61 touch $@
62
63 $(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done
64 mkdir -p $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl
65 mkdir -p $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl2
66 @-[ -f $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl/wl.o ] || $(CP) $(LINUX_DIR)/drivers/net/wl/wl.o $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl/
67 @-[ -f $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl2/wl.o ] || $(CP) $(LINUX_DIR)/drivers/net/wl2/wl.o $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl2/
68 touch $@
69
70 linux-dirclean: drivers-clean
71
72 drivers-clean:
73 rm -rf $(BUILD_DIR)/wl
This page took 0.044225 seconds and 5 git commands to generate.