2008-01-29 16:31:54 +08:00
|
|
|
#
|
2012-08-11 03:27:08 +08:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-12-07 07:41:38 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME := firmware-utils
|
|
|
|
|
2007-05-10 15:02:04 +08:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2009-06-09 16:04:52 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2006-12-07 07:41:38 +08:00
|
|
|
define cc
|
2014-10-20 14:29:38 +08:00
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_STATIC_LINKING) $(HOST_LDFLAGS) -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
|
2009-02-05 05:09:06 +08:00
|
|
|
endef
|
|
|
|
|
2009-02-22 12:37:20 +08:00
|
|
|
define Host/Compile
|
|
|
|
mkdir -p $(HOST_BUILD_DIR)/bin
|
2006-12-07 07:41:38 +08:00
|
|
|
$(call cc,addpattern)
|
|
|
|
$(call cc,trx)
|
|
|
|
$(call cc,motorola-bin)
|
|
|
|
$(call cc,dgfirmware)
|
2014-08-03 19:13:58 +08:00
|
|
|
$(call cc,mksenaofw md5)
|
2006-12-07 07:41:38 +08:00
|
|
|
$(call cc,trx2usr)
|
2006-12-07 08:26:26 +08:00
|
|
|
$(call cc,ptgen)
|
2006-12-12 01:49:05 +08:00
|
|
|
$(call cc,airlink)
|
2007-03-18 17:33:39 +08:00
|
|
|
$(call cc,srec2bin)
|
2007-03-23 05:36:15 +08:00
|
|
|
$(call cc,mkmylofw)
|
2007-04-03 01:10:48 +08:00
|
|
|
$(call cc,mkcsysimg)
|
2007-08-03 03:05:28 +08:00
|
|
|
$(call cc,mkzynfw)
|
2007-10-22 22:20:02 +08:00
|
|
|
$(call cc,lzma2eva,-lz)
|
2008-01-29 16:31:54 +08:00
|
|
|
$(call cc,mkcasfw)
|
2008-05-08 07:47:17 +08:00
|
|
|
$(call cc,mkfwimage,-lz)
|
2008-10-14 01:17:19 +08:00
|
|
|
$(call cc,mkfwimage2,-lz)
|
2010-11-16 14:46:53 +08:00
|
|
|
$(call cc,imagetag imagetag_cmdline)
|
2008-06-27 20:18:31 +08:00
|
|
|
$(call cc,add_header)
|
2008-10-29 00:26:42 +08:00
|
|
|
$(call cc,makeamitbin)
|
2009-03-22 19:39:32 +08:00
|
|
|
$(call cc,encode_crc)
|
2009-06-15 04:42:28 +08:00
|
|
|
$(call cc,nand_ecc)
|
2010-02-01 09:56:02 +08:00
|
|
|
$(call cc,mkplanexfw sha1)
|
|
|
|
$(call cc,mktplinkfw md5)
|
2013-08-07 00:25:35 +08:00
|
|
|
$(call cc,mktplinkfw2 md5)
|
2009-06-25 00:35:38 +08:00
|
|
|
$(call cc,pc1crypt)
|
2009-06-25 17:41:06 +08:00
|
|
|
$(call cc,osbridge-crc)
|
2010-02-01 09:56:02 +08:00
|
|
|
$(call cc,wrt400n cyg_crc32)
|
2009-11-28 17:28:25 +08:00
|
|
|
$(call cc,mkdniimg)
|
2010-06-07 03:16:43 +08:00
|
|
|
$(call cc,mktitanimg)
|
2010-08-07 04:21:32 +08:00
|
|
|
$(call cc,mkchkimg)
|
2010-09-04 02:14:40 +08:00
|
|
|
$(call cc,mkzcfw cyg_crc32)
|
2011-05-11 21:34:05 +08:00
|
|
|
$(call cc,spw303v)
|
2014-07-28 01:44:51 +08:00
|
|
|
$(call cc,zyxbcm)
|
2010-12-03 05:27:54 +08:00
|
|
|
$(call cc,trx2edips)
|
2011-05-11 21:34:05 +08:00
|
|
|
$(call cc,xorimage)
|
2011-06-01 06:53:21 +08:00
|
|
|
$(call cc,buffalo-enc buffalo-lib, -Wall)
|
|
|
|
$(call cc,buffalo-tag buffalo-lib, -Wall)
|
2011-07-06 16:04:53 +08:00
|
|
|
$(call cc,buffalo-tftp buffalo-lib, -Wall)
|
2011-07-04 14:48:42 +08:00
|
|
|
$(call cc,mkwrgimg md5, -Wall)
|
2011-10-31 06:57:41 +08:00
|
|
|
$(call cc,mkedimaximg)
|
2012-02-15 01:48:04 +08:00
|
|
|
$(call cc,mkbrncmdline)
|
|
|
|
$(call cc,mkbrnimg)
|
2012-07-25 04:38:49 +08:00
|
|
|
$(call cc,mkdapimg)
|
2012-08-23 04:15:34 +08:00
|
|
|
$(call cc, mkcameofw, -Wall)
|
2012-10-18 15:22:57 +08:00
|
|
|
$(call cc,seama md5)
|
2012-10-18 15:23:09 +08:00
|
|
|
$(call cc,fix-u-media-header cyg_crc32,-Wall)
|
2013-06-07 06:21:52 +08:00
|
|
|
$(call cc,hcsmakeimage bcmalgo)
|
2013-08-01 22:30:46 +08:00
|
|
|
$(call cc,mkporayfw, -Wall)
|
2014-10-20 14:29:38 +08:00
|
|
|
$(call cc,mkhilinkfw, -lcrypto)
|
2013-10-07 23:01:05 +08:00
|
|
|
$(call cc,mkdcs932, -Wall)
|
2014-04-22 16:08:39 +08:00
|
|
|
$(call cc,mkheader_gemtek,-lz)
|
2014-06-17 02:57:20 +08:00
|
|
|
$(call cc,mkrtn56uimg, -lz)
|
2014-06-17 23:38:54 +08:00
|
|
|
$(call cc,dgn3500sum)
|
2006-12-07 07:41:38 +08:00
|
|
|
endef
|
|
|
|
|
2009-02-22 12:37:20 +08:00
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
|
2006-12-07 07:41:38 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|