initial attempt at cleaning up the bcm63xx stuff
[openwrt.git] / target / linux / ar7-2.4 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 LINUX_VERSION:=2.4.32
10 LINUX_RELEASE:=1
11 LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
12
13 include ./config
14 include $(INCLUDE_DIR)/kernel.mk
15
16 ATM_FIRMWARE_VERSION:=0.4
17 ATM_FIRMWARE_DIR=sangam-atm-firmware-$(ATM_FIRMWARE_VERSION)
18
19 $(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
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_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
23 ))
24
25 $(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
26 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
27 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
28 $(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
29 ))
30
31 $(eval $(call KMOD_template,CPMAC,cpmac,\
32 $(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
33 ,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
34
35 include $(INCLUDE_DIR)/kernel-build.mk
36
37
38 $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
39 [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches
40 [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches
41 @$(CP) config $(LINUX_DIR)/.config
42 touch $@
43
44
45 ###############################################
46 # ATM firmware for the DSL modem
47 ###############################################
48
49 DOWNLOAD_SITE=http://openwrt.org/downloads/downloads
50 # extracted from netgear DG834B V1.0.5 GPL release
51 ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
52 ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
53
54 $(DL_DIR)/$(ATM_FIRMWARE_FILE):
55 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE)
56
57 download: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
58 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
59 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
60 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
61
62 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
63 -mkdir -p $(BUILD_DIR)
64 zcat $(DL_DIR)/$(ATM_FIRMWARE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
65 touch $@
66
67 linux-dirclean: drivers-clean
68
69 drivers-clean: FORCE
70 rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
71
72
This page took 0.053429 seconds and 5 git commands to generate.