-#FIXME: add dependency on kmod-usb-core
-define Package/kmod-ueagle-atm
-SECTION:=drivers
-CATEGORY:=Drivers
-DEPENDS:=@LINUX_2_6_BRCM @PACKAGE_KMOD_USB
-TITLE:=Driver for Eagle 8051 based USB ADSL modems
-DESCRIPTION:=Driver for Eagle 8051 based USB ADSL modems
-URL:=http://www.eagle-usb.org/
-VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/ueagle-atm
+ SUBMENU:=Network Devices
+ DEPENDS:=@ATM_SUPPORT kmod-usb-core
+ TITLE:=Driver for Eagle 8051 based USB ADSL modems
+ URL:=http://www.eagle-usb.org/
+ VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+ FILES:= \
+ $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \
+ $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,50,usbatm ueagle-atm)