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