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
|
2023-01-12 10:31:29 +00:00
|
|
|
PKG_DATE:=2022-07-05
|
2012-10-08 20:15:42 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2023-01-12 10:31:29 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/mbuesch/b43-tools.git
|
|
|
|
PKG_SOURCE_VERSION:=2fe10ea6690df9a068cb21cde537236bae784a14
|
2024-03-17 17:43:10 +00:00
|
|
|
PKG_MIRROR_HASH:=3b18a0883924029b295fd2df4458b51e00f47d299a8ecca6cb2ed9e30afae5d5
|
2012-10-08 20:15:42 +00:00
|
|
|
|
|
|
|
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 \
|
2024-03-29 17:57:03 +00:00
|
|
|
CFLAGS="$(HOST_CFLAGS) -include endian.h -Wno-error=int-conversion" \
|
2012-10-08 20:15:42 +00:00
|
|
|
$(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))
|