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