-define wl_template
- $(INSTALL_DIR) $(1)/etc/modules.d
- echo "wl$(2)" > $(1)/etc/modules.d/20-wl$(2)
- $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
- $(INSTALL_DATA) $(PKG_BUILD_DIR)/kmod/wl$(2).o $(PKG_BUILD_DIR)/kmod/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/
-endef
-
-define Package/kmod-brcm-wl/install
- $(call wl_template,$(1))
-endef
-
-define Package/kmod-brcm-wl-mimo/install
- $(call wl_template,$(1),_mimo)
-endef
-