# This file is part of the FreeWRT project. FreeWRT is copyrighted
# material, please see the LICENCE file in the top-level directory

include $(TOPDIR)/rules.mk

PKG_NAME:=		b43-firmware
PKG_VERSION:=		1.0
PKG_RELEASE:=		1
WRKSRC=			${WRKDIR}/$(PKG_NAME)
DISTFILES:=

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,B43_FIRMWARE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(WRKBUILD)/.prepared:
	mkdir -p $(WRKBUILD)
	touch $@

$(WRKBUILD)/.configured:
	touch $@

$(WRKBUILD)/.built:
	touch $@

$(IPKG_B43_FIRMWARE): 
	$(INSTALL_DIR) $(IDIR_B43_FIRMWARE)/lib/firmware/b43
	$(INSTALL_BIN) ./*.fw $(IDIR_B43_FIRMWARE)/lib/firmware/b43/
	$(RSTRIP) $(IDIR_B43_FIRMWARE)
	$(IPKG_BUILD) $(IDIR_B43_FIRMWARE) $(PACKAGE_DIR)
