b43-tools: update to version 017, which contains the patch.
[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:=017
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=git://git.bues.ch/b43-tools.git
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)
17 PKG_SOURCE_VERSION:=691cd291afdb3dbfcf6b9624f8f4bd068af153d0
18 #PKG_MIRROR_MD5SUM:=50ca3c763ee21ee213addd17cf1c1b86
19 HOST_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23
24 define Host/Compile
25 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/fwcutter \
26 CFLAGS="$(HOST_CFLAGS) -include endian.h" \
27 $(HOST_MAKE_FLAGS) \
28 $(1) QUIET_SPARSE=:
29 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/assembler \
30 CFLAGS="$(HOST_CFLAGS) -include endian.h" \
31 $(HOST_MAKE_FLAGS) \
32 LDFLAGS= \
33 $(1) QUIET_SPARSE=:
34 endef
35
36 define Host/Install
37 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
38 $(INSTALL_BIN) $(HOST_BUILD_DIR)/fwcutter/b43-fwcutter $(STAGING_DIR_HOST)/bin/
39 $(INSTALL_BIN) $(HOST_BUILD_DIR)/assembler/b43-asm $(STAGING_DIR_HOST)/bin/
40 $(INSTALL_BIN) $(HOST_BUILD_DIR)/assembler/b43-asm.bin $(STAGING_DIR_HOST)/bin/
41 $(INSTALL_BIN) ./files/b43-fwsquash.py $(STAGING_DIR_HOST)/bin/
42 endef
43
44 define Host/Clean
45 rm -f $(STAGING_DIR_HOST)/bin/b43-fwcutter
46 rm -f $(STAGING_DIR_HOST)/bin/b43-asm
47 rm -f $(STAGING_DIR_HOST)/bin/b43-asm.bin
48 rm -f $(STAGING_DIR_HOST)/bin/b43-fwsquash.py
49 endef
50
51 $(eval $(call HostBuild))