############################################################# # # rt73 # ############################################################# rt73_VER:=cvs-daily rt73_SOURCE_URL:=http://$(SF_DL_HOST)/project/rt2400/Final%20software%20release/rt73-legacy-final-cvs rt73_SOURCE:=rt73-$(rt73_VER).tar.gz rt73_BUILD_DIR:=$(BUILD_DIR)/rt73-$(rt73_VER) # # download source # $(DL_DIR)/$(rt73_SOURCE)/.fetched: $(WGET) -P $(DL_DIR) $(rt73_SOURCE_URL)/$(rt73_SOURCE) # # unpack source and potentially patch package; use bzcat for bz2 files # $(rt73_BUILD_DIR)/.unpacked: $(DL_DIR)/$(rt73_SOURCE)/.fetched mkdir $(rt73_BUILD_DIR) zcat $(DL_DIR)/$(rt73_SOURCE) | tar -C $(rt73_BUILD_DIR) $(TAR_OPTIONS) - touch $@ # # configure source, add additional options to configure as required # call ./configure --help to find out about additional options # $(rt73_BUILD_DIR)/.configured: $(rt73_BUILD_DIR)/.unpacked cd $(rt73_BUILD_DIR) mv $(rt73_BUILD_DIR)/$(shell ls $(rt73_BUILD_DIR))/Module $(rt73_BUILD_DIR)/Module touch $@ # # build package # $(rt73_BUILD_DIR)/Module/rt73.ko: $(rt73_BUILD_DIR)/.configured cd $(rt73_BUILD_DIR)/Module ; \ $(MAKE) KERNDIR=$(LINUX_DIR) \ COPTS="$(TARGET_CONFIGURE_CFLAGS)" \ CC=$(TARGET_CC) PATCHLEVEL=6 module # # install package # $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/rt73.ko: $(rt73_BUILD_DIR)/Module/rt73.ko mkdir -p $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net cp $(rt73_BUILD_DIR)/Module/rt73.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/rt73.ko # # to get rt73, we need $(TARGET_DIR)/usr/sbin/rt73 # - to get $(TARGET_DIR)/usr/sbin/rt73, we need $(rt73_BUILD_DIR)/rt73 # - before trying to build rt73, we need # $(rt73_BUILD_DIR)/.configured # ... rt73: $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/rt73.ko rt73-source: $(DL_DIR)/$(rt73_SOURCE) rt73-clean: -$(MAKE) -C $(rt73_BUILD_DIR) KERNDIR=$(LINUX_DIR) clean rt73-dirclean: rm -rf $(rt73_BUILD_DIR)