2f2f92bda1c510dfb12ea327be420817d711fbcb
[openwrt.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,DIAG,diag,\
10 $(MODULES_DIR)/kernel/drivers/net/diag/diag.o \
11 ))
12 $(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
13 $(MODULES_DIR)/kernel/drivers/net/wl/wl.o \
14 ,CONFIG_WL))
15 $(eval $(call KMOD_template,BRCM_ET,brcm-et,\
16 $(MODULES_DIR)/kernel/drivers/net/et/et.o \
17 ,CONFIG_ET))
18 $(eval $(call KMOD_template,LP,lp,\
19 $(MODULES_DIR)/kernel/drivers/parport/parport.o \
20 $(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
21 $(MODULES_DIR)/kernel/drivers/char/lp.o \
22 ,CONFIG_PARPORT))
23
24
25 LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/
26
27 # proprietary driver, extracted from asus GPL sourcetree GPL_1941.zip
28 LINUX_BINARY_WL_DRIVER=kernel-binary-wl-0.3.tar.gz
29 LINUX_BINARY_WL_MD5SUM=cc45df670bcfb4e74a709b9d7beba636
30 LINUX_ET_DRIVER=kernel-source-et-0.10.tar.gz
31 LINUX_ET_MD5SUM=408901f0b3c672ea0f353795391f07f6
32
33 $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
34 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE)
35
36 $(DL_DIR)/$(LINUX_ET_DRIVER):
37 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_ET_DRIVER) $(LINUX_ET_MD5SUM) $(LINUX_BINARY_DRIVER_SITE)
38
39 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
40 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
41
42 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
43 -mkdir -p $(BUILD_DIR)
44 zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
45 zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
46 # copy binary wlan driver
47 mkdir -p $(LINUX_DIR)/drivers/net/{et,wl}
48 cp -a $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
49 # copy proprietary et source
50 cp -a $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et
51 mkdir -p $(LINUX_DIR)/arch/mips/bcm947xx/include/
52 cp -a $(BUILD_DIR)/et/*.h $(LINUX_DIR)/arch/mips/bcm947xx/include/
53 touch $@
54
55 linux-dirclean: drivers-clean
56
57 drivers-clean:
58 rm -rf $(BUILD_DIR)/{wl,et}
This page took 0.041743 seconds and 3 git commands to generate.