[toolchain] add support for gcc v4.3.1 & v4.3.2 (closes: #3479), thanks to Luigi...
[openwrt.git] / tools / firmware-utils / Makefile
1 #
2 # Copyright (C) 2006-2008 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
13 define cc
14 $(CC) $(HOST_CFLAGS) -include endian.h -o $(PKG_BUILD_DIR)/bin/$(1) src/$(1).c $(2)
15 endef
16
17 define Build/Compile
18 mkdir -p $(PKG_BUILD_DIR)/bin
19 $(call cc,addpattern)
20 $(call cc,trx)
21 $(call cc,motorola-bin)
22 $(call cc,dgfirmware)
23 $(call cc,trx2usr)
24 $(call cc,ptgen)
25 $(call cc,airlink)
26 $(call cc,srec2bin)
27 $(call cc,mkmylofw)
28 $(call cc,mkcsysimg)
29 $(call cc,mkzynfw)
30 $(call cc,lzma2eva,-lz)
31 $(call cc,mkcasfw)
32 $(call cc,mkfwimage,-lz)
33 $(call cc,mkfwimage2,-lz)
34 $(call cc,imagetag)
35 $(call cc,add_header)
36 $(call cc,makeamitbin)
37 endef
38
39 define Build/Install
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
41 endef
42
43 $(eval $(call HostBuild))
This page took 0.049884 seconds and 5 git commands to generate.