[include] Add git version check to prerequisite check (#11229)
[openwrt.git] / tools / firmware-utils / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME := firmware-utils
10
11 include $(INCLUDE_DIR)/host-build.mk
12 include $(INCLUDE_DIR)/kernel.mk
13
14 define cc
15 $(HOSTCC) $(HOST_CFLAGS) -include endian.h -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
16 endef
17
18 define Host/Compile
19 mkdir -p $(HOST_BUILD_DIR)/bin
20 $(call cc,addpattern)
21 $(call cc,trx)
22 $(call cc,motorola-bin)
23 $(call cc,dgfirmware)
24 $(call cc,trx2usr)
25 $(call cc,ptgen)
26 $(call cc,airlink)
27 $(call cc,srec2bin)
28 $(call cc,mkmylofw)
29 $(call cc,mkcsysimg)
30 $(call cc,mkzynfw)
31 $(call cc,lzma2eva,-lz)
32 $(call cc,mkcasfw)
33 $(call cc,mkfwimage,-lz)
34 $(call cc,mkfwimage2,-lz)
35 $(call cc,imagetag imagetag_cmdline)
36 $(call cc,add_header)
37 $(call cc,makeamitbin)
38 $(call cc,encode_crc)
39 $(call cc,nand_ecc)
40 $(call cc,mkplanexfw sha1)
41 $(call cc,mktplinkfw md5)
42 $(call cc,pc1crypt)
43 $(call cc,osbridge-crc)
44 $(call cc,wrt400n cyg_crc32)
45 $(call cc,wndr3700)
46 $(call cc,mkdniimg)
47 $(call cc,mktitanimg)
48 $(call cc,mkchkimg)
49 $(call cc,mkzcfw cyg_crc32)
50 $(call cc,spw303v)
51 $(call cc,trx2edips)
52 $(call cc,xorimage)
53 $(call cc,buffalo-enc buffalo-lib, -Wall)
54 $(call cc,buffalo-tag buffalo-lib, -Wall)
55 $(call cc,buffalo-tftp buffalo-lib, -Wall)
56 $(call cc,mkwrgimg md5, -Wall)
57 $(call cc,mkedimaximg)
58 $(call cc,mkbrncmdline)
59 $(call cc,mkbrnimg)
60 endef
61
62 define Host/Install
63 $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
64 endef
65
66 $(eval $(call HostBuild))
This page took 0.054594 seconds and 5 git commands to generate.