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