2008-01-29 08:31:54 +00:00
|
|
|
#
|
2020-07-22 23:10:06 +00:00
|
|
|
# Copyright (C) 2006-2020 OpenWrt.org
|
2006-12-06 23:41:38 +00: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
|
2020-08-15 07:51:18 +00:00
|
|
|
PKG_RELEASE := 7
|
2006-12-06 23:41:38 +00:00
|
|
|
|
2007-05-10 07:02:04 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2009-06-09 08:04:52 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2006-12-06 23:41:38 +00:00
|
|
|
define cc
|
2019-07-19 14:10:35 +00:00
|
|
|
$(HOSTCC) \
|
|
|
|
$(HOST_CFLAGS) \
|
|
|
|
-Wno-unused-parameter \
|
|
|
|
-include endian.h $(HOST_LDFLAGS) \
|
|
|
|
-o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) \
|
|
|
|
$(foreach src,$(1),src/$(src).c) \
|
|
|
|
$(2)
|
2009-02-04 21:09:06 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
|
|
|
mkdir -p $(HOST_BUILD_DIR)/bin
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,add_header)
|
2006-12-06 23:41:38 +00:00
|
|
|
$(call cc,addpattern)
|
2015-05-27 13:54:02 +00:00
|
|
|
$(call cc,asustrx)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,buffalo-enc buffalo-lib,-Wall)
|
|
|
|
$(call cc,buffalo-tag buffalo-lib,-Wall)
|
|
|
|
$(call cc,buffalo-tftp buffalo-lib,-Wall)
|
2006-12-06 23:41:38 +00:00
|
|
|
$(call cc,dgfirmware)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,dgn3500sum,-Wall)
|
|
|
|
$(call cc,dns313-header,-Wall)
|
|
|
|
$(call cc,edimax_fw_header,-Wall)
|
|
|
|
$(call cc,encode_crc)
|
|
|
|
$(call cc,fix-u-media-header cyg_crc32,-Wall)
|
|
|
|
$(call cc,hcsmakeimage bcmalgo)
|
|
|
|
$(call cc,imagetag imagetag_cmdline cyg_crc32)
|
|
|
|
$(call cc,jcgimage,-lz -Wall)
|
|
|
|
$(call cc,lxlfw)
|
2007-10-22 14:20:02 +00:00
|
|
|
$(call cc,lzma2eva,-lz)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,makeamitbin)
|
|
|
|
$(call cc,mkbrncmdline)
|
|
|
|
$(call cc,mkbrnimg)
|
|
|
|
$(call cc,mkbuffaloimg,-Wall)
|
|
|
|
$(call cc,mkcameofw,-Wall)
|
2008-01-29 08:31:54 +00:00
|
|
|
$(call cc,mkcasfw)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkchkimg)
|
|
|
|
$(call cc,mkcsysimg)
|
|
|
|
$(call cc,mkdapimg)
|
|
|
|
$(call cc,mkdapimg2)
|
|
|
|
$(call cc,mkdhpimg buffalo-lib,-Wall)
|
|
|
|
$(call cc,mkdlinkfw mkdlinkfw-lib,-lz -Wall --std=c99)
|
|
|
|
$(call cc,mkdniimg)
|
|
|
|
$(call cc,mkedimaximg)
|
2019-07-19 19:34:16 +00:00
|
|
|
$(call cc,mkfwimage,-lz -Wall -Werror -Wextra -D_FILE_OFFSET_BITS=64)
|
2008-10-13 17:17:19 +00:00
|
|
|
$(call cc,mkfwimage2,-lz)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkheader_gemtek,-lz)
|
|
|
|
$(call cc,mkhilinkfw,-lcrypto)
|
|
|
|
$(call cc,mkmerakifw sha1,-Wall)
|
|
|
|
$(call cc,mkmerakifw-old,-Wall)
|
|
|
|
$(call cc,mkmylofw)
|
2010-02-01 01:56:02 +00:00
|
|
|
$(call cc,mkplanexfw sha1)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkporayfw,-Wall)
|
|
|
|
$(call cc,mkrasimage,--std=gnu99)
|
|
|
|
$(call cc,mkrtn56uimg,-lz)
|
|
|
|
$(call cc,mksenaofw md5,-Wall --std=gnu99)
|
|
|
|
$(call cc,mksercommfw,-Wall)
|
2010-06-06 19:16:43 +00:00
|
|
|
$(call cc,mktitanimg)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mktplinkfw mktplinkfw-lib md5,-Wall -fgnu89-inline)
|
|
|
|
$(call cc,mktplinkfw2 mktplinkfw-lib md5,-fgnu89-inline)
|
|
|
|
$(call cc,mkwrggimg md5,-Wall)
|
|
|
|
$(call cc,mkwrgimg md5,-Wall)
|
2010-09-03 18:14:40 +00:00
|
|
|
$(call cc,mkzcfw cyg_crc32)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkzynfw)
|
|
|
|
$(call cc,motorola-bin)
|
|
|
|
$(call cc,nand_ecc)
|
|
|
|
$(call cc,nec-enc,-Wall --std=gnu99)
|
|
|
|
$(call cc,osbridge-crc)
|
|
|
|
$(call cc,oseama md5,-Wall)
|
|
|
|
$(call cc,otrx)
|
|
|
|
$(call cc,pc1crypt)
|
|
|
|
$(call cc,ptgen cyg_crc32)
|
|
|
|
$(call cc,seama md5)
|
2011-05-11 13:34:05 +00:00
|
|
|
$(call cc,spw303v)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,srec2bin)
|
|
|
|
$(call cc,tplink-safeloader md5,-Wall --std=gnu99)
|
|
|
|
$(call cc,trx)
|
2010-12-02 21:27:54 +00:00
|
|
|
$(call cc,trx2edips)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,trx2usr)
|
|
|
|
$(call cc,uimage_padhdr,-Wall -lz)
|
|
|
|
$(call cc,wrt400n cyg_crc32)
|
2011-05-11 13:34:05 +00:00
|
|
|
$(call cc,xorimage)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,zyimage,-Wall)
|
|
|
|
$(call cc,zyxbcm)
|
2006-12-06 23:41:38 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
|
2006-12-06 23:41:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|