fix root filesystem path
[openwrt.git] / target / linux / brcm-2.4 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 LINUX_VERSION:=2.4.32
4 LINUX_RELEASE:=1
5 LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
6
7 include ../rules.mk
8 include ./config
9
10 # broadcom specific kmod packages
11 $(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
12 $(MODULES_DIR)/kernel/drivers/net/wl/wl.o \
13 ,CONFIG_WL,,20,wl))
14
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 include ../generic-$(KERNEL)/modules.mk
23 include ../kernel.mk
24
25
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
30 touch $@
31
32
33 ###############################################
34 # Proprietary driver for BCM43xx
35 ###############################################
36
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
41
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)
44
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
49
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
56 touch $@
57
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/
61 touch $@
62
63 linux-dirclean: drivers-clean
64
65 drivers-clean:
66 rm -rf $(BUILD_DIR)/kernel-binary-wl
This page took 0.051854 seconds and 5 git commands to generate.