diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-03-13 11:27:06 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-03-13 11:27:06 +0000 |
commit | c7552634b1a2cf7e6eaa79e309d5cd8040abf837 (patch) | |
tree | 011afe8b83807c40dc6a8a27def5d7a2586074ea /openwrt/target/linux/package/bcm43xx-standalone/Makefile | |
parent | 04b1fc848d05e0f70b911adf3e4e2d77928ad55b (diff) |
update to a newer snapshot and m. buesch snapshots
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3358 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux/package/bcm43xx-standalone/Makefile')
-rw-r--r-- | openwrt/target/linux/package/bcm43xx-standalone/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/bcm43xx-standalone/Makefile b/openwrt/target/linux/package/bcm43xx-standalone/Makefile new file mode 100644 index 000000000..fed1628ee --- /dev/null +++ b/openwrt/target/linux/package/bcm43xx-standalone/Makefile @@ -0,0 +1,57 @@ +# $Id$ + +include $(TOPDIR)/rules.mk +include ../../rules.mk + +PKG_NAME := bcm43xx-standalone +PKG_VERSION := 060313 +PKG_RELEASE := 1 +PKG_MD%SUM := 773b26a164a54f0da544764969ca019b + +PKG_SOURCE_URL := ftp://bu3sch.de/bcm43xx-snapshots/standalone/bcm43xx/ +PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_CAT := bzcat + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +FIRMWARE_BLOB := wl_apsta-3.130.20.0.o +FIRMWARE_BLOB_URL := http://downloads.openwrt.org/sources +FIRMWARE_BLOB_MD5SUM := e08665c5c5b66beb9c3b2dd54aa80cb3 + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,KMOD_BCM43XX_DSCAPE,kmod-$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)+0.$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)))) + +$(PKG_BUILD_DIR)/.configured: + touch $@ + +$(PKG_BUILD_DIR)/fwcutter/.built: + mkdir -p $(PKG_BUILD_DIR)/fwcutter + $(CP) ./fwcutter/* $(PKG_BUILD_DIR)/fwcutter/ + $(SCRIPT_DIR)/download.pl "$(PKG_BUILD_DIR)/fwcutter" "$(FIRMWARE_BLOB)" "$(FIRMWARE_BLOB_MD5SUM)" $(FIRMWARE_BLOB_URL) + $(MAKE) -C $(PKG_BUILD_DIR)/fwcutter + $(PKG_BUILD_DIR)/fwcutter/fwcutter -w $(PKG_BUILD_DIR)/fwcutter $(PKG_BUILD_DIR)/fwcutter/$(FIRMWARE_BLOB) + touch $@ + +$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/fwcutter/.built + $(MAKE) -C "$(LINUX_DIR)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + ARCH="$(LINUX_KARCH)" \ + PATH="$(TARGET_PATH)" \ + SUBDIRS="$(PKG_BUILD_DIR)" \ + LINUXINCLUDE="-I$(STAGING_DIR)/usr/include/ieee80211-dscape -I$(LINUX_DIR)/include -DBCM47XX=1" \ + modules + touch $@ + +$(IPKG_KMOD_BCM43XX_DSCAPE): + install -m0755 -d $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/modules/$(LINUX_VERSION) + install -m0755 -d $(IDIR_KMOD_BCM43XX_DSCAPE)/etc/modules.d + ( \ + echo 80211; \ + echo rate_control; \ + echo bcm43xx; \ + ) >& $(IDIR_KMOD_BCM43XX_DSCAPE)/etc/modules.d/50-bcm43xx + $(CP) $(PKG_BUILD_DIR)/*.ko $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/modules/$(LINUX_VERSION) + install -m0755 -d $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/firmware + $(CP) $(PKG_BUILD_DIR)/fwcutter/*.fw $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/firmware/ + $(IPKG_BUILD) $(IDIR_KMOD_BCM43XX_DSCAPE) $(PACKAGE_DIR) |