1 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 include $(TOPDIR)/rules.mk
11 include $(INCLUDE_DIR)/kernel.mk
16 include $(INCLUDE_DIR)/package.mk
18 define KernelPackage/ifxmips-atm
19 SUBMENU:=Network Devices
20 DEPENDS:=@BROKEN @TARGET_ifxmips +kmod-atm
21 TITLE:=ifxmips atm driver
22 FILES:=$(PKG_BUILD_DIR)/ifx-atm.$(LINUX_KMOD_SUFFIX)
23 AUTOLOAD:=$(call AutoLoad,50,ifx-atm)
26 define Kernel/Package/ifxmips-atm/description
27 This package provides the atm driver needed to make dsl work on ifxmips based boards
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
36 $(MAKE) -C "$(LINUX_DIR)" \
37 CROSS_COMPILE="$(TARGET_CROSS)" \
38 ARCH="$(LINUX_KARCH)" \
39 SUBDIRS="$(PKG_BUILD_DIR)" \
43 define KernelPackage/ifxmips-atm/install
44 $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
45 $(CP) $(PKG_BUILD_DIR)/ifx-atm.ko $(1)/lib/modules/$(LINUX_VERSION)
48 $(eval $(call KernelPackage,ifxmips-atm))