2012-10-08 20:15:42 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=b43-tools
|
2014-07-02 20:52:50 +00:00
|
|
|
PKG_VERSION:=019
|
2012-10-08 20:15:42 +00:00
|
|
|
|
2014-07-02 20:52:50 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/mbuesch/b43-tools.git
|
2012-10-08 20:15:42 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
2014-07-02 20:52:50 +00:00
|
|
|
PKG_SOURCE_VERSION:=8dce53297966b31b6c70a7a03c2433978dd9f288
|
2016-12-22 15:54:00 +00:00
|
|
|
PKG_MIRROR_HASH:=247eb0297f14fbcc828685cc353150f30fa03bf886e7a477aadc4161d9c0458d
|
2012-10-08 20:15:42 +00:00
|
|
|
HOST_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/fwcutter \
|
|
|
|
CFLAGS="$(HOST_CFLAGS) -include endian.h" \
|
|
|
|
$(HOST_MAKE_FLAGS) \
|
|
|
|
$(1) QUIET_SPARSE=:
|
|
|
|
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/assembler \
|
|
|
|
CFLAGS="$(HOST_CFLAGS) -include endian.h" \
|
|
|
|
$(HOST_MAKE_FLAGS) \
|
2012-10-25 16:39:38 +00:00
|
|
|
LDFLAGS= \
|
2012-10-08 20:15:42 +00:00
|
|
|
$(1) QUIET_SPARSE=:
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/fwcutter/b43-fwcutter $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/assembler/b43-asm $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/assembler/b43-asm.bin $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(INSTALL_BIN) ./files/b43-fwsquash.py $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/b43-fwcutter
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/b43-asm
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/b43-asm.bin
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/b43-fwsquash.py
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|