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