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