mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 07:34:40 +01:00
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Waiting to run
Build host tools / Build host tools for linux and macos based systems (push) Waiting to run
Add the following changes: ``` 12524df b43-asm: fix undefined behavior by using unsigned shift fa9cb86 Merge pull request #9 from PolynomialDivision/unsinged-fix 5d592cb fwcutter: Fix compiler warning b96318b dasm: Fix compiler warning 2270cee ssb_sprom: Fix _DEFAULT_SOURCE warning 4781cde ssb_sprom: Fix compiler warning cce45e3 ssb_sprom: Update .gitignore 5ca416f disassembler: Update .gitignore 44673b6 Update .gitignore 0c8f8b6 assembler: Update .gitignore 1f5b63d fwcutter: Update .gitignore 35fe438 Add README.md ``` Link: https://github.com/openwrt/openwrt/pull/20542 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
#
|
|
# 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
|
|
PKG_DATE:=2025-09-23
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/mbuesch/b43-tools.git
|
|
PKG_MIRROR_HASH:=421520ea1983c4774864ec47f9333e5dfa947ef759ce543830b958c63a9c5974
|
|
PKG_SOURCE_VERSION:=35fe4385a8d738874ef004fa47c5aa40b2c08b3e
|
|
|
|
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 -Wno-error=int-conversion" \
|
|
$(HOST_MAKE_FLAGS) \
|
|
LDFLAGS= \
|
|
$(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))
|