-define install
- install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
- $(CP) $(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX) \
- $(1)/lib/modules/$(LINUX_VERSION)
- install -m0644 $(PKG_BUILD_DIR)/ar0700xx_a.bin $(1)/lib/modules/ar0700xx.bin
- install -m0755 -d $(1)/etc/modules.d/
- printf 'tiatm\n' > $(1)/etc/modules.d/20-switch
-endef
-
-define Package/kmod-sangam-atm-annex-a/install
- $(call install,$(1),a)
+define KernelPackage/sangam-atm-annex-a/install
+ mkdir -p $(1)/lib/firmware
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin