Changeset 14555


Ignore:
Timestamp:
2009-02-18T19:39:15+01:00 (8 years ago)
Author:
hauke
Message:

mac80211: Add Open FirmWare and Broadcom firmware version 4.178.10.4 support to b43 package.

Location:
trunk/package/mac80211
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/Makefile

    r14534 r14555  
    269269 
    270270#Broadcom firmware 
    271 PKG_B43_FWV4_NAME:=broadcom-wl 
    272 PKG_B43_FWV4_VERSION:=4.150.10.5 
    273 PKG_B43_FWV4_OBJECT:=driver/wl_apsta_mimo.o 
    274 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2 
    275 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/ 
    276 PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60 
     271ifneq ($(CONFIG_B43_EXPERIMENTAL),) 
     272  PKG_B43_FWV4_NAME:=broadcom-wl 
     273  PKG_B43_FWV4_VERSION:=4.178.10.4 
     274  PKG_B43_FWV4_OBJECT:=wrt610n_v1.00.00.018_us/release/src/wl/linux/wl.o 
     275  PKG_B43_FWV4_SOURCE:=wrt610n_v1.00.00.018_us.tgz 
     276  PKG_B43_FWV4_SOURCE_URL:=ftp://ftp.linksys.com/opensourcecode/wrt610n/1.00.00.018/ 
     277  PKG_B43_FWV4_MD5SUM:=adb206204a610c2055db1f387f813f59 
     278else 
     279  PKG_B43_FWV4_NAME:=broadcom-wl 
     280  PKG_B43_FWV4_VERSION:=4.150.10.5 
     281  PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta_mimo.o 
     282  PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2 
     283  PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/ 
     284  PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60 
     285endif 
     286ifneq ($(CONFIG_B43_OPENFIRMWARE),) 
     287  PKG_B43_FWV4_NAME:=broadcom-wl 
     288  PKG_B43_FWV4_VERSION:=5.1 
     289  PKG_B43_FWV4_OBJECT:=openfwwf-$(PKG_B43_FWV4_VERSION) 
     290  PKG_B43_FWV4_SOURCE:=openfwwf-$(PKG_B43_FWV4_VERSION).tar.gz 
     291  PKG_B43_FWV4_SOURCE_URL:=http://www.ing.unibs.it/openfwwf/firmware/ 
     292  PKG_B43_FWV4_MD5SUM:=b2e99ececc27cb70b818170cc5557fd5 
     293endif 
     294 
    277295 
    278296PKG_B43_FWV3_NAME:=wl_apsta 
     
    282300PKG_B43_FWV3_MD5SUM:=e08665c5c5b66beb9c3b2dd54aa80cb3 
    283301 
    284 PKG_B43_FWCUTTER_NAME:=b43-fwcutter 
    285 PKG_B43_FWCUTTER_VERSION:=011 
    286 PKG_B43_FWCUTTER_SOURCE:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION).tar.bz2 
    287 PKG_B43_FWCUTTER_SOURCE_URL:=http://bu3sch.de/b43/fwcutter/ 
    288 PKG_B43_FWCUTTER_MD5SUM:=3db2f4de85a459451f5b391cf67a8d44 
     302ifneq ($(CONFIG_B43_EXPERIMENTAL)$(CONFIG_B43_OPENFIRMWARE),) 
     303  PKG_B43_FWCUTTER_NAME:=b43-fwcutter 
     304  PKG_B43_FWCUTTER_VERSION:=3e69531aa65b8f664a0ab00dfc3e2eefeb0cb417 
     305  PKG_B43_FWCUTTER_SOURCE:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION).tar.bz2 
     306  PKG_B43_FWCUTTER_PROTO:=git 
     307  PKG_B43_FWCUTTER_SOURCE_URL:=http://git.bu3sch.de/git/b43-tools.git 
     308  PKG_B43_FWCUTTER_SUBDIR:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION) 
     309  PKG_B43_FWCUTTER_OBJECT:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/fwcutter/ 
     310else 
     311  PKG_B43_FWCUTTER_NAME:=b43-fwcutter 
     312  PKG_B43_FWCUTTER_VERSION:=011 
     313  PKG_B43_FWCUTTER_SOURCE:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION).tar.bz2 
     314  PKG_B43_FWCUTTER_PROTO:=default 
     315  PKG_B43_FWCUTTER_SOURCE_URL:=http://bu3sch.de/b43/fwcutter/ 
     316  PKG_B43_FWCUTTER_MD5SUM:=3db2f4de85a459451f5b391cf67a8d44 
     317  PKG_B43_FWCUTTER_SUBDIR:=b43-fwcutter-$(PKG_B43_FWCUTTER_VERSION) 
     318  PKG_B43_FWCUTTER_OBJECT:=$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/ 
     319endif 
    289320 
    290321define Download/b43-common 
     
    292323  URL:=$(PKG_B43_FWCUTTER_SOURCE_URL) 
    293324  MD5SUM:=$(PKG_B43_FWCUTTER_MD5SUM) 
     325  PROTO:=$(PKG_B43_FWCUTTER_PROTO) 
     326  VERSION:=$(PKG_B43_FWCUTTER_VERSION) 
     327  SUBDIR:=$(PKG_B43_FWCUTTER_SUBDIR) 
    294328endef 
    295329$(eval $(call Download,b43-common)) 
     
    321355  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43/b43.$(LINUX_KMOD_SUFFIX) 
    322356  AUTOLOAD:=$(call AutoLoad,30,b43) 
     357endef 
     358 
     359define KernelPackage/b43/config 
     360        source "$(SOURCE)/Config.in" 
    323361endef 
    324362 
     
    437475define Build/b43-common 
    438476        tar xjf "$(DL_DIR)/$(PKG_B43_FWCUTTER_SOURCE)" -C "$(PKG_BUILD_DIR)" 
    439         $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)" \ 
     477        $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)" \ 
    440478                CFLAGS="-I$(STAGING_DIR_HOST)/include -include endian.h" 
     479        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_OBJECT)/b43-fwcutter $(STAGING_DIR_HOST)/bin/ 
     480ifneq ($(CONFIG_B43_OPENFIRMWARE),) 
     481        $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/ 
     482        $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/" 
     483        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/b43-asm $(STAGING_DIR_HOST)/bin/ 
     484        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_SUBDIR)/assembler/b43-asm.bin $(STAGING_DIR_HOST)/bin/ 
     485endif 
    441486endef 
    442487 
    443488define KernelPackage/b43/install 
     489        rm -rf $(1)/lib/firmware/ 
    444490        $(call Build/b43-common) 
     491ifneq ($(CONFIG_B43_EXPERIMENTAL)$(CONFIG_B43_OPENFIRMWARE),) 
     492        tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)" 
     493else 
    445494        tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)" 
     495endif 
    446496        $(INSTALL_DIR) $(1)/lib/firmware/ 
    447  
    448         $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/b43-fwcutter \ 
    449         -w $(1)/lib/firmware/ \ 
    450         $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/$(PKG_B43_FWV4_OBJECT) 
     497ifneq ($(CONFIG_B43_OPENFIRMWARE),) 
     498        $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/" 
     499        $(INSTALL_DIR) $(1)/lib/firmware/b43-open/ 
     500        $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw 
     501        $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw 
     502        $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw 
     503else 
     504        b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT) 
     505endif 
    451506endef 
    452507 
     
    455510        $(INSTALL_DIR) $(1)/lib/firmware/ 
    456511 
    457         $(PKG_BUILD_DIR)/$(PKG_B43_FWCUTTER_NAME)-$(PKG_B43_FWCUTTER_VERSION)/b43-fwcutter \ 
    458         -w $(1)/lib/firmware/ \ 
    459         $(DL_DIR)/$(PKG_B43_FWV3_SOURCE) 
     512        b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(DL_DIR)/$(PKG_B43_FWV3_SOURCE) 
    460513endef 
    461514 
Note: See TracChangeset for help on using the changeset viewer.