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