############################################################# # # fcpci # ############################################################# FCPCI_VER:=3.11-07 FCPCI_SOURCE_URL:=ftp://ftp.avm.de/cardware/fritzcrd.pci/linux/suse.93/ FCPCI_SOURCE:=fcpci-suse93-$(FCPCI_VER).tar.gz FCPCI_CARD:=fcpci FCPCI_BUILD_DIR:=$(BUILD_DIR)/$(FCPCI_CARD)-$(FCPCI_VER) # # download source # $(DL_DIR)/$(FCPCI_SOURCE): $(WGET) -P $(DL_DIR) $(FCPCI_SOURCE_URL)/$(FCPCI_SOURCE) # # unpack source and potentially patch package; use zcat for gz files # $(FCPCI_BUILD_DIR)/noask: $(DL_DIR)/$(FCPCI_SOURCE) mkdir -p $(FCPCI_BUILD_DIR) zcat $(DL_DIR)/$(FCPCI_SOURCE) | tar -C $(FCPCI_BUILD_DIR) $(TAR_OPTIONS) - $(PATCH) $(FCPCI_BUILD_DIR)/fritz package/$(FCPCI_CARD) $(FCPCI_CARD).patch $(SED) -i -e 's/@CFLAGS@/$(TARGET_CONFIGURE_CFLAGS)/g' $(FCPCI_BUILD_DIR)/fritz/src/Makefile touch $@ # # build package # $(FCPCI_BUILD_DIR)/fritz/src/$(FCPCI_CARD).ko: $(FCPCI_BUILD_DIR)/noask $(MAKE) -C $(FCPCI_BUILD_DIR)/fritz/src \ KDIR=$(LINUX_DIR) \ CC=$(TARGET_CC) \ LIBDIR=$(FCPCI_BUILD_DIR) # # install package # $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/$(FCPCI_CARD).ko: $(FCPCI_BUILD_DIR)/fritz/src/$(FCPCI_CARD).ko mkdir -p $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc cp $(FCPCI_BUILD_DIR)/fritz/src/$(FCPCI_CARD).ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc $(FCPCI_CARD): $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/$(FCPCI_CARD).ko $(FCPCI_CARD)-source: $(DL_DIR)/$(FCPCI_SOURCE) $(FCPCI_CARD)-clean: -$(MAKE) -C $(FCPCI_BUILD_DIR)/fritz/src KERNELPATH=$(LINUX_DIR) clean $(FCPCI_CARD)-dirclean: rm -rf $(FCPCI_BUILD_DIR)