add block-extroot, a package for using an external filesystem as rootfs (patch by...
[openwrt.git] / package / ar7-atm / Makefile
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
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_704),y)
14 PKG_VERSION:=D7.04.03.00
15 PKG_MD5SUM:=3d76004e46f09e88931f91670cb420ad
16 PKG_RELEASE:=R1
17 endif
18
19 ifeq ($(CONFIG_AR7_ATM_FW_VERSION_703),y)
20 PKG_VERSION:=D7.03.01.00
21 PKG_MD5SUM:=bc6e9c6adb1be25820c7ee661de8ca7d
22 PKG_RELEASE:=R2
23 endif
24
25 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.bz2
26 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define KernelPackage/sangam-atm/Default
31 SUBMENU:=Network Devices
32 DEPENDS:=@TARGET_ar7 +kmod-atm
33 TITLE:=AR7 ADSL driver
34 FILES:=$(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX)
35 AUTOLOAD:=$(call AutoLoad,50,tiatm)
36 endef
37
38 define KernelPackage/sangam-atm/config
39 source "$(SOURCE)/Config.in"
40 endef
41
42 define KernelPackage/sangam-atm-annex-a
43 $(call KernelPackage/sangam-atm/Default)
44 TITLE+= (Annex A, ADSL over POTS)
45 endef
46
47 define KernelPackage/sangam-atm-annex-a/description
48 The AR7 ADSL driver for Annex A (ADSL over POTS).
49 endef
50
51 define KernelPackage/sangam-atm-annex-a/config
52 $(call KernelPackage/sangam-atm/config)
53 endef
54
55 define KernelPackage/sangam-atm-annex-b
56 $(call KernelPackage/sangam-atm/Default)
57 TITLE+= (Annex B, ADSL over ISDN)
58 endef
59
60 define KernelPackage/sangam-atm-annex-b/description
61 The AR7 ADSL driver for Annex B (ADSL over ISDN).
62 endef
63
64 define KernelPackage/sangam-atm-annex-a/config
65 $(call KernelPackage/sangam-atm/config)
66 endef
67
68 define Build/Compile
69 $(MAKE) -C "$(LINUX_DIR)" \
70 CROSS_COMPILE="$(TARGET_CROSS)" \
71 ARCH="$(LINUX_KARCH)" \
72 SUBDIRS="$(PKG_BUILD_DIR)" \
73 modules
74 endef
75
76 define KernelPackage/sangam-atm-annex-a/install
77 mkdir -p $(1)/lib/firmware
78 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/
79 ln -sf ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
80 endef
81
82 define KernelPackage/sangam-atm-annex-b/install
83 mkdir -p $(1)/lib/firmware
84 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/
85 ln -sf ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
86 endef
87
88 $(eval $(call KernelPackage,sangam-atm-annex-a))
89 $(eval $(call KernelPackage,sangam-atm-annex-b))
This page took 0.050492 seconds and 5 git commands to generate.