OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2006-2014 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | include $(INCLUDE_DIR)/kernel.mk |
||
10 | |||
11 | PKG_NAME:=sangam_atm |
||
12 | |||
13 | ifeq ($(CONFIG_AR7_ATM_FW_VERSION_705),y) |
||
14 | PKG_VERSION:=D7.05.01.00 |
||
15 | PKG_HASH:=874b5baff92159e99cef0dfb839d6fdc124a46aef7374653064d29d9eee9a3c9 |
||
16 | PKG_RELEASE:=R1 |
||
17 | PATCH_DIR:=patches-$(PKG_VERSION) |
||
18 | endif |
||
19 | |||
20 | ifeq ($(CONFIG_AR7_ATM_FW_VERSION_704),y) |
||
21 | PKG_VERSION:=D7.04.03.00 |
||
22 | PKG_HASH:=af2e203e4c86f9a86cdd07d172897b07e66a25379376e8da4c1b14816f86b58f |
||
23 | PKG_RELEASE:=R1 |
||
24 | PATCH_DIR:=patches-$(PKG_VERSION) |
||
25 | endif |
||
26 | |||
27 | ifeq ($(CONFIG_AR7_ATM_FW_VERSION_703),y) |
||
28 | PKG_VERSION:=D7.03.01.00 |
||
29 | PKG_HASH:=2d156164ef5abbe10ffb2400ada4cef2035df3ba2b3f866f00bdede489861c4d |
||
30 | PKG_RELEASE:=R2 |
||
31 | PATCH_DIR:=patches-D7.04.03.00 |
||
32 | endif |
||
33 | |||
34 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.bz2 |
||
35 | PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources |
||
36 | |||
37 | PKG_FLAGS:=nonshared |
||
38 | |||
39 | include $(INCLUDE_DIR)/package.mk |
||
40 | |||
41 | define KernelPackage/sangam-atm/Default |
||
42 | SUBMENU:=Network Devices |
||
43 | DEPENDS:=@TARGET_ar7_generic +kmod-atm |
||
44 | TITLE:=AR7 ADSL driver |
||
45 | FILES:=$(PKG_BUILD_DIR)/tiatm.ko |
||
46 | AUTOLOAD:=$(call AutoLoad,50,tiatm) |
||
47 | MAINTAINER:=Florian Fainelli <florian@openwrt.org> |
||
48 | MENU:=1 |
||
49 | endef |
||
50 | |||
51 | define KernelPackage/sangam-atm/config |
||
52 | source "$(SOURCE)/Config.in" |
||
53 | endef |
||
54 | |||
55 | define KernelPackage/sangam-atm-annex-a |
||
56 | $(call KernelPackage/sangam-atm/Default) |
||
57 | TITLE+= (Annex A, ADSL over POTS) |
||
58 | endef |
||
59 | |||
60 | define KernelPackage/sangam-atm-annex-a/description |
||
61 | The AR7 ADSL driver for Annex A (ADSL over POTS). |
||
62 | endef |
||
63 | |||
64 | define KernelPackage/sangam-atm-annex-a/config |
||
65 | $(call KernelPackage/sangam-atm/config) |
||
66 | endef |
||
67 | |||
68 | define KernelPackage/sangam-atm-annex-b |
||
69 | $(call KernelPackage/sangam-atm/Default) |
||
70 | TITLE+= (Annex B, ADSL over ISDN) |
||
71 | endef |
||
72 | |||
73 | define KernelPackage/sangam-atm-annex-b/description |
||
74 | The AR7 ADSL driver for Annex B (ADSL over ISDN). |
||
75 | endef |
||
76 | |||
77 | define KernelPackage/sangam-atm-annex-a/config |
||
78 | $(call KernelPackage/sangam-atm/config) |
||
79 | endef |
||
80 | |||
81 | define Build/Compile |
||
82 | $(MAKE) -C "$(LINUX_DIR)" \ |
||
83 | $(KERNEL_MAKE_FLAGS) \ |
||
84 | SUBDIRS="$(PKG_BUILD_DIR)" \ |
||
85 | modules |
||
86 | endef |
||
87 | |||
88 | define KernelPackage/sangam-atm-annex-a/install |
||
89 | mkdir -p $(1)/lib/firmware |
||
90 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/ |
||
91 | $(LN) ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin |
||
92 | endef |
||
93 | |||
94 | define KernelPackage/sangam-atm-annex-b/install |
||
95 | mkdir -p $(1)/lib/firmware |
||
96 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/ |
||
97 | $(LN) ar0700db.bin $(1)/lib/firmware/ar0700xx.bin |
||
98 | endef |
||
99 | |||
100 | $(eval $(call KernelPackage,sangam-atm-annex-a)) |
||
101 | $(eval $(call KernelPackage,sangam-atm-annex-b)) |