enable wlc by default
[openwrt.git] / target / linux / ar7-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 ./config
8 include $(INCLUDE_DIR)/kernel.mk
9
10 ATM_FIRMWARE_VERSION:=0.4
11 ATM_FIRMWARE_DIR=sangam-atm-firmware-$(ATM_FIRMWARE_VERSION)
12
13 $(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
14 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
15 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
16 $(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
17 ))
18
19 $(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
20 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
21 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
22 $(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
23 ))
24
25 $(eval $(call KMOD_template,CPMAC,cpmac,\
26 $(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
27 ,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
28
29 include $(INCLUDE_DIR)/kernel-build.mk
30
31
32 $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
33 [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches
34 [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches
35 @$(CP) config $(LINUX_DIR)/.config
36 touch $@
37
38
39 ###############################################
40 # ATM firmware for the DSL modem
41 ###############################################
42
43 DOWNLOAD_SITE=http://openwrt.org/downloads/sources
44 # extracted from netgear DG834B V1.0.5 GPL release
45 ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
46 ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
47
48 $(DL_DIR)/$(ATM_FIRMWARE_FILE):
49 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE)
50
51 source: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
52 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
53 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
54 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
55
56 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
57 -mkdir -p $(BUILD_DIR)
58 zcat $(DL_DIR)/$(ATM_FIRMWARE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
59 touch $@
60
61 linux-dirclean: drivers-clean
62
63 drivers-clean: FORCE
64 rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
65
66
This page took 0.043744 seconds and 5 git commands to generate.