1 include $(TOPDIR
)/rules.mk
5 LINUX_KERNEL_MD5SUM
:=38f4d0830e95a20f4bfed17622d5557c
10 # broadcom specific kmod packages
11 $(eval
$(call KMOD_template
,BRCM_WL
,brcm-wl
,\
12 $(MODULES_DIR
)/kernel
/drivers
/net
/wl
/wl.o \
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
))
22 include ..
/generic-
$(KERNEL
)/modules.mk
26 $(LINUX_DIR
)/.patched
: $(LINUX_DIR
)/.unpacked
27 [ -d ..
/generic-
$(KERNEL
)/patches
] && $(PATCH
) $(LINUX_DIR
) ..
/generic-
$(KERNEL
)/patches
28 [ -d .
/patches
] && $(PATCH
) $(LINUX_DIR
) .
/patches
29 @
$(CP
) config
$(LINUX_DIR
)/.config
33 ###############################################
34 # Proprietary driver for BCM43xx
35 ###############################################
37 LINUX_BINARY_DRIVER_SITE
=http
://downloads.openwrt.org
/sources
38 # proprietary driver, extracted from Linksys GPL sourcetree WRT54GS 4.70.6
39 LINUX_BINARY_WL_DRIVER
=kernel-binary-wl-0.7.
tar.gz
40 LINUX_BINARY_WL_MD5SUM
=ff50130914790cbae9b73a13513da5ee
42 $(DL_DIR
)/$(LINUX_BINARY_WL_DRIVER
):
43 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(LINUX_BINARY_WL_DRIVER
) $(LINUX_BINARY_WL_MD5SUM
) $(LINUX_BINARY_DRIVER_SITE
)
45 $(LINUX_DIR
)/.unpacked
: $(DL_DIR
)/$(LINUX_BINARY_WL_DRIVER
)
46 $(LINUX_DIR
)/.depend_done
: $(LINUX_DIR
)/.drivers-unpacked
47 $(LINUX_DIR
)/.modules_done
: $(LINUX_DIR
)/.drivers-unpacked
48 $(STAMP_DIR
)/.linux-compile
: $(LINUX_DIR
)/.drivers-installed
50 $(LINUX_DIR
)/.drivers-unpacked
: $(LINUX_DIR
)/.unpacked
51 -mkdir
-p
$(BUILD_DIR
)
52 zcat
$(DL_DIR
)/$(LINUX_BINARY_WL_DRIVER
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
53 # copy binary wlan driver
54 mkdir
-p
$(LINUX_DIR
)/drivers
/net
/wl
55 $(CP
) $(BUILD_DIR
)/kernel-binary-wl
/*.o
$(LINUX_DIR
)/drivers
/net
/wl
58 $(LINUX_DIR
)/.drivers-installed
: $(LINUX_DIR
)/.modules_done
59 mkdir
-p
$(LINUX_BUILD_DIR
)/modules
/lib
/modules
/2.4.32/kernel
/drivers
/net
/wl
60 @
-[ -f
$(LINUX_BUILD_DIR
)/modules
/lib
/modules
/2.4.32/kernel
/drivers
/net
/wl
/wl.o
] ||
$(CP
) $(LINUX_DIR
)/drivers
/net
/wl
/wl.o
$(LINUX_BUILD_DIR
)/modules
/lib
/modules
/2.4.32/kernel
/drivers
/net
/wl
/
63 linux-dirclean
: drivers-clean
66 rm -rf
$(BUILD_DIR
)/kernel-binary-wl