nuke util-linux in favor of util-linux-ng, build only what we need
[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 endef
32
33 define Build/Install
34 $(CP) $(PKG_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
35 endef
36
37 $(eval $(call HostBuild))
This page took 0.04686 seconds and 5 git commands to generate.