1 include $(TOPDIR
)/rules.mk
5 LINUX_KERNEL_MD5SUM
:=38f4d0830e95a20f4bfed17622d5557c
10 ATM_FIRMWARE_VERSION
:=0.4
11 ATM_FIRMWARE_DIR
=sangam-atm-firmware-
$(ATM_FIRMWARE_VERSION
)
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 \
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 \
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
))
29 include ..
/generic-
$(KERNEL
)/modules.mk
33 $(LINUX_DIR
)/.patched
: $(LINUX_DIR
)/.unpacked
34 [ -d ..
/generic-
$(KERNEL
)/patches
] && $(PATCH
) $(LINUX_DIR
) ..
/generic-
$(KERNEL
)/patches
$(MAKE_TRACE
)
35 [ -d .
/patches
] && $(PATCH
) $(LINUX_DIR
) .
/patches
$(MAKE_TRACE
)
36 @
$(CP
) config
$(LINUX_DIR
)/.config
40 ###############################################
41 # ATM firmware for the DSL modem
42 ###############################################
44 DOWNLOAD_SITE
=http
://openwrt.org
/downloads
/sources
45 # extracted from netgear DG834B V1.0.5 GPL release
46 ATM_FIRMWARE_FILE
=$(ATM_FIRMWARE_DIR
).
tar.gz
47 ATM_FIRMWARE_MD5SUM
=8bfcb31109796502d66b11baaeb2fba6
49 $(DL_DIR
)/$(ATM_FIRMWARE_FILE
):
50 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(ATM_FIRMWARE_FILE
) $(ATM_FIRMWARE_MD5SUM
) $(DOWNLOAD_SITE
) $(MAKE_TRACE
)
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
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
) -
61 linux-dirclean
: drivers-clean
64 rm -rf
$(BUILD_DIR
)/$(ATM_FIRMWARE_DIR
)