source: trunk/openwrt/target/linux/linux-2.4/broadcom.mk @ 1097

Last change on this file since 1097 was 1097, checked in by nbd, 12 years ago

update et source to 0.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#############################################################
2# $Id$
3#
4# Makefile for the proprietary Broadcom drivers
5#
6#############################################################
7
8LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/
9
10# proprietary driver, extracted from asus GPL sourcetree GPL_1941.zip
11LINUX_BINARY_WL_DRIVER=kernel-binary-wl-0.3.tar.gz
12LINUX_BINARY_WL_MD5SUM=cc45df670bcfb4e74a709b9d7beba636
13LINUX_ET_DRIVER=kernel-source-et-0.9.tar.gz
14LINUX_ET_MD5SUM=eba31483e5ff4f8420827538ab452b7c
15
16$(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
17        $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE)
18
19$(DL_DIR)/$(LINUX_ET_DRIVER):
20        $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_ET_DRIVER) $(LINUX_ET_MD5SUM) $(LINUX_BINARY_DRIVER_SITE)
21       
22$(LINUX_DIR)/.patched: $(LINUX_DIR)/.drivers-unpacked
23
24$(LINUX_DIR)/.drivers-unpacked:
25        -mkdir -p $(BUILD_DIR)
26        zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
27        zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
28        # copy binary wlan driver
29        mkdir $(LINUX_DIR)/drivers/net/{et,wl}
30        cp -a $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
31        # copy proprietary et source
32        cp -a $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et
33        mkdir -p $(LINUX_DIR)/arch/mips/bcm947xx/include/
34        cp -a $(BUILD_DIR)/et/*.h $(LINUX_DIR)/arch/mips/bcm947xx/include/
35        touch $@
36
37linux-dirclean: drivers-clean
38
39drivers-clean:
40        rm -rf $(BUILD_DIR)/wl
41        rm -rf $(BUILD_DIR)/et
42
Note: See TracBrowser for help on using the repository browser.