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.10.
tar.gz
14 LINUX_ET_MD5SUM
=408901f0b3c672ea0f353795391f07f6
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
)/.depend_done
: $(LINUX_DIR
)/.drivers-unpacked
23 $(LINUX_DIR
)/.modules_done
: $(LINUX_DIR
)/.drivers-unpacked
25 $(LINUX_DIR
)/.drivers-unpacked
: $(LINUX_DIR
)/.unpacked
26 -mkdir
-p
$(BUILD_DIR
)
27 zcat
$(DL_DIR
)/$(LINUX_BINARY_WL_DRIVER
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
28 zcat
$(DL_DIR
)/$(LINUX_ET_DRIVER
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
29 # copy binary wlan driver
30 mkdir
-p
$(LINUX_DIR
)/drivers
/net
/{et
,wl
}
31 cp
-a
$(BUILD_DIR
)/wl
/*.o
$(LINUX_DIR
)/drivers
/net
/wl
32 # copy proprietary et source
33 cp
-a
$(BUILD_DIR
)/et
/* $(LINUX_DIR
)/drivers
/net
/et
34 mkdir
-p
$(LINUX_DIR
)/arch
/mips
/bcm947xx
/include/
35 cp
-a
$(BUILD_DIR
)/et
/*.h
$(LINUX_DIR
)/arch
/mips
/bcm947xx
/include/
38 linux-dirclean
: drivers-clean
41 rm -rf
$(BUILD_DIR
)/{wl
,et
}