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
|
2021-09-10 08:57:18 +00:00
|
|
|
PKG_RELEASE := 11
|
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
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,add_header,-Wall)
|
|
|
|
$(call cc,addpattern,-Wall)
|
|
|
|
$(call cc,asustrx,-Wall)
|
2021-01-21 12:04:45 +00:00
|
|
|
$(call cc,bcm4908asus,-Wall)
|
2021-01-13 07:11:00 +00:00
|
|
|
$(call cc,bcm4908kernel,-Wall)
|
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)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,dgfirmware,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,dgn3500sum,-Wall)
|
|
|
|
$(call cc,dns313-header,-Wall)
|
|
|
|
$(call cc,edimax_fw_header,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,encode_crc,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,fix-u-media-header cyg_crc32,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,hcsmakeimage bcmalgo,-Wall)
|
|
|
|
$(call cc,imagetag imagetag_cmdline cyg_crc32,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,jcgimage,-lz -Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,lxlfw,-Wall)
|
|
|
|
$(call cc,lzma2eva,-lz -Wall)
|
|
|
|
$(call cc,makeamitbin,-Wall)
|
|
|
|
$(call cc,mkbrncmdline,-Wall)
|
|
|
|
$(call cc,mkbrnimg,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkbuffaloimg,-Wall)
|
|
|
|
$(call cc,mkcameofw,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mkcasfw,-Wall)
|
|
|
|
$(call cc,mkchkimg,-Wall)
|
|
|
|
$(call cc,mkcsysimg,-Wall)
|
|
|
|
$(call cc,mkdapimg,-Wall)
|
|
|
|
$(call cc,mkdapimg2,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkdhpimg buffalo-lib,-Wall)
|
|
|
|
$(call cc,mkdlinkfw mkdlinkfw-lib,-lz -Wall --std=c99)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mkdniimg,-Wall)
|
|
|
|
$(call cc,mkedimaximg,-Wall)
|
2019-07-19 19:34:16 +00:00
|
|
|
$(call cc,mkfwimage,-lz -Wall -Werror -Wextra -D_FILE_OFFSET_BITS=64)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mkfwimage2,-lz -Wall)
|
|
|
|
$(call cc,mkheader_gemtek,-lz -Wall)
|
|
|
|
$(call cc,mkhilinkfw,-lcrypto -Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkmerakifw sha1,-Wall)
|
|
|
|
$(call cc,mkmerakifw-old,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mkmylofw,-Wall)
|
|
|
|
$(call cc,mkplanexfw sha1,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkporayfw,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mkrasimage,--std=gnu99 -Wall)
|
|
|
|
$(call cc,mkrtn56uimg,-lz -Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mksenaofw md5,-Wall --std=gnu99)
|
|
|
|
$(call cc,mksercommfw,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mktitanimg,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mktplinkfw mktplinkfw-lib md5,-Wall -fgnu89-inline)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mktplinkfw2 mktplinkfw-lib md5,-Wall -fgnu89-inline)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,mkwrggimg md5,-Wall)
|
|
|
|
$(call cc,mkwrgimg md5,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,mkzcfw cyg_crc32,-Wall)
|
|
|
|
$(call cc,mkzynfw,-Wall)
|
2021-08-02 22:21:46 +00:00
|
|
|
$(call cc,mkzyxelzldfw md5,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,motorola-bin,-Wall)
|
|
|
|
$(call cc,nand_ecc,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,nec-enc,-Wall --std=gnu99)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,osbridge-crc,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,oseama md5,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,otrx,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,pc1crypt)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,ptgen cyg_crc32,-Wall)
|
|
|
|
$(call cc,seama md5,-Wall)
|
2020-10-05 14:13:38 +00:00
|
|
|
$(call cc,sign_dlink_ru md5,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,spw303v,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,srec2bin)
|
|
|
|
$(call cc,tplink-safeloader md5,-Wall --std=gnu99)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,trx,-Wall)
|
|
|
|
$(call cc,trx2edips,-Wall)
|
|
|
|
$(call cc,trx2usr,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,uimage_padhdr,-Wall -lz)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,wrt400n cyg_crc32,-Wall)
|
|
|
|
$(call cc,xorimage,-Wall)
|
2020-05-30 16:33:03 +00:00
|
|
|
$(call cc,zyimage,-Wall)
|
2021-04-19 11:00:55 +00:00
|
|
|
$(call cc,zytrx,-Wall)
|
2021-04-08 22:12:28 +00:00
|
|
|
$(call cc,zyxbcm,-Wall)
|
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))
|