1 #############################################################
4 # Makefile for the proprietary Broadcom drivers
6 #############################################################
8 LINUX_BINARY_DRIVER_SITE
=http
://openwrt.org
/downloads
/
10 # proprietary driver, extracted from asus GPL sourcetree GPL_1941.zip
11 LINUX_BINARY_WL_DRIVER
=kernel-binary-wl-0.3.
tar.gz
12 LINUX_BINARY_WL_MD5SUM
=cc45df670bcfb4e74a709b9d7beba636
13 LINUX_ET_DRIVER
=kernel-source-et-0.9.
tar.gz
14 LINUX_ET_MD5SUM
=eba31483e5ff4f8420827538ab452b7c
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
)
19 $(DL_DIR
)/$(LINUX_ET_DRIVER
):
20 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(LINUX_ET_DRIVER
) $(LINUX_ET_MD5SUM
) $(LINUX_BINARY_DRIVER_SITE
)
22 $(LINUX_DIR
)/.patched
: $(LINUX_DIR
)/.drivers-unpacked
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/
37 linux-dirclean
: drivers-clean
40 rm -rf
$(BUILD_DIR
)/wl
41 rm -rf
$(BUILD_DIR
)/et