kernel: include firmware in the e100 package
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 Apr 2011 21:53:38 +0000 (21:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 8 Apr 2011 21:53:38 +0000 (21:53 +0000)
SVN-Revision: 26539

package/kernel/modules/netdevices.mk

index 762a171773f1ba56f7b93f867a4ce0ce5cf9bf10..7d6ff5eb8aacc8adf8cc236b49deb3eeaf2b203a 100644 (file)
@@ -270,6 +270,13 @@ define KernelPackage/e100/description
  Kernel modules for Intel(R) PRO/100+ Ethernet adapters.
 endef
 
+define KernelPackage/e100/install
+       $(INSTALL_DIR) $(1)/lib/firmware/e100
+       $(foreach file,d101m_ucode.bin d101s_ucode.bin d102e_ucode.bin, \
+               $(TARGET_CROSS)objcopy -Iihex -Obinary $(LINUX_DIR)/firmware/e100/$(file).ihex $(1)/lib/firmware/e100/$(file); \
+       )
+endef
+
 $(eval $(call KernelPackage,e100))