############################################################# # # Silicom PCI-X Bypass Adapter # ############################################################# E1000BP_VER:=8.0.35.silc.5.56.1 E1000BP_BUILD_DIR:=$(BUILD_DIR)/e1000bp-$(E1000BP_VER) E1000BP_SOURCE:=$(FLI4L_SRC)/e1000bp/e1000bp-$(E1000BP_VER).tar.gz $(E1000BP_BUILD_DIR)/src/Makefile: zcat $(E1000BP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - touch $@ # # compile driver # $(E1000BP_BUILD_DIR)/src/e1000bp.ko: $(E1000BP_BUILD_DIR)/src/Makefile $(MAKE) -C $(E1000BP_BUILD_DIR)/src CC=$(TARGET_CC) KSRC=$(LINUX_DIR) # # install driver # $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/e1000bp.ko: $(E1000BP_BUILD_DIR)/src/e1000bp.ko install -D -m 664 $(E1000BP_BUILD_DIR)/src/e1000bp.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/e1000bp.ko e1000bp: $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/e1000bp.ko e1000bp-clean: -rm -f $(E1000BP_BUILD_DIR)/src/*.ko $(E1000BP_BUILD_DIR)/src/*.o rm -rf $(E1000BP_BUILD_DIR)/.* rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/e1000bp.ko e1000bp-source: $(E1000BP_SOURCE) e1000bp-dirclean: rm -rf $(E1000BP_BUILD_DIR)