2008-01-29 16:31:54 +08:00
|
|
|
#
|
2008-10-14 01:17:19 +08:00
|
|
|
# Copyright (C) 2006-2008 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
|
2009-02-22 12:37:20 +08:00
|
|
|
$(CC) $(HOST_CFLAGS) -include endian.h -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)
|
|
|
|
$(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)
|
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 16:25:53 +08:00
|
|
|
$(call cc,wndr3700)
|
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)
|
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)
|
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))
|