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