kernel: bump to 4.9.105
[openwrt/openwrt.git] / tools / b43-tools / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=b43-tools
11 PKG_VERSION:=019
12
13 PKG_SOURCE_URL:=https://github.com/mbuesch/b43-tools.git
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)
16 PKG_SOURCE_VERSION:=8dce53297966b31b6c70a7a03c2433978dd9f288
17 PKG_MIRROR_HASH:=247eb0297f14fbcc828685cc353150f30fa03bf886e7a477aadc4161d9c0458d
18 HOST_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22
23 define Host/Compile
24 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/fwcutter \
25 CFLAGS="$(HOST_CFLAGS) -include endian.h" \
26 $(HOST_MAKE_FLAGS) \
27 $(1) QUIET_SPARSE=:
28 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/assembler \
29 CFLAGS="$(HOST_CFLAGS) -include endian.h" \
30 $(HOST_MAKE_FLAGS) \
31 LDFLAGS= \
32 $(1) QUIET_SPARSE=:
33 endef
34
35 define Host/Install
36 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
37 $(INSTALL_BIN) $(HOST_BUILD_DIR)/fwcutter/b43-fwcutter $(STAGING_DIR_HOST)/bin/
38 $(INSTALL_BIN) $(HOST_BUILD_DIR)/assembler/b43-asm $(STAGING_DIR_HOST)/bin/
39 $(INSTALL_BIN) $(HOST_BUILD_DIR)/assembler/b43-asm.bin $(STAGING_DIR_HOST)/bin/
40 $(INSTALL_BIN) ./files/b43-fwsquash.py $(STAGING_DIR_HOST)/bin/
41 endef
42
43 define Host/Clean
44 rm -f $(STAGING_DIR_HOST)/bin/b43-fwcutter
45 rm -f $(STAGING_DIR_HOST)/bin/b43-asm
46 rm -f $(STAGING_DIR_HOST)/bin/b43-asm.bin
47 rm -f $(STAGING_DIR_HOST)/bin/b43-fwsquash.py
48 endef
49
50 $(eval $(call HostBuild))