strip the kernel version suffix from target directories, except for brcm-2.4 (the...
[openwrt.git] / package / ar7-atm / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=sangam_atm
13 PKG_VERSION:=07.02.01.00
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
18 PKG_MD5SUM:=dc4d5c36532503a2f234f3303a0bf563
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define KernelPackage/sangam-atm-annex-a
23   SUBMENU:=Network Devices
24   DEPENDS:=@TARGET_AR7 +kmod-atm 
25   TITLE:=AR7 ADSL driver (Annex A, ADSL over POTS)
26   DESCRIPTION:=The AR7 ADSL driver for Annex A (ADSL over POTS)
27   FILES:=$(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX)
28   AUTOLOAD:=$(call AutoLoad,50,tiatm)
29 endef
30
31 define KernelPackage/sangam-atm-annex-b
32   $(call KernelPackage/sangam-atm-annex-a)
33   TITLE:=AR7 ADSL driver (Annex B, ADSL over ISDN)
34   DESCRIPTION:=The AR7 ADSL driver for Annex B (ADSL over ISDN)
35 endef
36
37 define Build/Compile
38         $(MAKE) -C "$(LINUX_DIR)" \
39                 CROSS_COMPILE="$(TARGET_CROSS)" \
40                 ARCH="$(LINUX_KARCH)" \
41                 SUBDIRS="$(PKG_BUILD_DIR)" \
42                 modules
43 endef
44
45 define KernelPackage/sangam-atm-annex-a/install
46         mkdir -p $(1)/lib/firmware
47         $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
48 endef
49
50 define KernelPackage/sangam-atm-annex-b/install
51         mkdir -p $(1)/lib/firmware
52         $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
53 endef
54
55 $(eval $(call KernelPackage,sangam-atm-annex-a))
56 $(eval $(call KernelPackage,sangam-atm-annex-b))