add missing fix for etrax compile without axis toolchain
[openwrt.git] / tools / firmware-utils / Makefile
1 #
2 # Copyright (C) 2006 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,imagetag)
34 endef
35
36 define Build/Install
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
38 endef
39
40 $(eval $(call HostBuild))
This page took 0.049241 seconds and 5 git commands to generate.