1 #############################################################
4 # Makefile for the AR7-specific kernel/driver stuff
6 #############################################################
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.1
11 ATM_FIRMWARE_FILE
=$(ATM_FIRMWARE_DIR
).
tar.gz
12 ATM_FIRMWARE_MD5SUM
=dc1be257dcb536b6fa02a02c81956e7e
14 $(DL_DIR
)/$(ATM_FIRMWARE_FILE
):
15 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(ATM_FIRMWARE_FILE
) $(ATM_FIRMWARE_MD5SUM
) $(DOWNLOAD_SITE
)
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
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
) -
27 $(eval
$(call KMOD_template
,SANGAM_ATM
,sangam-atm
,\
28 $(MODULES_DIR
)/kernel
/drivers
/atm
/tiatm.o \
29 ,CONFIG_MIPS_SANGAM_ATM
,kmod-atm
,60,tiatm
, \
30 cp
$(BUILD_DIR
)/$(ATM_FIRMWARE_DIR
)/*.bin
$$(I_SANGAM_ATM
)/lib
/modules
/ \
33 $(eval
$(call KMOD_template
,CPMAC
,cpmac
,\
34 $(MODULES_DIR
)/kernel
/drivers
/net
/avalanche_cpmac
/avalanche_cpmac.o \
35 ,CONFIG_MIPS_AVALANCHE_CPMAC
))