sync the x86-2.6 config with the brcm-2.6 one
[openwrt.git] / target / linux / linux-2.4 / ar7.mk
1 #############################################################
2 # $Id$
3 #
4 # Makefile for the AR7-specific kernel/driver stuff
5 #
6 #############################################################
7
8 DOWNLOAD_SITE=http://openwrt.org/downloads/sources
9 # extracted from netgear DG834B V1.0.5 GPL release
10 ATM_FIRMWARE_DIR=sangam-atm-firmware-0.4
11 ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
12 ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
13
14 $(DL_DIR)/$(ATM_FIRMWARE_FILE):
15 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE) $(MAKE_TRACE)
16
17 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
18 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
19 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
20
21 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
22 -mkdir -p $(BUILD_DIR)
23 zcat $(DL_DIR)/$(ATM_FIRMWARE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 touch $@
25
26 linux-dirclean: drivers-clean
27
28 drivers-clean:
29 rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
30
31
32 $(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
33 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
34 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
35 cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
36 ))
37
38 $(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
39 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
40 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
41 cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
42 ))
43
44 $(eval $(call KMOD_template,CPMAC,cpmac,\
45 $(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
46 ,CONFIG_MIPS_AVALANCHE_CPMAC),,10,avalanche_cpmac)
47
This page took 0.059451 seconds and 5 git commands to generate.