enable image generation for the WRT150N
[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.01.00.10
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:=d35e8889ada0f79b3f562bb12dcef0d4
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define KernelPackage/sangam-atm-annex-a
23 SUBMENU:=Network Devices
24 DEPENDS:=@LINUX_2_6_AR7||LINUX_2_4_AR7 +kmod-atm
25 TITLE:=AR7 ADSL driver (Annex A)
26 DESCRIPTION:=The AR7 ADSL driver for Annex A
27 VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
28 FILES:=$(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,50,tiatm)
30 endef
31
32 define KernelPackage/sangam-atm-annex-b
33 $(call KernelPackage/sangam-atm-annex-a)
34 TITLE:=AR7 ADSL driver (Annex B)
35 DESCRIPTION:=The AR7 ADSL driver for Annex B
36 endef
37
38 define Build/Compile
39 $(MAKE) -C "$(LINUX_DIR)" \
40 CROSS_COMPILE="$(TARGET_CROSS)" \
41 ARCH="$(LINUX_KARCH)" \
42 SUBDIRS="$(PKG_BUILD_DIR)" \
43 modules
44 endef
45
46 define KernelPackage/sangam-atm-annex-a/install
47 mkdir -p $(1)/lib/firmware
48 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
49 endef
50
51 define KernelPackage/sangam-atm-annex-b/install
52 mkdir -p $(1)/lib/firmware
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
54 endef
55
56 $(eval $(call KernelPackage,sangam-atm-annex-a))
57 $(eval $(call KernelPackage,sangam-atm-annex-b))
This page took 0.042218 seconds and 5 git commands to generate.