2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
9 PKG_NAME := firmware-utils
11 include $(INCLUDE_DIR)/host-build.mk
12 include $(INCLUDE_DIR)/kernel.mk
15 $(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
19 mkdir -p $(HOST_BUILD_DIR)/bin
22 $(call cc,motorola-bin)
24 $(call cc,mkdir615h1 md5)
32 $(call cc,lzma2eva,-lz)
34 $(call cc,mkfwimage,-lz)
35 $(call cc,mkfwimage2,-lz)
36 $(call cc,imagetag imagetag_cmdline)
38 $(call cc,makeamitbin)
41 $(call cc,mkplanexfw sha1)
42 $(call cc,mktplinkfw md5)
43 $(call cc,mktplinkfw2 md5)
45 $(call cc,osbridge-crc)
46 $(call cc,wrt400n cyg_crc32)
50 $(call cc,mkzcfw cyg_crc32)
54 $(call cc,buffalo-enc buffalo-lib, -Wall)
55 $(call cc,buffalo-tag buffalo-lib, -Wall)
56 $(call cc,buffalo-tftp buffalo-lib, -Wall)
57 $(call cc,mkwrgimg md5, -Wall)
58 $(call cc,mkedimaximg)
59 $(call cc,mkbrncmdline)
62 $(call cc, mkcameofw, -Wall)
64 $(call cc,fix-u-media-header cyg_crc32,-Wall)
65 $(call cc,hcsmakeimage bcmalgo)
66 $(call cc,mkporayfw, -Wall)
67 $(call cc,mkhilinkfw, -lcrypto)
68 $(call cc,mkdcs932, -Wall)
72 $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
75 $(eval $(call HostBuild))