source: trunk/package/ar7-atm/Makefile @ 20039

Last change on this file since 20039 was 20039, checked in by florian, 7 years ago

[ar7] add support for new ar7-atm version D7.05.00.00 (#6515)

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=sangam_atm
12
13ifeq ($(CONFIG_AR7_ATM_FW_VERSION_705),y)
14PKG_VERSION:=D7.05.01.00
15PKG_MD5SUM:=42ee465be5cfbe9476fc25deb260d450
16PKG_RELEASE:=R1
17PATCH_DIR:=patches-$(PKG_VERSION)
18endif
19
20ifeq ($(CONFIG_AR7_ATM_FW_VERSION_704),y)
21PKG_VERSION:=D7.04.03.00
22PKG_MD5SUM:=3d76004e46f09e88931f91670cb420ad
23PKG_RELEASE:=R1
24PATCH_DIR:=patches-$(PKG_VERSION)
25endif
26
27ifeq ($(CONFIG_AR7_ATM_FW_VERSION_703),y)
28PKG_VERSION:=D7.03.01.00
29PKG_MD5SUM:=bc6e9c6adb1be25820c7ee661de8ca7d
30PKG_RELEASE:=R2
31PATCH_DIR:=patches-D7.04.03.00
32endif
33
34PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.bz2
35PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
36
37include $(INCLUDE_DIR)/package.mk
38
39define KernelPackage/sangam-atm/Default
40  SUBMENU:=Network Devices
41  DEPENDS:=@TARGET_ar7 +kmod-atm
42  TITLE:=AR7 ADSL driver
43  FILES:=$(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX)
44  AUTOLOAD:=$(call AutoLoad,50,tiatm)
45endef
46
47define KernelPackage/sangam-atm/config
48        source "$(SOURCE)/Config.in"
49endef
50
51define KernelPackage/sangam-atm-annex-a
52$(call KernelPackage/sangam-atm/Default)
53  TITLE+= (Annex A, ADSL over POTS)
54endef
55
56define KernelPackage/sangam-atm-annex-a/description
57 The AR7 ADSL driver for Annex A (ADSL over POTS).
58endef
59
60define KernelPackage/sangam-atm-annex-a/config
61$(call KernelPackage/sangam-atm/config)
62endef
63
64define KernelPackage/sangam-atm-annex-b
65$(call KernelPackage/sangam-atm/Default)
66  TITLE+= (Annex B, ADSL over ISDN)
67endef
68
69define KernelPackage/sangam-atm-annex-b/description
70 The AR7 ADSL driver for Annex B (ADSL over ISDN).
71endef
72
73define KernelPackage/sangam-atm-annex-a/config
74$(call KernelPackage/sangam-atm/config)
75endef
76
77define Build/Compile
78        $(MAKE) -C "$(LINUX_DIR)" \
79                CROSS_COMPILE="$(TARGET_CROSS)" \
80                ARCH="$(LINUX_KARCH)" \
81                SUBDIRS="$(PKG_BUILD_DIR)" \
82                modules
83endef
84
85define KernelPackage/sangam-atm-annex-a/install
86        mkdir -p $(1)/lib/firmware
87        $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/
88        ln -sf ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
89endef
90
91define KernelPackage/sangam-atm-annex-b/install
92        mkdir -p $(1)/lib/firmware
93        $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/
94        ln -sf ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
95endef
96
97$(eval $(call KernelPackage,sangam-atm-annex-a))
98$(eval $(call KernelPackage,sangam-atm-annex-b))
Note: See TracBrowser for help on using the repository browser.