update the 2.4 kernel to 2.4.32. it seems pl2303 has the fixes from 2.6, so we now...
[openwrt/staging/mkresin.git] / openwrt / target / linux / linux-2.4 / broadcom.mk
1 #############################################################
2 # $Id$
3 #
4 # Makefile for the proprietary Broadcom drivers
5 #
6 #############################################################
7
8 # broadcom specific kmod packages
9 $(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
10 $(MODULES_DIR)/kernel/drivers/net/wl/wl.o \
11 ,CONFIG_WL,,10,wl))
12
13 $(eval $(call KMOD_template,BRCM_WL2,brcm-wl2,\
14 $(BUILD_DIR)/wl/wl2/wl.o \
15 ,CONFIG_WL,,10,wl))
16
17 $(eval $(call KMOD_template,BRCM_ET,brcm-et,\
18 $(MODULES_DIR)/kernel/drivers/net/et/et.o \
19 ,CONFIG_ET,,10,et))
20
21 $(eval $(call KMOD_template,LP,lp,\
22 $(MODULES_DIR)/kernel/drivers/parport/parport.o \
23 $(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
24 $(MODULES_DIR)/kernel/drivers/char/lp.o \
25 $(MODULES_DIR)/kernel/drivers/char/ppdev.o \
26 ,CONFIG_PARPORT,,50,parport parport_splink lp))
27
28 LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/sources
29 # proprietary driver, extracted from Linksys GPL sourcetree WRT54GS 4.70.6
30 LINUX_BINARY_WL_DRIVER=kernel-binary-wl-0.5.tar.gz
31 LINUX_BINARY_WL_MD5SUM=78e839842bdc04022bb44469f92b1131
32 LINUX_ET_DRIVER=kernel-source-et-0.12.tar.gz
33 LINUX_ET_MD5SUM=14c6810cd3ee74b5f9f86b98fdaaeb18
34
35 $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
36 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
37
38 $(DL_DIR)/$(LINUX_ET_DRIVER):
39 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_ET_DRIVER) $(LINUX_ET_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
40
41 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) $(DL_DIR)/$(LINUX_ET_DRIVER)
42 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
43 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
44 $(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.drivers-installed
45
46 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
47 -mkdir -p $(BUILD_DIR)
48 zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
49 zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
50 # copy binary wlan driver
51 mkdir -p $(LINUX_DIR)/drivers/net/{et,wl}
52 cp -fpR $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
53 # copy proprietary et source
54 cp -fpR $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et
55 mkdir -p $(LINUX_DIR)/arch/mips/bcm947xx/include/
56 cp -fpR $(BUILD_DIR)/et/*.h $(LINUX_DIR)/arch/mips/bcm947xx/include/
57 touch $@
58
59 $(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done
60 mkdir -p $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl
61 @-[ -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/
62 touch $@
63
64 linux-dirclean: drivers-clean
65
66 drivers-clean:
67 rm -rf $(BUILD_DIR)/{wl,et}