2006-06-27 02:35:46 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-01-10 20:43:00 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
LINUX_VERSION:=2.4.32
|
|
|
|
LINUX_RELEASE:=1
|
|
|
|
LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
|
|
|
|
|
|
|
include ./config
|
2006-06-21 04:32:39 +02:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-01-10 20:43:00 +01:00
|
|
|
|
|
|
|
ATM_FIRMWARE_VERSION:=0.4
|
|
|
|
ATM_FIRMWARE_DIR=sangam-atm-firmware-$(ATM_FIRMWARE_VERSION)
|
|
|
|
|
|
|
|
$(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
|
|
|
|
$(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
|
|
|
|
,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
|
2006-02-02 00:53:19 +01:00
|
|
|
$(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
|
2006-01-10 20:43:00 +01:00
|
|
|
))
|
|
|
|
|
|
|
|
$(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
|
|
|
|
$(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
|
|
|
|
,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
|
2006-02-02 00:53:19 +01:00
|
|
|
$(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
|
2006-01-10 20:43:00 +01:00
|
|
|
))
|
|
|
|
|
|
|
|
$(eval $(call KMOD_template,CPMAC,cpmac,\
|
|
|
|
$(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
|
|
|
|
,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
|
|
|
|
|
2006-06-21 04:32:39 +02:00
|
|
|
include $(INCLUDE_DIR)/kernel-build.mk
|
2006-01-10 20:43:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
2006-05-10 22:32:22 +02:00
|
|
|
[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches
|
|
|
|
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches
|
2006-02-02 00:53:19 +01:00
|
|
|
@$(CP) config $(LINUX_DIR)/.config
|
2006-01-10 20:43:00 +01:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
|
|
|
|
###############################################
|
|
|
|
# ATM firmware for the DSL modem
|
|
|
|
###############################################
|
2005-07-10 19:28:44 +02:00
|
|
|
|
2006-07-21 19:00:14 +02:00
|
|
|
DOWNLOAD_SITE=http://openwrt.org/downloads/downloads
|
2005-07-10 19:28:44 +02:00
|
|
|
# extracted from netgear DG834B V1.0.5 GPL release
|
|
|
|
ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
|
2005-10-18 01:13:26 +02:00
|
|
|
ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
|
2005-07-10 19:28:44 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(ATM_FIRMWARE_FILE):
|
2006-05-10 22:32:22 +02:00
|
|
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE)
|
2005-07-10 19:28:44 +02:00
|
|
|
|
2006-07-21 19:00:14 +02:00
|
|
|
download: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
|
2005-07-10 19:28:44 +02:00
|
|
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
|
|
|
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
|
|
|
$(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
|
|
|
|
|
|
|
|
$(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
|
|
|
|
-mkdir -p $(BUILD_DIR)
|
|
|
|
zcat $(DL_DIR)/$(ATM_FIRMWARE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
touch $@
|
|
|
|
|
2005-11-02 23:44:54 +01:00
|
|
|
linux-dirclean: drivers-clean
|
|
|
|
|
2006-06-01 01:29:05 +02:00
|
|
|
drivers-clean: FORCE
|
2005-11-02 23:44:54 +01:00
|
|
|
rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
|
|
|
|
|
2005-07-10 19:28:44 +02:00
|
|
|
|